shithub: riscv

Download patch

ref: 1d10ecdaaed100d0a88ee10d67cd5013cb450cc2
parent: d2ec488a93c39bea74af89ad34de5791c53b4eff
author: cinap_lenrek <[email protected]>
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