[PATCH] volume_id: add squashfs detection

Denys Vlasenko vda.linux at googlemail.com
Mon Jan 14 01:24:39 UTC 2013


On Thursday 15 November 2012 16:02, Sven-Göran Bergh wrote:
> Add support for squashfs to blkid. Not included if FEATURE_BLKID_TYPE is not
> selected (neither UUID nor label).

Applied, thanks!


This can be done much more efficiently:

+       if (memcmp(sb->magic, "hsqs", 4) == 0 ||
+           memcmp(sb->magic, "sqsh", 4) == 0 ||
+           memcmp(sb->magic, "qshs", 4) == 0 ||
+           memcmp(sb->magic, "shsq", 4) == 0) {



More information about the busybox mailing list