Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 May 2010 18:51:00 -0400
From:      dieterbsd@engineer.com
To:        bug-followup@freebsd.org, jh@FreeBSD.org
Cc:        freebsd@sopwith.solgatos.com, freebsd-bugs@FreeBSD.org
Subject:   Re: kern/141235: 8.0 no longer provides /dev entries for all disk slices [regression]
Message-ID:  <8CCCC06364162B6-7FC-8C7D@web-mmc-d09.sysops.aol.com>

next in thread | raw e-mail | index | archive | help
> This is probably related to GEOM_PART_*. Could you confirm that by=20
replacing
> GEOM_PART_* options in your kernel config with GEOM_MBR and GEOM_BSD?

opt_geom.h previously contained:

#define GEOM_LABEL 1
#define GEOM_PART_EBR 1
#define GEOM_PART_GPT 1
#define GEOM_PART_MBR 1
#define GEOM_PART_EBR_COMPAT 1
#define GEOM_PART_BSD 1

Added GEOM_MBR and GEOM_BSD to config file.
(previous config file was stock GENERIC)

opt_geom.h now:

#define GEOM_BSD 1
#define GEOM_LABEL 1
#define GEOM_PART_EBR 1
#define GEOM_PART_GPT 1
#define GEOM_PART_MBR 1
#define GEOM_PART_EBR_COMPAT 1
#define GEOM_PART_BSD 1
#define GEOM_MBR 1

7.1 kernel works properly:

ls -l /dev/ad4*
crw-r-----  1 root  operator    0,  85 May 27 19:24 /dev/ad4
crw-r-----  1 root  operator    0,  89 May 27 19:24 /dev/ad4s1
crw-r-----  1 root  operator    0,  90 May 27 19:24 /dev/ad4s2
crw-r-----  1 root  operator    0,  91 May 27 19:24 /dev/ad4s3
crw-r-----  1 root  operator    0,  98 May 27 19:24 /dev/ad4s3a
crw-r-----  1 root  operator    0,  99 May 27 19:24 /dev/ad4s3c
crw-r-----  1 root  operator    0,  92 May 27 19:24 /dev/ad4s4
crw-r-----  1 root  operator    0, 100 May 27 19:24 /dev/ad4s4a
crw-r-----  1 root  operator    0, 101 May 27 19:24 /dev/ad4s4b
crw-r-----  1 root  operator    0, 102 May 27 19:24 /dev/ad4s4c

ls -l /dev/ad20*
crw-r-----  1 root  operator    0, 120 May 27 19:24 /dev/ad20
crw-r-----  1 root  operator    0, 163 May 27 19:24 /dev/ad20s1
crw-r-----  1 root  operator    0, 164 May 27 19:24 /dev/ad20s2
crw-r-----  1 root  operator    0, 165 May 27 19:24 /dev/ad20s3
crw-r-----  1 root  operator    0, 166 May 27 19:24 /dev/ad20s4
crw-r-----  1 root  operator    0, 194 May 27 19:24 /dev/ad20s5        =20
extended partition
#

-------------------------

stock 8.0 kernel:

(ada4 in 8.0 is same disk as ad20 in 7.1)

ls -l /dev/ad4*
crw-r-----  1 root  operator    0, 102 May 27 12:13 /dev/ad4
crw-r-----  1 root  operator    0, 103 May 27 12:13 /dev/ad4s1
crw-r-----  1 root  operator    0, 104 May 27 12:13 /dev/ad4s2
crw-r-----  1 root  operator    0, 105 May 27 12:13 /dev/ad4s3
crw-r-----  1 root  operator    0, 109 May 27 12:13 /dev/ad4s3a
crw-r-----  1 root  operator    0, 106 May 27 12:13 /dev/ad4s4
crw-r-----  1 root  operator    0, 110 May 27 12:13 /dev/ad4s4a
crw-r-----  1 root  operator    0, 111 May 27 12:13 /dev/ad4s4b

ls -l /dev/ada4*
crw-r-----  1 root  operator    0, 180 May 27 12:13 /dev/ada4
crw-r-----  1 root  operator    0, 223 May 27 12:13 /dev/ada4s1
crw-r-----  1 root  operator    0, 224 May 27 12:13 /dev/ada4s2
crw-r-----  1 root  operator    0, 225 May 27 12:13 /dev/ada4s3
crw-r-----  1 root  operator    0, 226 May 27 12:13 /dev/ada4s4

/dev/ada4s5 is missing

----------

8.0 with GEOM_MBR and GEOM_BSD:

ls -l /dev/ad4*
crw-r-----  1 root  operator    0, 106 May 27 12:02 /dev/ad4
crw-r-----  1 root  operator    0, 116 May 27 12:02 /dev/ad4s1
crw-r-----  1 root  operator    0, 117 May 27 12:02 /dev/ad4s2
crw-r-----  1 root  operator    0, 118 May 27 12:02 /dev/ad4s3
crw-r-----  1 root  operator    0, 131 May 27 12:02 /dev/ad4s3a
crw-r-----  1 root  operator    0, 131 May 27 12:02 /dev/ad4s3a        =20
dup ?
crw-r-----  1 root  operator    0, 132 May 27 12:02 /dev/ad4s3c
crw-r-----  1 root  operator    0, 161 May 27 12:02 /dev/ad4s3ca       =20
?
crw-r-----  1 root  operator    0, 119 May 27 12:02 /dev/ad4s4
crw-r-----  1 root  operator    0, 134 May 27 12:02 /dev/ad4s4a
crw-r-----  1 root  operator    0, 135 May 27 12:02 /dev/ad4s4b
crw-r-----  1 root  operator    0, 136 May 27 12:02 /dev/ad4s4c
crw-r-----  1 root  operator    0, 166 May 27 12:02 /dev/ad4s4ca       =20
?
crw-r-----  1 root  operator    0, 167 May 27 12:02 /dev/ad4s4cb       =20
?

ls -l /dev/ada4* | cat -v
crw-r-----  1 root  operator    1,  29 May 27 12:02 /dev/ada4
crw-r-----  1 root  operator    1,  72 May 27 12:02 /dev/ada4s1
crw-r-----  1 root  operator    1,  72 May 27 12:02 /dev/ada4s1        =20
dup ?
crw-r-----  1 root  operator    1,  73 May 27 12:02 /dev/ada4s2
crw-r-----  1 root  operator    1,  73 May 27 12:02 /dev/ada4s2        =20
dup ?
crw-r-----  1 root  operator    1,  74 May 27 12:02 /dev/ada4s3
crw-r-----  1 root  operator    1,  74 May 27 12:02 /dev/ada4s3        =20
dup ?
crw-r-----  1 root  operator    1,  75 May 27 12:02 /dev/ada4s4
crw-r-----  1 root  operator    1,  75 May 27 12:02 /dev/ada4s4        =20
dup ?
crw-r-----  1 root  operator    1, 193 May 27 12:02 /dev/ada4s4s1      =20
?
crw-r-----  1 root  operator    1, 193 May 27 12:02 /dev/ada4s4s1      =20
?
crw-r-----  1 root  operator    1, 192 May 27 12:02 /dev/ada4s5        =20
extended partition showed up

So the extended partition showed up, but now I have some duplicate /dev=20
entries
and some oddball bogus entries.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8CCCC06364162B6-7FC-8C7D>