Bug 150626 - [geom] [gjournal] gjournal(8) destroys label
Summary: [geom] [gjournal] gjournal(8) destroys label
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 8.1-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-16 13:50 UTC by Robert Schulze
Modified: 2018-01-03 05:16 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Schulze 2010-09-16 13:50:01 UTC
Applying a glabel to a disc, partitioning with gpart and setting up a journal onto a partition ends up with the label for the disc to disappear after reboot.

GEOM label and journal are loaded via loader.conf:

geom_journal_load="YES"
geom_label_load="YES"

How-To-Repeat: # glabel label -v array0 /dev/da0
Metadata value stored on /dev/da0.
Done.

# gpart create -s gpt label/array0
label/array0 created

# gpart add -t freebsd-ufs label/array0
label/array0p1 added

# gjournal label /dev/label/array0p1

# newfs -O 2 -J /dev/label/array0p1.journal

# ls /dev/label
array0			array0p1		array0p1.journal

# glabel list
Geom name: da0
Providers:
1. Name: label/array0
   Mediasize: 499989347840 (466G)
   Sectorsize: 512
   Mode: r1w1e2
   secoffset: 0
   offset: 0
   seclength: 976541695
   length: 499989347840
   index: 0
Consumers:
1. Name: da0
   Mediasize: 499989348352 (466G)
   Sectorsize: 512
   Mode: r1w1e3

Geom name: label/array0p1.journal
Providers:
1. Name: ufsid/4c920f3bdb96ad4f
   Mediasize: 498915571200 (465G)
   Sectorsize: 512
   Mode: r0w0e0
   secoffset: 0
   offset: 0
   seclength: 974444475
   length: 498915571200
   index: 0
Consumers:
1. Name: label/array0p1.journal
   Mediasize: 498915571200 (465G)
   Sectorsize: 512
   Mode: r0w0e0

# reboot
# ls /dev/label
ls: /dev/label: No such file or directory
# glabel list
Geom name: da0p1.journal
Providers:
1. Name: ufsid/4c920f3bdb96ad4f
   Mediasize: 498915571200 (465G)
   Sectorsize: 512
   Mode: r0w0e0
   secoffset: 0
   offset: 0
   seclength: 974444475
   length: 498915571200
   index: 0
Consumers:
1. Name: da0p1.journal
   Mediasize: 498915571200 (465G)
   Sectorsize: 512
   Mode: r0w0e0
Comment 1 Alexander Best freebsd_committer 2010-09-16 19:52:26 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-geom

Over to maintainer(s).
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:01:44 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped