xfs: consolidate & clarify mount sanity checks
authorEric Sandeen <sandeen@redhat.com>
Fri, 20 May 2011 21:52:17 +0000 (21:52 +0000)
committerAlex Elder <aelder@sgi.com>
Fri, 8 Jul 2011 16:32:51 +0000 (11:32 -0500)
commitc0e090ced259b85b854636c99dda95b7070a2785
treeb87f23061f2bd75ecbf4a1906c4fb4aad27cd2d1
parente163cbde981c5988c3e80ca29589132336f18a72
xfs: consolidate & clarify mount sanity checks

Pavol pointed out that there is one silent error case in the mount
path, and that others are rather uninformative.

I've taken Pavol's suggested patch and extended it a bit to also:

* fix a message which says "turned off" but actually errors out
* consolidate the vaguely differentiated "SB sanity check [12]"
  messages, and hexdump the superblock for analysis

Original-patch-by: Pavol Gono <Pavol.Gono@siemens.com>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Alex Elder <aelder@sgi.com>
fs/xfs/xfs_fs.h
fs/xfs/xfs_mount.c