[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [PATCH] volume_id: add squashfs detection
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2013-01-14 1:24:39
Message-ID: 201301140224.40006.vda.linux () googlemail ! com
[Download RAW message or body]

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) {

_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic