git: 9front

Download patch

ref: e621d293ab4864ac9bd58e439ae965a5e077ef16
parent: 663bf87047952b40ecaf7d83387cbb907a50a7a7
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Jan 28 12:22:00 EST 2018

venti/conf: fix padding so we write multiple of sector size

--- a/sys/src/cmd/venti/srv/conf.rc
+++ b/sys/src/cmd/venti/srv/conf.rc
@@ -49,7 +49,7 @@
 	}
 	dd -quiet 1 -bs 1024 -count 8 -if $disk -iseek 248 \
 		>/tmp/_venticonf.old || exit backup
-	dd -quiet 1 -count 2 </dev/zero >> /tmp/venticonf.$pid || exit dd
+	dd -quiet 1 -bs 1024 -count 8 </dev/zero >> /tmp/venticonf.$pid || exit dd
 	dd -quiet 1 -bs 1024 -count 8 -if /tmp/venticonf.$pid \
 		-of $disk -trunc 0 -oseek 248 || exit dd2
 	exit 0
--