diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2019-02-16 10:54:01 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2019-02-16 10:54:01 +0000 |
commit | 977df67f5c2088c56109f41758b1ade7ae455977 (patch) | |
tree | 7eb17ba10f911f2e2a3ce66be64ef5a61298ce40 /bin/dd/args.c | |
parent | bde7fc53535f4c2ef83015b50263e8e84b69d90c (diff) |
Implement the conv=fsync feature which does an fsync(2) after the
final write to output. GNU dd also has this. It is useful for
write performance measurement or guaranteed writes to reliable
storage.
OK kn@ tedu@ deraadt@
Diffstat (limited to 'bin/dd/args.c')
-rw-r--r-- | bin/dd/args.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/dd/args.c b/bin/dd/args.c index 033179d5f90..2819436e43d 100644 --- a/bin/dd/args.c +++ b/bin/dd/args.c @@ -1,4 +1,4 @@ -/* $OpenBSD: args.c,v 1.30 2018/07/25 15:09:48 cheloha Exp $ */ +/* $OpenBSD: args.c,v 1.31 2019/02/16 10:54:00 bluhm Exp $ */ /* $NetBSD: args.c,v 1.7 1996/03/01 01:18:58 jtc Exp $ */ /*- @@ -274,6 +274,7 @@ static const struct conv { { "ascii", C_ASCII, C_EBCDIC, e2a_POSIX }, { "block", C_BLOCK, C_UNBLOCK, NULL }, { "ebcdic", C_EBCDIC, C_ASCII, a2e_POSIX }, + { "fsync", C_FSYNC, 0, NULL }, { "ibm", C_EBCDIC, C_ASCII, a2ibm_POSIX }, { "lcase", C_LCASE, C_UCASE, NULL }, { "osync", C_OSYNC, C_BS, NULL }, |