[lkml]   [2002]   [Jul]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [ANNOUNCE] Ext3 vs Reiserfs benchmarks
On Mon, 15 Jul 2002, Thunder from the hill wrote:

> Hi,
> On 15 Jul 2002, Patrick J. LoPresti wrote:
> > Note that this means writing a truly reliable shell or Perl script is
> > tricky. I suppose you can "use POSIX qw(fsync);" in Perl. But what do
> > you do for a shell script? /bin/sync :-) ?
> Write a binary (/usr/bin/fsync) which opens a fd, fsync it, close it, be
> done with it.

Or steal one from FreeBSD (written by Paul Saab), fix the err() function
and be done with it.


Interesting side note -- mind the O_RDONLY:

for (i = 1; i < argc; ++i) {
if ((fd = open(argv[i], O_RDONLY)) < 0)
err(1, "open %s", argv[i]);

if (fsync(fd) != 0)
err(1, "fsync %s", argv[1]);
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:27    [W:0.105 / U:5.140 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site