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)
Mon, Feb 17, 1:32 AM
Unknown Object (File)
Sun, Feb 9, 6:56 AM
Unknown Object (File)
Jan 18 2025, 1:30 PM
Unknown Object (File)
Jan 18 2025, 12:21 AM
Unknown Object (File)
Nov 27 2024, 8:52 PM
Unknown Object (File)
Nov 23 2024, 7:46 PM
Unknown Object (File)
Nov 15 2024, 4:53 PM
Unknown Object (File)
Oct 15 2024, 12:28 PM
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?