Re: [PATCH] vxfs fix

Alan Cox (alan@lxorguk.ukuu.org.uk)
Thu, 2 Aug 2001 01:15:13 +0100 (BST)


> I don't think V7 has a magic number at all. But checking that the size and
> nr-of-inodes fields make sense, together with verifying that the root
> inode really is a directory with (size % 512) == 0, and possibly verifying
> things like "if the root directory is not large enough to have a
> doubly/triply indirect block, then that doubly/triply indirect blocknumber
> had better be zero" would catch 99.9% of everything.

Alternatively pass a flag to the mount command saying "this is a guesswork
special" then V7 fs can just return 'not me'

Alan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/