]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_db: exit on invalid magic number
authorChristoph Hellwig <hch@infradead.org>
Fri, 30 Jan 2009 17:52:29 +0000 (18:52 +0100)
committerChristoph Hellwig <hch@brick.lst.de>
Fri, 30 Jan 2009 17:52:29 +0000 (18:52 +0100)
commit7f98455ae9f393b10508c9c46f85e50dc3b0c372
treece4f873112df780ef8e7cbfc5238042198ac4d29
parent8c053393e88f94fe08db43757b97779b5c4908bd
xfs_db: exit on invalid magic number

Fail gracefully and with a useful error message when we detect an
invalid superblock magic in xfs_db.  Add a new -F flag to continue
when seeing the invalid magic number - that way xfs_check and
xfs_metadump can be used on a filesystem that has a corrupted primary
superblock.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Felix Blyakher <felixb@sgi.com>
db/init.c
db/xfs_check.sh
db/xfs_check64.sh
db/xfs_metadump.sh
man/man8/xfs_db.8