[PATCH v2] * grub-core/fs/udf.c: Add support for UUID

2017-06-22 Thread Pali Rohár
Use same algorithm as in libblkid from util-linux v2.30. 1. Take first 16 bytes from UTF-8 encoded string of VolumeSetIdentifier 2. If all bytes are hexadecimal digits, convert to lowercase and use as UUID 3. If first 8 bytes are not all hexadecimal digits, convert those 8 bytes to their

[PATCH] * grub-core/fs/udf.c: Fix reading label, lvd.ident is dstring

2017-06-22 Thread Pali Rohár
UDF dstring has stored length in the last byte of buffer. Therefore last byte is not part of recorded characters. And empty string in dstring is encoded as empty buffer, including first byte (compression id). --- I'm not sure how Grub2 should handle empty label. Current patch set empty buffer for