Re: How to determine Ext2/3 FileSystem state ?

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

 



On Jun 24, 2003  10:55 +0530, Satish Singhal wrote:
> >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.
> 
> Thanks for your response.
> But my problem is a bit different.
> Once the snapshot is taken, how do I determine that the given snapshot image 
> (Ext2/Ext3 File-System) is indeed consistent.
> 
> Is there any field in super-block or any other on-disk structure which could 
> tell the state of a raw File-System(Ext2/3) image.

After the snapshot is taken (as above), the absence of EXT3_VALID_FS in
s_mount_state, or the presence of EXT3_FEATURE_INCOMPAT_RECOVER in
s_feature_incompat means that the snapshot was not valid.

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