Page MenuHomeFreeBSD

Add conv=fsync flag to dd
ClosedPublic

Authored by freqlabs on Aug 22 2019, 7:07 PM.
Tags
None
Referenced Files
Unknown Object (File)
Apr 20 2025, 2:14 AM
Unknown Object (File)
Apr 19 2025, 10:18 PM
Unknown Object (File)
Apr 19 2025, 9:47 PM
Unknown Object (File)
Apr 16 2025, 4:00 AM
Unknown Object (File)
Feb 17 2025, 1:32 AM
Unknown Object (File)
Feb 9 2025, 6:56 AM
Unknown Object (File)
Jan 18 2025, 1:30 PM
Unknown Object (File)
Jan 18 2025, 12:21 AM
Subscribers

Details

Reviewers
mmacy
jilles
imp
Group Reviewers
manpages
Summary

The fsync flag performs an fsync(2) on the output file before closing it. This will be useful for the ZFS test suite.

Sponsored by: iXsystems, Inc.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

I am planning a followup to add the fdatasync flag, as well.

jilles added a subscriber: jilles.

Looks good to me.

bin/dd/dd.h
104

This uses up the last free bit, but that should be OK.

This revision is now accepted and ready to land.Aug 22 2019, 8:36 PM
imp added inline comments.
bin/dd/dd.c
513

do you also need to check close(2) calls?