Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Mar 2009 20:33:58 +0200
From:      Olivier SMEDTS <olivier@gid0.org>
To:        freebsd-current <freebsd-current@freebsd.org>
Subject:   strange UFS labels behaviour
Message-ID:  <367b2c980903311133v37833cabla4934f8b1a9b5e15@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi,

Since UFS labels were introduced, I've got strange behaviour when
fsck-ing or mounting my UFS partitions. Here is the console output at
boot :

GEOM_LABEL: Label for provider ad0s4 is ext2fs/PH4T.
GEOM_LABEL: Label for provider ad0s1a is ufsid/4867d45fa24cf28b.
GEOM_LABEL: Label for provider ad0s1d is ufsid/4867d45fd76f0998.
GEOM_LABEL: Label for provider ad0s1e is ufsid/4867d45fd3972203.
GEOM_LABEL: Label for provider ad0s1f is ufsid/4867d45f6ac00d3f.
GEOM_LABEL: Label for provider ad0s1g is ufsid/4867d45f91eb4111.
GEOM_LABEL: Label for provider ad0s3a is ufsid/48b16a479410599a.
Root mount waiting for: usbus7 usbus6 usbus5 usbus4 usbus3 usbus2 usbus1 usbus0
[snip]
Trying to mount root from ufs:/dev/ad0s1a
ugen5.2: <OmniVision> at usbus5
ugen6.2: <Microsoft> at usbus6
GEOM_LABEL: Label ufsid/4867d45fa24cf28b removed.
ums0: <Microsoft Microsoft 5-Button Mouse with IntelliEye(TM), class
0/0, rev 1.10/3.00, addr 2> on usbus6
GEOM_LABEL: Label for provider ad0s1a is ufsid/4867d45fa24cf28b.
ums0: 5 buttons and [XYZ] coordinates
GEOM_LABEL: Label ufsid/4867d45fd76f0998 removed.
GEOM_LABEL: Label for provider ad0s1d is ufsid/4867d45fd76f0998.
GEOM_LABEL: Label ufsid/4867d45fd3972203 removed.
GEOM_LABEL: Label for provider ad0s1e is ufsid/4867d45fd3972203.
GEOM_LABEL: Label ufsid/4867d45f6ac00d3f removed.
GEOM_LABEL: Label for provider ad0s1f is ufsid/4867d45f6ac00d3f.
GEOM_LABEL: Label ufsid/4867d45f91eb4111 removed.
GEOM_LABEL: Label for provider ad0s1g is ufsid/4867d45f91eb4111.
GEOM_LABEL: Label ufsid/48b16a479410599a removed.
GEOM_LABEL: Label for provider ad0s3a is ufsid/48b16a479410599a.
WARNING: TMPFS is considered to be a highly experimental feature in FreeBSD.
GEOM_LABEL: Label ufsid/4867d45fd76f0998 removed.
GEOM_LABEL: Label ufsid/4867d45f6ac00d3f removed.
GEOM_LABEL: Label ufsid/4867d45f91eb4111 removed.

Notice the removal of UFS labels (the first removals appear during
"fsck -p" and the latter during mount). Then, in multi or single user,
here is what I've got when remounting read-write or read-only (my root
partition is mounted read-only at boot) :

[20:19] root@q 167 ~# mount -u -o rw /
GEOM_LABEL: Label ufsid/4867d45fa24cf28b removed.
[20:19] root@q 169 ~# mount -u -o ro /
GEOM_LABEL: Label for provider ad0s1a is ufsid/4867d45fa24cf28b.
[20:19] root@q 170 ~# ll /dev/ufsid/
total 1
145 dr-xr-xr-x  2 root  wheel     -      512 31 mar 20:08 ./
  2 dr-xr-xr-x  8 root  wheel     -      512 31 mar 20:08 ../
153 crw-r-----  1 root  operator  -   0, 153 31 mar 20:18 4867d45fa24cf28b
120 crw-r-----  1 root  operator  -   0, 120 31 mar 20:08 4867d45fd3972203
123 crw-r-----  1 root  operator  -   0, 123 31 mar 20:08 48b16a479410599a
[20:20] root@q 171 ~# mount
/dev/ad0s1a on / (ufs, local, read-only)
devfs on /dev (devfs, local)
tmpfs on /tmp (tmpfs, local)
/dev/ad0s1d on /var (ufs, local, soft-updates)
/dev/ad0s1e on /usr/local (ufs, local, noatime, read-only)
/dev/ad0s1f on /usr/home (ufs, local, soft-updates)
/dev/ad0s1g on /work (ufs, local, soft-updates)
/dev/ad0s3a on /data (ufs, local, noatime, read-only)
[20:23] root@q 176 ~# kldstat | grep geom
 4    1 0xffffffff807bf000 7cf8     geom_label.ko
29    1 0xffffffff80a6d000 4fb8     geom_part_gpt.ko
[20:23] root@q 177 ~# uname -a
FreeBSD q.gid0.org 8.0-CURRENT FreeBSD 8.0-CURRENT #0 r190594M: Tue
Mar 31 19:10:02 CEST 2009
root@q.gid0.org:/work/obj/work/src/sys/QUAD  amd64

Is this expected ?


-- 
Olivier Smedts                                                 _
                                        ASCII ribbon campaign ( )
e-mail: olivier@gid0.org        - against HTML email & vCards  X
www: http://www.gid0.org    - against proprietary attachments / \

  "Il y a seulement 10 sortes de gens dans le monde :
  ceux qui comprennent le binaire,
  et ceux qui ne le comprennent pas."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?367b2c980903311133v37833cabla4934f8b1a9b5e15>