Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: disklabel trouble



On Sat, Jul 16, 2011 at 06:24:29PM +0100, Patrick Welche wrote:
> test:\
> :dt=ESDI:se#512:ns#63:nt#16:sc#1008:nc#969021:\
> :pa#842022912:oa#107931648:ta=4.2BSD:ba#0:fa#0:\
> :pc#842022912:oc#107931648:\
> :pd#976773168:od#0:
> # disklabel -w -r -v wd0 test

ktracing the above is even stranger - zero partitions!:

...
   245      1 disklabel NAMI  "/dev/rwd0d"
   245      1 disklabel RET   open 3
...
   245      1 disklabel GIO   fd 4 read 157 bytes
        000   74 65 73 74 3a 5c 0a 3a  64 74 3d 45 53 44 49 3a test:\.:dt=ESDI:
        010   73 65 23 35 31 32 3a 6e  73 23 36 33 3a 6e 74 23 se#512:ns#63:nt#
        020   31 36 3a 73 63 23 31 30  30 38 3a 6e 63 23 39 36 16:sc#1008:nc#96
        030   39 30 32 31 3a 5c 20 20  20 20 0a 3a 70 61 23 38 9021:\.....:pa#8
        040   34 32 30 32 32 39 31 32  3a 6f 61 23 31 30 37 39 42022912:oa#1079
        050   33 31 36 34 38 3a 74 61  3d 34 2e 32 42 53 44 3a 31648:ta=4.2BSD:
        060   62 61 23 30 3a 66 61 23  30 3a 5c 0a 3a 70 63 23 ba#0:fa#0:\.:pc#
        070   38 34 32 30 32 32 39 31  32 3a 6f 63 23 31 30 37 842022912:oc#107
        080   39 33 31 36 34 38 3a 5c  0a 3a 70 64 23 39 37 36 931648:\.:pd#976
        090   37 37 33 31 36 38 3a 6f  64 23 30 3a 0a          773168:od#0:.

so /etc/disktab was read correctly

   245      1 disklabel CALL  ioctl(3,DIOCSDINFO,0x609820)
   245      1 disklabel GIO   fd 3 wrote 408 bytes
        000   57 45 56 82 05 00 00 00  74 65 73 74 00 00 00 00 WEV.....test....
        010   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 ................
        020   00 00 00 00 00 00 00 00  00 02 00 00 3f 00 00 00 ............?...
        030   10 00 00 00 3d c9 0e 00  f0 03 00 00 30 60 38 3a ....=.......0`8:
        040   00 00 00 00 00 00 00 00  10 0e 01 00 00 00 00 00 ................
        050   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 ................
        ***
        080   00 00 00 00 57 45 56 82  f7 8d 00 00 00 20 00 00 ....WEV.........
                                             ^^^^^
 d_npartitions - the number of partitions in following is zero?!
 
        090   00 20 00 00 00 00 00 00  00 00 00 00 00 00 00 00 ................
        0a0   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 ................
        ***
        190   00 00 00 00 00 00 00 00                          ........
   245      1 disklabel RET   ioctl 0


That should come from getdiskbyname lib/libc/gen/disklabel.c right?

Cheers,

Patrick


Home | Main Index | Thread Index | Old Index