glabel for ufs: size check is overzealous?

Andriy Gapon avg at icyb.net.ua
Tue Apr 21 13:29:09 UTC 2009


glabel insists that for UFS2 the following must hold true:
pp->mediasize / fs->fs_fsize == fs->fs_size

But in reality it doesn't have to be this way, there can be valid reasons to make
filesystem smaller than available raw media size.

I understand that this is a good sanity check, but maybe there are other ways to
extra-check that we see a proper superblock, without imposing the limitation in
question.

-- 
Andriy Gapon


More information about the freebsd-geom mailing list