Fixes `blkid -L`, and uses that to implement `mount LABEL=...`, the same way
`mount UUID=...` was implemented.
Previously blkid would erroneously print SEC_TYPE="msdos" for vfat filesystems
when the -L option was passed. This line is moved to only print it when neither
-U or -L are passed.
Also fixed to match util-linux's blkid behavior better: SEC_TYPE="msdos" is not
added to the list of tags when the vfat filesystem is fat32 (presumably because
fat32 is not compatible with msdos). A test is added to check this behavior.
To create the fat32.bz2 file used by the test, run the following commands:
$ fallocate -l33M fat32
$ mkfs.vfat -n myfat32 -i 0xB25B2ECB -F 32 fat32
$ bzip2 fat32
It's my first time submitting a patch to any project, so if there's anything I
should do differently in the future, please let me know.
The build infrastructure adds a "make test_NAME" target for each NAME.test
file in this directory, and "make tests" iterates through all of them.
Individual tests boil down to a call to "scripts/test.sh NAME", and
testing all is "scripts/test.sh" with no arguments.
The test infrastructure, including the shell functions each test calls
(mostly "testcmd" and "optional") is described in scripts/test.sh