From cd95853bbc2e41cb7b15cfff528fbd7065d15e83 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 4 Jun 2010 11:41:23 +0200 Subject: [PATCH] libblkid: optimize UDF label reading Signed-off-by: Karel Zak --- shlibs/blkid/src/superblocks/udf.c | 3 +++ 1 file changed, 3 insertions(+) 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; } } -- 2.39.5