HomeFreeBSD

zfs_receive_010_pos: change dd arguments

Description

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

Details

Provenance
George Melikov <mail@gmelikov.ru>Authored on Apr 20 2017, 7:05 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Apr 20 2017, 7:05 PM
Parents
rGad7e908ad52b: Fix leak in send_iterate_fs
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG3e67c38c3457: zfs_receive_010_pos: change dd arguments (authored by George Melikov <mail@gmelikov.ru>).Apr 20 2017, 7:05 PM