Re: How to flush the disk write cache from userspace

2007-01-20 Thread Jens Axboe
On Thu, Jan 18 2007, Robert Hancock wrote: > Ricardo Correia wrote: > >On Tuesday 16 January 2007 00:38, you wrote: > >>As always with these things, the devil is in the details. It requires > >>the device to support a ->prepare_flush() queue hook, and not all > >>devices do that. It will work for I

Re: How to flush the disk write cache from userspace

2007-01-18 Thread Robert Hancock
Ricardo Correia wrote: On Tuesday 16 January 2007 00:38, you wrote: As always with these things, the devil is in the details. It requires the device to support a ->prepare_flush() queue hook, and not all devices do that. It will work for IDE/SATA/SCSI, though. In some devices you don't want/need

Re: How to flush the disk write cache from userspace

2007-01-17 Thread Ricardo Correia
On Tuesday 16 January 2007 00:38, you wrote: > As always with these things, the devil is in the details. It requires > the device to support a ->prepare_flush() queue hook, and not all > devices do that. It will work for IDE/SATA/SCSI, though. In some devices > you don't want/need to do a real disk

Re: How to flush the disk write cache from userspace

2007-01-15 Thread Jens Axboe
On Sun, Jan 14 2007, Ricardo Correia wrote: > Hi, (please CC: to my email address, I'm not subscribed) > > Quick question: how can I flush the disk write cache from userspace? > > Long question: > > I'm porting the Solaris ZFS filesystem to the FUSE/Linux filesystem > framework. This is a copy-

How to flush the disk write cache from userspace

2007-01-13 Thread Ricardo Correia
Hi, (please CC: to my email address, I'm not subscribed) Quick question: how can I flush the disk write cache from userspace? Long question: I'm porting the Solaris ZFS filesystem to the FUSE/Linux filesystem framework. This is a copy-on-write, transactional filesystem and so it needs to ensure