Add PartEntryNumber attribute to the BlockDevice interface
authorDavid Zeuthen <davidz@redhat.com>
Thu, 10 Mar 2011 17:18:53 +0000 (12:18 -0500)
committerDavid Zeuthen <davidz@redhat.com>
Thu, 10 Mar 2011 17:18:53 +0000 (12:18 -0500)
Signed-off-by: David Zeuthen <davidz@redhat.com>
data/org.freedesktop.UDisks2.xml
src/udiskslinuxblock.c

index 5ee4f28..35eb633 100644 (file)
 
     <!-- Partition Table Entry -->
     <property name="PartEntry" type="b" access="read"/>
+    <property name="PartEntryNumber" type="u" access="read"/>
     <property name="PartEntryScheme" type="s" access="read"/>
     <property name="PartEntryType" type="s" access="read"/>
     <property name="PartEntryFlags" type="s" access="read"/>
index 4c6c7e4..b90b93f 100644 (file)
@@ -644,6 +644,9 @@ block_device_update (UDisksLinuxBlock      *block,
       udisks_block_device_set_part_entry_scheme (iface,
                                                  g_udev_device_get_property (block->device,
                                                                              "UDISKS_PARTITION_SCHEME"));
+      udisks_block_device_set_part_entry_number (iface,
+                                                 g_udev_device_get_property_as_int (block->device,
+                                                                                    "UDISKS_PARTITION_NUMBER"));
       udisks_block_device_set_part_entry_type (iface,
                                                g_udev_device_get_property (block->device,
                                                                            "UDISKS_PARTITION_TYPE"));