]> granicus.if.org Git - zfs/commit
zfs_receive_010_pos: change dd arguments
authorGeorge Melikov <mail@gmelikov.ru>
Thu, 20 Apr 2017 19:05:39 +0000 (23:05 +0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 20 Apr 2017 19:05:39 +0000 (12:05 -0700)
commit3e67c38c3457989fc212bea8361adf9f38a51452
tree762d6074f03dbfcc3770929ebd58707340099c1a
parentad7e908ad52b96edf52167670b970483c3c2b95a
zfs_receive_010_pos: change dd arguments

The  `dd` command as written will not create a hole in the file.
Additionally, the `stride` argument isn't understood by `dd` so
it's replaced with `seek` which isn't equivilant but will result in
a single whole which is sufficient for the test case.  Finally,
`conv=notrunc` is added to avoid truncating the file.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Signed-off-by: George Melikov <mail@gmelikov.ru>
Closes #6023
tests/zfs-tests/tests/functional/cli_root/zfs_receive/zfs_receive_010_pos.ksh