Improve drive object paths slightly
authorDavid Zeuthen <davidz@redhat.com>
Mon, 1 Nov 2010 15:21:20 +0000 (11:21 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Mon, 1 Nov 2010 15:21:20 +0000 (11:21 -0400)
commit9c6e2fda3edf733de6c2d6b7512fd59e92ca670f
tree874a12f0c6346f63843b74724582457dad8457a2
parentbb0e7b5686ebddf47abd2c9d4446ad851ecf15c1
Improve drive object paths slightly

Example:

 $ udisks info --object-path drives/
 drives/HP_LOGICAL_VOLUME_5001438008F61790
 drives/SEAGATE_ST3300657SS_3SJ1QNMQ00009052NECM
 drives/SEAGATE_ST3300657SS_3SJ1QNMQ00009052NECM_1
 drives/SEAGATE_ST3300657SS_3SJ1RFP900009051HZ5S
 drives/SEAGATE_ST3300657SS_3SJ1RFP900009051HZ5S_1
 drives/SEAGATE_ST3300657SS_3SJ1RJS700009050VYEA
 drives/SEAGATE_ST3300657SS_3SJ1RJS700009050VYEA_1
 drives/SEAGATE_ST3300657SS_3SJ1RPFJ00009052BZ10
 drives/SEAGATE_ST3300657SS_3SJ1RPFJ00009052BZ10_1
 drives/SEAGATE_ST3300657SS_3SJ1RSJC00009052MWTB
 drives/SEAGATE_ST3300657SS_3SJ1RSJC00009052MWTB_1
 drives/SEAGATE_ST3300657SS_3SJ1RWZ100009101T12H
 drives/SEAGATE_ST3300657SS_3SJ1RWZ100009101T12H_1
 drives/SEAGATE_ST3300657SS_3SJ1S3NE00009101TB5Y
 drives/SEAGATE_ST3300657SS_3SJ1S3NE00009101TB5Y_1
 drives/SEAGATE_ST3300657SS_3SJ1S40K00009101T1XU
 drives/SEAGATE_ST3300657SS_3SJ1S40K00009101T1XU_1
 drives/SEAGATE_ST3300657SS_3SJ1S4MH00009052RG6Z
 drives/SEAGATE_ST3300657SS_3SJ1S4MH00009052RG6Z_1
 drives/SEAGATE_ST3300657SS_3SJ1S66L00009052QGZA
 drives/SEAGATE_ST3300657SS_3SJ1S66L00009052QGZA_1
 drives/SEAGATE_ST3300657SS_3SJ1S7C500009052RKPP
 drives/SEAGATE_ST3300657SS_3SJ1S7C500009052RKPP_1
 drives/SEAGATE_ST3300657SS_3SJ1S7K600009051M0CE
 drives/SEAGATE_ST3300657SS_3SJ1S7K600009051M0CE_1
 drives/WDC_WD1002FAEX_00Y9A0_WD_WCAW30010853
 drives/WDC_WD1002FAEX_00Y9A0_WD_WCAW30012560
 drives/WDC_WD1002FAEX_00Y9A0_WD_WCAW30014347
 drives/WDC_WD1002FAEX_00Y9A0_WD_WCAW30021345
 drives/WDC_WD1002FAEX_00Y9A0_WD_WCAW30024753
 drives/WDC_WD1002FAEX_00Y9A0_WD_WCAW30025874
 drives/WDC_WD1002FAEX_00Y9A0_WD_WCAW30030732
 drives/WDC_WD1002FAEX_00Y9A0_WD_WCAW30031826
 drives/WDC_WD1002FAEX_00Y9A0_WD_WCAW30032003
 drives/WDC_WD1002FAEX_00Y9A0_WD_WCAW30039741
 drives/WDC_WD1002FAEX_00Y9A0_WD_WCAW30063724
 drives/WDC_WD1002FAEX_00Y9A0_WD_WCAW30064055
 drives/WDC_WD1002FAEX_00Y9A0_WD_WCAW30064486
 drives/WDC_WD1002FAEX_00Y9A0_WD_WCAW30064749
 drives/WDC_WD1002FAEX_00Y9A0_WD_WCAW30065104
 drives/WDC_WD1002FAEX_00Y9A0_WD_WCAW30067287

Note that the SEAGATE drives appear twice because of multiple paths to
each drive (each SAS drive has two ports).

Signed-off-by: David Zeuthen <davidz@redhat.com>
src/udisksdaemonutil.c
src/udiskslinuxdrive.c