Re: flushing disk buffer cache

2004-10-29 Thread Don Lewis
On 29 Oct, Siddharth Aggarwal wrote: > > Thanks for your reply. > > Hmm. At the moment, the user can send an ioctl to define a checkpoint. But > I would guess that this could happen between 2 strategy() function calls > corresponding to the same filesystem operation? Yes. > So if there a way to

Re: flushing disk buffer cache

2004-10-29 Thread Siddharth Aggarwal
Thanks for your reply. Hmm. At the moment, the user can send an ioctl to define a checkpoint. But I would guess that this could happen between 2 strategy() function calls corresponding to the same filesystem operation? So if there a way to block filesystem operations while a snapshot is taken? I

Re: flushing disk buffer cache

2004-10-29 Thread Don Lewis
On 29 Oct, Siddharth Aggarwal wrote: > > Another related question ... > > Is it possible to delay or queue up disk writes until I exit from my > function in the kernel (where I am trying to sync with the disk)? Or > make sure that my sync function never goes to sleep waiting for the disk > driver

Re: flushing disk buffer cache

2004-10-29 Thread Siddharth Aggarwal
Another related question ... Is it possible to delay or queue up disk writes until I exit from my function in the kernel (where I am trying to sync with the disk)? Or make sure that my sync function never goes to sleep waiting for the disk driver to signal completion of flushes to disk? On Fri,

flushing disk buffer cache

2004-10-29 Thread Siddharth Aggarwal
Hi, I am writing this pseudo disk driver for disk checkpointing, which intercepts write requests to the disk (ad0s1) and performs a copy on write of the old contents to another partition (ad0s4) before writing out the new contents. So the driver (called shd) is mounted as /dev/shd0a on / /dev/s