Re: fsync() madness
- Date: Mon, 21 Apr 2008 18:33:46 +0200
- From: Allan Sandfeld Jensen <kde@xxxxxxxxxxxx>
- Subject: Re: fsync() madness
On Monday 21 April 2008, Stephan Kulow wrote:
> Am Montag 21 April 2008 schrieb Esben Mose Hansen:
> > On Monday April 21 2008 11:06:07 Allan Sandfeld Jensen wrote:
> > > I prefer fsync() in a number of cases. The one time where I appreciate
> > > it the most; is when copying files to a USB-device, because I know can
> > > unplug the device as soon as KDE copy claims to be done.
> >
> > I'm pretty sure I saw the kernel devs had or would implement something to
> > ensure USB-devices were aggresively flushed, which means you can take the
> > stick whether using KDE or some other applications.
>
> You may think about vfat file system, which does flush-on-close since Chris
> Mason implemented it somewhen 2006. So a ext3 file system on USB stick will
> still be dangerous if not mounted sync (which the KDE mediamanager does by
> default, btw).
>
Okay then, sounds logically. Just seems wrong to disable the kernel
disk-scheduler and disk-cache this way. If only the applications managed to
sync everytime they indicated to the user a task was done, things would be
more efficient.
`Allan
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<