From: Karel Zak Date: Fri, 4 Jun 2010 09:41:23 +0000 (+0200) Subject: libblkid: optimize UDF label reading X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd95853bbc2e41cb7b15cfff528fbd7065d15e83;p=util-linux libblkid: optimize UDF label reading Signed-off-by: Karel Zak --- diff --git a/shlibs/blkid/src/superblocks/udf.c b/shlibs/blkid/src/superblocks/udf.c index 55c96adb..78ddda68 100644 --- a/shlibs/blkid/src/superblocks/udf.c +++ b/shlibs/blkid/src/superblocks/udf.c @@ -136,6 +136,9 @@ anchor: blkid_probe_set_utf8label(pr, vd->type.primary.ident.c, 31, BLKID_ENC_UTF16BE); + + if (clen == 8 || clen == 16) + break; } }