Hi, Jan and William,

I am developing libtd test suite, actually port the
test suite from dwarf caiman to OpenSolaris. It seems
that there are something different with the previous
libtd on snv. I have some questions about as following.

1. libtd regard a dump as disk? What is the dump? dump
device? Actually, through "format" command, I only could
find 2 disks, no "dump" at all. I run the driver on OpenSolaris
with ZFS root. Why does libtd list the dump device or
swap device as a disk?
# test_td -d
Disk discovery
Total number of disks: 3
---------------------------------
num | name| ctype|size [MB]|
---------------------------------
1 | c3d0| ata| 76293|
2 | c3d1| ata| 76293|
3 | dump|unknown| 507|
---------------------------------

2. How to find a disk when its ctype is "usb"?
# /export/test_td -d
Disk discovery
Total number of disks: 3
---------------------------------
num | name| ctype|size [MB]|
---------------------------------
1 | c0t0d0| usb| 38154|
2 |* c4d0| ata| 152625|
3 | swap|unknown| 512|
---------------------------------

Right now, c0t0d0's device is
"/pci at 0,0/pci17aa,20ab at 1d,7/storage at 2/disk at 0,0",
through "prtconf -Dv", I could get its major number
is "50"(sd driver), but "/pci at 0,0/pci17aa,20ab at 1d,7" is
a usb controller which driver is "ehci". So it looks
like the way to check if target disk is "usb" is to
check the output of "prtconf" and libdevinfo. Do you
know some other simpler ways to get the correct
disk ctype?

I am developing the test suite now, and very possible
to have more questions to interrupt you, thank you very
much for your patience.

Thanks
Jason

Reply via email to