OSDN Git Service

blkid: Handle short/empty vfat labels; update tests
authorSamuel Holland <samuel@sholland.org>
Sun, 20 Mar 2016 18:13:22 +0000 (11:13 -0700)
committerRob Landley <rob@landley.net>
Tue, 22 Mar 2016 18:16:44 +0000 (13:16 -0500)
commitc23186d3ee6001b78c843fc3609575306c687ba2
tree41cdd2c7cdd63178c2d8f69b6fc7a085a12fddf4
parent6aba814b28cddd45c7301c39dccd65b316eb5c82
blkid: Handle short/empty vfat labels; update tests

vfat labels have a fixed space allocated for them. In the case of a
shorter label, the remaining bytes are padded with spaces. A vfat
filesystem with no label (i.e. that will show up in Windows as "Local
Disk (X:)" or "Removable Disk (X:)") is stored as "NO NAME    ".

Both of these changes match behavior from util-linux.
tests/blkid.test
toys/other/blkid.c