-
Notifications
You must be signed in to change notification settings - Fork 340
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
blkid, mount: fix
blkid -L
and add support for mount LABEL=...
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.
- Loading branch information
Showing
3 changed files
with
12 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters