mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-11 20:58:50 +03:00
aux: don't use to new dd options
Actually oseek comes only with rawhide's version, just use the standard option name.
This commit is contained in:
parent
8bcf46a0ac
commit
b0f26a135b
@ -923,7 +923,7 @@ cleanup_idm_context() {
|
|||||||
# TODO: add support for parametrized [OPTION] usage (Not usable ATM)
|
# TODO: add support for parametrized [OPTION] usage (Not usable ATM)
|
||||||
# TODO: -bs blocksize (defaults 512K)
|
# TODO: -bs blocksize (defaults 512K)
|
||||||
# TODO: -count count/length (defaults to whole device, otherwise in BS units)
|
# TODO: -count count/length (defaults to whole device, otherwise in BS units)
|
||||||
# TODO: -seek offset/oseek (defaults 0, begining of zeroing area in BS unit)
|
# TODO: -seek offset/seek (defaults 0, begining of zeroing area in BS unit)
|
||||||
clear_devs() {
|
clear_devs() {
|
||||||
local bs=
|
local bs=
|
||||||
local count=
|
local count=
|
||||||
@ -968,7 +968,7 @@ corrupt_dev() {
|
|||||||
test -n "${a[0]-}" || return 0
|
test -n "${a[0]-}" || return 0
|
||||||
|
|
||||||
# Seek for the sequence and replace it with corruption pattern
|
# Seek for the sequence and replace it with corruption pattern
|
||||||
echo -n "${a[1]/$2/$3}" | dd of="$1" bs=1 oseek="${a[0]}" conv=fdatasync
|
echo -n "${a[1]/$2/$3}" | dd of="$1" bs=1 seek="${a[0]}" conv=fdatasync
|
||||||
}
|
}
|
||||||
|
|
||||||
prepare_backing_dev() {
|
prepare_backing_dev() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user