[PATCH] dd fsync support
James Simmons
jsimmons at infradead.org
Thu Apr 3 13:35:10 UTC 2008
> Seems like the string "fsync\0" is not added by this patch...
>
> I fixed it up. Applied to current svn. Thanks.
Thanks. I aslo forgot the changes to usage.h.
Index: include/usage.h
===================================================================
--- include/usage.h (revision 21626)
+++ include/usage.h (working copy)
@@ -623,7 +623,7 @@
#define dd_trivial_usage \
"[if=FILE] [of=FILE] " USE_FEATURE_DD_IBS_OBS("[ibs=N] [obs=N] ") "[bs=N] [count=N] [skip=N]\n" \
- " [seek=N]" USE_FEATURE_DD_IBS_OBS(" [conv=notrunc|noerror|sync]")
+ " [seek=N]" USE_FEATURE_DD_IBS_OBS(" [conv=notrunc|noerror|sync|fsync]")
#define dd_full_usage \
"Copy a file with converting and formatting\n" \
"\nOptions:" \
@@ -640,7 +640,8 @@
USE_FEATURE_DD_IBS_OBS( \
"\n conv=notrunc Don't truncate output file" \
"\n conv=noerror Continue after read errors" \
- "\n conv=sync Pad blocks with zeros") \
+ "\n conv=sync Pad blocks with zeros" \
+ "\n conv=fsync physically write output file data before finishing") \
"\n" \
"\nNumbers may be suffixed by c (x1), w (x2), b (x512), kD (x1000), k (x1024)," \
"\nMD (x1000000), M (x1048576), GD (x1000000000) or G (x1073741824)" \
More information about the busybox
mailing list