[Bug 294542] glabel(8): GEOM label debug gives incorrect output about already existing labels
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 294542] glabel(8): GEOM label debug gives incorrect output about already existing labels"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 294542] glabel(8): GEOM label debug gives incorrect output about already existing labels"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 15 Apr 2026 07:56:03 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294542
Bug ID: 294542
Summary: glabel(8): GEOM label debug gives incorrect output
about already existing labels
Product: Base System
Version: 16.0-CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: kern
Assignee: bugs@FreeBSD.org
Reporter: michaelo@FreeBSD.org
Running a 16-CURRENT vm in bhyve I see:
> GEOM_LABEL[2]: Tasting nda0.
> GEOM_LABEL[1]: MSDOSFS: nda0: no FAT volume detected.
> GEOM_LABEL[1]: Label for provider nda0 is diskid/DISK-nvme1.
> GEOM_LABEL[2]: Tasting nda0p1.
> GEOM_LABEL[1]: Label for provider nda0p1 is gpt/efiboot0.
> GEOM_LABEL[1]: Label for provider nda0p1 is gptid/d73082c2-8513-11f0-b9c7-589cfc02bf05.
> GEOM_LABEL[1]: MSDOSFS: nda0p1: FAT12/FAT16 volume detected.
> GEOM_LABEL[1]: MSDOSFS: nda0p1: FAT12/16 volume has no name.
> GEOM_LABEL[2]: Tasting nda0p2.
> GEOM_LABEL[1]: Label for provider nda0p2 is gpt/swap0.
> GEOM_LABEL[1]: Label for provider nda0p2 is gptid/d735e388-8513-11f0-b9c7-589cfc02bf05.
> GEOM_LABEL[1]: MSDOSFS: nda0p2: no FAT signature found.
> GEOM_LABEL[2]: Tasting nda0p3.
> GEOM_LABEL[1]: Label for provider nda0p3 is gpt/zfs0.
> GEOM_LABEL[1]: Label for provider nda0p3 is gptid/d73ccc9a-8513-11f0-b9c7-589cfc02bf05.
> GEOM_LABEL[1]: MSDOSFS: nda0p3: no FAT signature found.
> GEOM_LABEL[2]: Tasting diskid/DISK-nvme1.
> GEOM_LABEL[2]: Tasting gpt/efiboot0.
> GEOM_LABEL[2]: Tasting gptid/d73082c2-8513-11f0-b9c7-589cfc02bf05.
> GEOM_LABEL[2]: Tasting gpt/swap0.
> GEOM_LABEL[2]: Tasting gptid/d735e388-8513-11f0-b9c7-589cfc02bf05.
> GEOM_LABEL[2]: Tasting gpt/zfs0.
> GEOM_LABEL[2]: Tasting gptid/d73ccc9a-8513-11f0-b9c7-589cfc02bf05.
> GEOM_LABEL[2]: Tasting diskid/DISK-nvme1p1.
> GEOM_LABEL[1]: Label efiboot0(gpt/efiboot0) already exists (diskid/DISK-nvme1p1).
> GEOM_LABEL[1]: Label d73082c2-8513-11f0-b9c7-589cfc02bf05(gptid/d73082c2-8513-11f0-b9c7-589cfc02bf05) already exists (diskid/DISK-nvme1p1).
> GEOM_LABEL[1]: MSDOSFS: diskid/DISK-nvme1p1: FAT12/FAT16 volume detected.
> GEOM_LABEL[1]: MSDOSFS: diskid/DISK-nvme1p1: FAT12/16 volume has no name.
> GEOM_LABEL[2]: Tasting diskid/DISK-nvme1p2.
> GEOM_LABEL[1]: Label swap0(gpt/swap0) already exists (diskid/DISK-nvme1p2).
> GEOM_LABEL[1]: Label d735e388-8513-11f0-b9c7-589cfc02bf05(gptid/d735e388-8513-11f0-b9c7-589cfc02bf05) already exists (diskid/DISK-nvme1p2).
> GEOM_LABEL[1]: MSDOSFS: diskid/DISK-nvme1p2: no FAT signature found.
> GEOM_LABEL[2]: Tasting diskid/DISK-nvme1p3.
> GEOM_LABEL[1]: Label zfs0(gpt/zfs0) already exists (diskid/DISK-nvme1p3).
> GEOM_LABEL[1]: Label d73ccc9a-8513-11f0-b9c7-589cfc02bf05(gptid/d73ccc9a-8513-11f0-b9c7-589cfc02bf05) already exists (diskid/DISK-nvme1p3).
> GEOM_LABEL[1]: MSDOSFS: diskid/DISK-nvme1p3: no FAT signature found.
> GEOM_LABEL[1]: Label diskid/DISK-nvme1 removed.
> GEOM_LABEL[1]: Label gptid/d73ccc9a-8513-11f0-b9c7-589cfc02bf05 removed.
> GEOM_LABEL[2]: Tasting nda0.
> GEOM_LABEL[2]: Tasting gpt/zfs0.
> GEOM_LABEL[1]: Label gptid/d735e388-8513-11f0-b9c7-589cfc02bf05 removed.
> GEOM_LABEL[1]: Label gptid/d73082c2-8513-11f0-b9c7-589cfc02bf05 removed.
> GEOM_LABEL[2]: Tasting gpt/efiboot0.
The collision does not make sense and implies that one cannot have several
labels for the same entity. Booted off 15.0-RELEASE ISO and see via serial:
> GEOM_LABEL[2]: Tasting nda0.
> Trying to mount root from cd9660:/dev/iso9660/15_0_RELEASE_AMD64_BO [ro]...
> GEOM_LABEL[1]: MSDOSFS: nda0: no FAT volume detected.
> GEOM_LABEL[1]: Label for provider nda0 is diskid/DISK-nvme0.
> GEOM_LABEL[2]: Tasting nda0p1.
> GEOM_LABEL[1]: Label for provider nda0p1 is gpt/efiboot0.
> GEOM_LABEL[1]: Label for provider nda0p1 is gptid/d73082c2-8513-11f0-b9c7-589cfc02bf05.
> GEOM_LABEL[1]: MSDOSFS: nda0p1: FAT12/FAT16 volume detected.
> GEOM_LABEL[1]: MSDOSFS: nda0p1: FAT12/16 volume has no name.
> GEOM_LABEL[2]: Tasting nda0p2.
> GEOM_LABEL[1]: Label for provider nda0p2 is gpt/swap0.
> GEOM_LABEL[1]: Label for provider nda0p2 is gptid/d735e388-8513-11f0-b9c7-589cfc02bf05.
> GEOM_LABEL[1]: MSDOSFS: nda0p2: no FAT signature found.
> GEOM_LABEL[2]: Tasting nda0p3.
> GEOM_LABEL[1]: Label for provider nda0p3 is gpt/zfs0.
> GEOM_LABEL[1]: Label for provider nda0p3 is gptid/d73ccc9a-8513-11f0-b9c7-589cfc02bf05.
> GEOM_LABEL[1]: MSDOSFS: nda0p3: no FAT signature found.
> GEOM_LABEL[2]: Tasting diskid/DISK-nvme0.
> GEOM_LABEL[2]: Tasting cd0.
> GEOM_LABEL[1]: ISO9660 file system detected on cd0.
> GEOM_LABEL[1]: Label for provider cd0 is iso9660/15_0_RELEASE_AMD64_BO.
> GEOM_LABEL[1]: MSDOSFS: cd0: FAT12/16 volume not valid.
> GEOM_LABEL[2]: Tasting gpt/efiboot0.
> GEOM_LABEL[2]: Tasting gptid/d73082c2-8513-11f0-b9c7-589cfc02bf05.
> GEOM_LABEL[2]: Tasting gpt/swap0.
> GEOM_LABEL[2]: Tasting gptid/d735e388-8513-11f0-b9c7-589cfc02bf05.
> GEOM_LABEL[2]: Tasting gpt/zfs0.
> GEOM_LABEL[2]: Tasting gptid/d73ccc9a-8513-11f0-b9c7-589cfc02bf05.
> GEOM_LABEL[2]: Tasting diskid/DISK-nvme0p1.
> GEOM_LABEL[1]: Label efiboot0(gpt/efiboot0) already exists (diskid/DISK-nvme0p1).
> GEOM_LABEL[1]: Label d73082c2-8513-11f0-b9c7-589cfc02bf05(gptid/d73082c2-8513-11f0-b9c7-589cfc02bf05) already exists (diskid/DISK-nvme0p1).
> GEOM_LABEL[1]: MSDOSFS: diskid/DISK-nvme0p1: FAT12/FAT16 volume detected.
> GEOM_LABEL[1]: MSDOSFS: diskid/DISK-nvme0p1: FAT12/16 volume has no name.
> GEOM_LABEL[2]: Tasting diskid/DISK-nvme0p2.
> GEOM_LABEL[1]: Label swap0(gpt/swap0) already exists (diskid/DISK-nvme0p2).
> GEOM_LABEL[1]: Label d735e388-8513-11f0-b9c7-589cfc02bf05(gptid/d735e388-8513-11f0-b9c7-589cfc02bf05) already exists (diskid/DISK-nvme0p2).
> GEOM_LABEL[1]: MSDOSFS: diskid/DISK-nvme0p2: no FAT signature found.
> GEOM_LABEL[2]: Tasting diskid/DISK-nvme0p3.
> GEOM_LABEL[1]: Label zfs0(gpt/zfs0) already exists (diskid/DISK-nvme0p3).
> GEOM_LABEL[1]: Label d73ccc9a-8513-11f0-b9c7-589cfc02bf05(gptid/d73ccc9a-8513-11f0-b9c7-589cfc02bf05) already exists (diskid/DISK-nvme0p3).
> GEOM_LABEL[1]: MSDOSFS: diskid/DISK-nvme0p3: no FAT signature found.
> GEOM_LABEL[2]: Tasting iso9660/15_0_RELEASE_AMD64_BO.
Same output, looking with gpart and the created devices:
> root@:~ # gpart show
> => 40 167772087 nda0 GPT (80G)
> 40 532480 1 efi (260M)
> 532520 2008 - free - (1.0M)
> 534528 16777216 2 freebsd-swap (8.0G)
> 17311744 150458368 3 freebsd-zfs (72G)
> 167770112 2015 - free - (1.0M)
>
> => 40 167772087 diskid/DISK-nvme0 GPT (80G)
> 40 532480 1 efi (260M)
> 532520 2008 - free - (1.0M)
> 534528 16777216 2 freebsd-swap (8.0G)
> 17311744 150458368 3 freebsd-zfs (72G)
> 167770112 2015 - free - (1.0M)
and
> root@:~ # ls -l /dev/gpt*/* /dev/diskid/*
> crw-r----- 1 root operator 0x76 Apr 15 07:38 /dev/diskid/DISK-nvme0
> crw-r----- 1 root operator 0x7e Apr 15 07:38 /dev/diskid/DISK-nvme0p1
> crw-r----- 1 root operator 0x7f Apr 15 07:38 /dev/diskid/DISK-nvme0p2
> crw-r----- 1 root operator 0x80 Apr 15 07:38 /dev/diskid/DISK-nvme0p3
> crw-r----- 1 root operator 0x78 Apr 15 07:38 /dev/gpt/efiboot0
> crw-r----- 1 root operator 0x7a Apr 15 07:38 /dev/gpt/swap0
> crw-r----- 1 root operator 0x7c Apr 15 07:38 /dev/gpt/zfs0
> crw-r----- 1 root operator 0x79 Apr 15 07:38 /dev/gptid/d73082c2-8513-11f0-b9c7-589cfc02bf05
> crw-r----- 1 root operator 0x7b Apr 15 07:38 /dev/gptid/d735e388-8513-11f0-b9c7-589cfc02bf05
> crw-r----- 1 root operator 0x7d Apr 15 07:38 /dev/gptid/d73ccc9a-8513-11f0-b9c7-589cfc02bf05
So all is fine. There is bug in the debug logging code.
--
You are receiving this mail because:
You are the assignee for the bug.