]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: add support for multiple mount protection
authorJohann Lombardi <johann@whamcloud.com>
Tue, 24 May 2011 22:31:25 +0000 (18:31 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 24 May 2011 22:31:25 +0000 (18:31 -0400)
commit66a515afed83b75bbd533db4238684bd7e0362f9
tree96d05d41be2bfea6d51be915ce196f033a5d9bf3
parent3d02fa0bd203441d7c9303a32664b426d279552e
ext4: add support for multiple mount protection

Prevent an ext4 filesystem from being mounted multiple times.
A sequence number is stored on disk and is periodically updated (every 5
seconds by default) by a mounted filesystem.
At mount time, we now wait for s_mmp_update_interval seconds to make sure
that the MMP sequence does not change.
In case of failure, the nodename, bdevname and the time at which the MMP
block was last updated is displayed.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Signed-off-by: Johann Lombardi <johann@whamcloud.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/Makefile
fs/ext4/ext4.h
fs/ext4/mmp.c [new file with mode: 0644]
fs/ext4/super.c