Re: Freezing File Systems

2009-01-01 Thread Rohit Sharma
That was a very nice explanation Greg, i had the concept that we only suspend write requests during freeze. Thanks for clearing my doubt. Rishi if you can state the purpose, why you want to freeze the file system would be more helpful. On Thu, Jan 1, 2009 at 4:34 AM, Mark Brown wrote: > That is m

Re: Freezing File Systems

2008-12-31 Thread Mark Brown
That is most likely due to the filesystem cache. Try running iostat and checking the block device statistics for the device you froze! -- Mark On Dec 31, 2008, at 9:39 AM, rishi agrawal wrote: I used a kernel module to freeze the file system using the function freeze_bdev but when i am try

Re: Freezing File Systems

2008-12-31 Thread Mark Brown
Rohit, that might cause unintentional consequences: e.g. causing the vfs to fail any write requests to a filesystem with an error. On the other hand, a filesystem freeze will block any I/Os from being written to disk and keep the filesystem state consistent. I think freeze_bdev() is the bes

Re: Freezing File Systems

2008-12-31 Thread Greg Freemyer
Do you understand the purpose of the freeze? It is to ensure the underlying block device is stable and consistent. I believe the primary in kernel user of freeze is device mapper (DM). DM effectively does: freeze create COW based snapshot unfreeze. Creation of a COW (copy on write) snapshot is

Re: Freezing File Systems

2008-12-31 Thread Rohit Sharma
On Thu, Jan 1, 2009 at 2:04 AM, Rohit Sharma wrote: > May be remounting the file system in read only mode will help. > > try this: > # mount -o remount,ro > Yes this works, after remounting the file system in read only mode you cant create new files and you cant even write anything. I hope that h

Re: Freezing File Systems

2008-12-31 Thread Rohit Sharma
May be remounting the file system in read only mode will help. try this: # mount -o remount,ro On Wed, Dec 31, 2008 at 8:36 PM, rishi agrawal wrote: > as far as i have understood it is not freezing the file system but it > is only freezing the write operation on block device > > had it been fr

Re: Freezing File Systems

2008-12-31 Thread rishi agrawal
as far as i have understood it is not freezing the file system but it is only freezing the write operation on block device had it been freezing the file system inode creation would also block On Wed, Dec 31, 2008 at 8:09 PM, rishi agrawal wrote: > I used a kernel module to freeze the file syst

Re: Freezing File Systems

2008-12-31 Thread rishi agrawal
I used a kernel module to freeze the file system using the function freeze_bdev but when i am try to use touch command on the file system i am able to create the files. even read requests are served immediately only the write requests are being blocked until i call the thaw function can i have

Re: Freezing File Systems

2008-12-31 Thread ajit mote
Hello, I want to freeze a file system. I have seen a field in vfs superblock > s_frozen. > > But i am clue less about freezing the file system using that. > freeze_bdev function ( fs/buffer.c) lock a filesystem and force it into a consistent state ... Above function use s_frozen flag to freez th

Freezing File Systems

2008-12-31 Thread rishi agrawal
Hello everyone, I want to freeze a file system. I have seen a field in vfs superblock s_frozen. But i am clue less about freezing the file system using that. -- Regards, Rishi B. Agrawal -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecar...@nl.linux.org