]> git.karo-electronics.de Git - linux-beck.git/commit
xfs: Validate log space at mount time
authorJie Liu <jeff.liu@oracle.com>
Mon, 12 Aug 2013 10:50:03 +0000 (20:50 +1000)
committerBen Myers <bpm@sgi.com>
Mon, 12 Aug 2013 22:50:35 +0000 (17:50 -0500)
commit3e7b91cf8c19d89e55df5f05e3010446dbdaba77
tree312bb2f9b7b503bb0fce0d156c18ff40dab89cba
parent5a96a94547fe345467c2ab2ec51cb3fade355bd9
xfs: Validate log space at mount time

Validate log space during log mount stage, the underlying function
will drop a warning message via syslog in critical level if the log
space is too small or too large.

[ dchinner: For CRC enable filesystems, abort the mounting of the
filesystem as mkfs should never make a log too small for the given
filesystem configuration. ]

[ dchinner: make a note of the fact that the log size limits in
block counts are in units of filesystem blocks, not basic blocks. ]

Signed-off-by: Jie Liu <jeff.liu@oracle.com>
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_fs.h
fs/xfs/xfs_log.c