On Mon, Apr 06, 2009 at 08:22:38PM +0100, Ricardo M. Correia wrote: > So I think you're (mostly) right - in theory, a correct implementation > would have to search all the uberblock slots in all the 4 labels (2 at > the beginning of the partition and 2 at the end), for a total of 512 > magic offsets, but this is not easy to do with libblkid because it only > looks for the magic values at hard-coded offsets (as opposed to being > able to implement a routine to look for a filesystem, which could use a > simple "for" statement). Note that the new libblkid version (in util-linux-ng) could use a simple "for" statement (see ufs.c or *_raid.c), but the "magic value at hard-coded offset" is a better (cheaper) method. Karel -- Karel Zak <kzak@xxxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html