Hi, Jan and William You are enjoying a very good new year holiday, aren't you? Wish you happy new year. :)
I am developing the test cases for libtd, and here I met with some questions about disk discovery cases. 1. about mtype attribute As I remember, in dwarf caiman project, libtd could find media type of each disks, but it only could discover "FIXED" one. Does it have any changes for OpenSolaris(i.e., could it find some devices which media type is not "FIXED"?). Besides "FIXED", are there any other types "media type"? Following example is I tried on OpenSolaris x86 box. # test_td -d -v Disk discovery Total number of disks: 3 ------------------------------------------------------------------------------- num | name| vendor| ctype| mtype| rem| lbl| bsize|#of blocks|size [MB]| ------------------------------------------------------------------------------- 1 | c1t0d0| Netac| usb| FIXED| Yes| F| 512| 3904768| 1906| 2 |* c4d0| unknown| ata| FIXED| No| VF| 512| 312576768| 152625| 3 | swap| unknown|unknown| UNKN| No| GF| 512| 1048576| 512| ------------------------------------------------------------------------------- 2. About removable attribute As it can be seen from above example that removable attribute is largely connected to the disk type(e.g., usb or CDROM). How can I get if a device is removable? Through "rmformat"? It seems that there are mismatch between the output of "libtd" and the output of "rmformat" command. # test_td -d -v Disk discovery Total number of disks: 3 ------------------------------------------------------------------------------- num | name| vendor| ctype| mtype| rem| lbl| bsize|#of blocks|size [MB]| ------------------------------------------------------------------------------- 1 | c1t0d0| IC25N040| usb| FIXED| No| F| 512| 78140160| 38154| <-- not removable 2 |* c4d0| unknown| ata| FIXED| No| VF| 512| 312576768| 152625| 3 | swap| unknown|unknown| UNKN| No| GF| 512| 1048576| 512| ------------------------------------------------------------------------------- # rmformat Looking for devices... 1. Logical Node: /dev/rdsk/c1t0d0p0 Physical Node: /pci at 0,0/pci17aa,20ab at 1d,7/storage at 1/disk at 0,0 Connected Device: IC25N040 ATMR04-0 0811 Device Type: Removable <------ removable from rmformat. Bus: USB Size: 38.2 GB Label: <Unknown> Access permissions: Medium is not write protected. ...... 3. From the design document v0.10, it seems like the libtd library could print out the disk status(up/down). But current test_td driver could not print out the status attribute. Does the "status" attribute still work? If yes, what does it mean and how can I verify the attribute? 4. When I insert a CD into my DVD Drive, it seems like the test_td could not discover it as *CDROM*. Is it OK? I attach the output of my "prtconf -D -v". As following example. # mount | grep media /media/Nokia N95 on /dev/dsk/c5t0d0s2 ...... <---- my CDROM # test_td -d -v Disk discovery Total number of disks: 3 ------------------------------------------------------------------------------- num | name| vendor| ctype| mtype| rem| lbl| bsize|#of blocks|size [MB]| ------------------------------------------------------------------------------- 1 | c1t0d0| Netac| usb| FIXED| Yes| F| 512| 3904768| 1906| 2 |* c4d0| unknown| ata| FIXED| No| VF| 512| 312576768| 152625| 3 | swap| unknown|unknown| UNKN| No| GF| 512| 1048576| 512| ------------------------------------------------------------------------------- Thanks Jason -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: prtconf_out URL: <http://mail.opensolaris.org/pipermail/caiman-discuss/attachments/20090103/a0c2ab60/attachment.ksh>
