Re: How to determine Ext2/3 FileSystem state ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Jun 23, 2003  10:24 +0530, Satish Singhal wrote:
>   I intend to write a snapshot module for Ext2/3 file-systems.
>   For that i need to make sure that FS is in consistent state before taking 
> snapshot.
> 
>   For ex. in case of UFS, the superblock has a fs_clean flag which is set to 
> be FSSTABLE to tell that its in consistent state.  (otherwise its set to 
> FSACTIVE)
> 
>   I m not able to find any such information for Ext2/Ext3.
>   (The superblock does have a s_state flag, but that just tells whether 
> file-system was cleanly unmounted or not.)
> 
>   Pls, let me know if you have any clue/info on this aspect.

See ext3_sync_super_lockfs(), ext3_unlockfs(), and the LVM VFS-locking patch.
These are used to put the filesystem into a stable state for a short time
until the snapshot is created.

Cheers, Andreas
--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://www-mddsp.enel.ucalgary.ca/People/adilger/


_______________________________________________

Ext3-users@redhat.com
https://www.redhat.com/mailman/listinfo/ext3-users

[Index of Archives]         [Linux RAID]     [Kernel Development]     [Red Hat Install]     [Video 4 Linux]     [Postgresql]     [Fedora]     [Gimp]     [Yosemite News]

  Powered by Linux