]> err.no Git - util-linux/commitdiff
libblkid: optimize UDF label reading
authorKarel Zak <kzak@redhat.com>
Fri, 4 Jun 2010 09:41:23 +0000 (11:41 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 4 Jun 2010 09:41:23 +0000 (11:41 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
shlibs/blkid/src/superblocks/udf.c

index 55c96adb3b0192ed40049202ef363dde9ab833d2..78ddda684424d314c472ab338c350abc0ef6b1d0 100644 (file)
@@ -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;
                }
        }