Re: [PATCH] libblkid: Add initial support for BeFS detection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2010/1/14 Karel Zak <kzak@xxxxxxxxxx>:
> On Thu, Jan 14, 2010 at 07:08:52PM +0100, Jeroen Oortwijn wrote:
>> checking if the superblock contains all of them. So to reduce the
>> change of misdetection, I removed the last two magic numbers. Is there
>> a way to make libblkid check if the superblock contains all three
>> magic numbers?
>
>  For a more careful analysis you have to create a probing function and
>  check the others things there. See for example squashfs.c or any
>  other file in the shlibs/blkid/src/superblocks/ directory.

Yeah, I later realised that it would be best to check for the other
two magic strings in the probing function.

>  It would be nice to read filesystem UUID and LABEL in the probing function.

The UUID isn't as straightforward as I hoped for and currently Haiku
doesn't set it (see
http://www.freelists.org/post/haiku-development/BFS-and-UUID,1), but
LABEL is certainly doable. Will dive into the probing functions of the
other superblocks and I hope I can get back to you in the near future
with a second patch, implementing the probing function for BeFS. It
might take a while though. :)

- Jeroen
--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux