[PATCH] fsync applet

walter harms wharms at bfs.de
Fri Jun 12 14:32:03 UTC 2009



Denys Vlasenko schrieb:
> On Thu, Jun 11, 2009 at 1:07 PM, <virtuoso at slind.org> wrote:
>> From: Pekka Pessi <Pekka.Pessi at nokia.com>
>>
>> Issue fsync() system call on a file to ensure its buffers are synchronized
>> with the backing storage.
>>
>> Signed-off-by: Alexander Shishkin <virtuoso at slind.org>
> 
> Please use CONFIG_WERROR. With CONFIG_WERROR=y:
> 
>   CC      coreutils/fsync.o
> cc1: warnings being treated as errors
> coreutils/fsync.c: In function 'fsync_main':
> coreutils/fsync.c:15: error: unused parameter 'argc'
> make[1]: *** [coreutils/fsync.o] Error 1
> 
> I can fix it on my end and commit.
> 
> What about other concern - "applet creep"?
> 
> I googled for it and it seems there is no such program on Linux yet.
> 
> Since you propose it, I'm curious what needs made you write it?
> What is your use case? Is using sync really too much of an overkill
> in your use case?

fsync is on my (desktop)system. man page says:

COPYRIGHT
       2007 Werner Fink, 2007 SuSE GmbH Nuernberg, Germany.


re,
 wh




More information about the busybox mailing list