diff options
author | Theodore Ts'o <tytso@mit.edu> | 2000-04-06 21:51:18 +0000 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2000-04-06 21:51:18 +0000 |
commit | e2207ce595f05e4db5945326f9b2d553ff7a4d57 (patch) | |
tree | 2eb9121532bcc360fcdcec2178d3e564d736e299 /misc | |
parent | 68853373db79eeb41b5452f75269225736c5156e (diff) | |
download | e2fsprogs-e2207ce595f05e4db5945326f9b2d553ff7a4d57.tar.gz |
ChangeLog, Makefile.in, jump.funcs, jump.import, jump.params:
Makefile.in (uuid_time): Compile uuid_time in two steps (first create
.o, then link it against the libraries) to work around bug in a.out
linker.
dll/jump.funcs, dll/jump.import, dll/jump.params: Update a.out shared
library control files to reflect new added files.
ChangeLog, feature.c, jump.funcs:
feature.c: Make feature_list static; it shouldn't be exported.
dll/jump.funcs: Update a.out shared library control file.
ChangeLog, badblocks.c:
badblocks.c (flush_bufs): Use fsync() if the system doesn't support
fdatasync().
Diffstat (limited to 'misc')
-rw-r--r-- | misc/ChangeLog | 5 | ||||
-rw-r--r-- | misc/badblocks.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/misc/ChangeLog b/misc/ChangeLog index 8240ff0a..37ee1f9c 100644 --- a/misc/ChangeLog +++ b/misc/ChangeLog @@ -1,3 +1,8 @@ +Thu Apr 6 17:50:25 2000 Theodore Y. Ts'o <tytso@signal.thunk.org> + + * badblocks.c (flush_bufs): Use fsync() if the system doesn't + support fdatasync(). + 2000-04-03 Theodore Ts'o <tytso@valinux.com> * badblocks.c, dumpe2fs.c, e2label.c, mke2fs.c, tune2fs.c, diff --git a/misc/badblocks.c b/misc/badblocks.c index 747b6310..e0a5b735 100644 --- a/misc/badblocks.c +++ b/misc/badblocks.c @@ -225,8 +225,13 @@ static void flush_bufs (int dev, int sync) ) fprintf (stderr, _("Flushing buffers\n")); +#ifdef HAVE_FDATASYNC if (sync && fdatasync (dev) == -1) + com_err (program_name, errno, _("during fdatasync")); +#else + if (sync && fsync (dev) == -1) com_err (program_name, errno, _("during fsync")); +#endif #ifdef BLKFLSBUF ioctl (host_dev, BLKFLSBUF, 0); /* In case this is a HD */ |