]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: vfat: Fix reading FAT16 boot label and serial id
authorPali Rohár <pali.rohar@gmail.com>
Mon, 5 Jul 2021 13:09:12 +0000 (15:09 +0200)
committerPali Rohár <pali.rohar@gmail.com>
Mon, 5 Jul 2021 13:09:12 +0000 (15:09 +0200)
commit575b559254a48751e916e8814b2c631335825705
treeba1d62003733cbdee783b38e9617f3efe57cb6e2
parentc2ca2837a27a3f1344904037ea691bfdbb288f02
libblkid: vfat: Fix reading FAT16 boot label and serial id

Older FAT16 variants do not have to contain boot label or serial id. Boot
sign 0x28 indicates that only serial id is present and boot sign 0x29
indicates that both boot label and serial id is present. Other boot sign
values (e.g. zero) indicates older FAT16 variant without boot label and
boot sign.

Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
libblkid/src/superblocks/vfat.c