venti/conf: fix padding so we write multiple of sector size
This commit is contained in:
parent
d2ec488a93
commit
1d10ecdaae
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ if(~ $wflag yes){
|
|||
}
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue