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: NAndreas Dilger <adilger@whamcloud.com> Signed-off-by: NJohann Lombardi <johann@whamcloud.com> Signed-off-by: N"Theodore Ts'o" <tytso@mit.edu>
Showing
fs/ext4/mmp.c
0 → 100644
想要评论请 注册 或 登录