Kana Steimle eafb0b6bb5 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.
2024-11-08 03:09:37 -06:00
..
2024-10-23 12:00:12 -05:00
2021-01-07 16:10:47 -06:00
2018-11-13 15:51:44 -06:00
2022-09-13 22:45:33 -05:00
2020-05-13 01:32:21 -05:00
2023-06-15 21:56:27 -05:00
2022-04-25 21:40:40 -05:00
2023-01-09 00:58:45 -06:00
2023-07-23 11:18:31 -05:00
2024-10-25 23:40:19 -05:00
2024-09-05 10:30:35 -05:00
2019-12-06 13:16:23 -06:00
2020-08-04 03:04:10 -05:00
2023-09-07 03:48:54 -05:00
2023-12-15 01:10:15 -06:00
2024-05-15 13:29:06 -05:00
2022-01-10 17:07:49 -06:00
2024-02-21 06:44:59 -06:00
2019-11-22 06:54:31 -06:00
2022-04-25 21:38:02 -05:00
2019-11-23 10:03:43 -06:00
2024-03-22 16:09:45 -05:00
2021-08-27 09:02:40 -05:00
2019-05-10 19:19:50 -05:00
2023-06-08 16:04:51 -05:00
2021-02-06 19:33:13 -06:00
2017-03-20 13:14:14 -05:00
2023-08-08 14:14:30 -05:00
2019-10-16 12:10:53 -05:00
2023-12-15 06:58:26 -06:00
2018-12-02 16:22:41 -06:00
2023-04-05 17:19:09 -05:00
2024-02-21 06:44:59 -06:00
2024-03-04 20:35:18 -06:00
2024-03-04 20:35:18 -06:00
2019-10-28 23:55:18 -05:00
2023-10-02 08:45:14 -05:00
2020-12-06 02:24:12 -06:00
2019-02-04 06:02:45 -06:00
2017-04-10 15:20:00 -05:00
2018-05-03 18:59:01 -05:00
2024-06-02 04:30:27 -05:00
2024-02-08 05:56:37 -06:00
2023-08-30 15:11:43 -05:00

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