Make udisks(1) actually show some information
authorDavid Zeuthen <davidz@redhat.com>
Wed, 15 Sep 2010 19:46:58 +0000 (15:46 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Wed, 15 Sep 2010 19:46:58 +0000 (15:46 -0400)
commitfbc38f2edeaf9a50586fe65890a1a842eb72ab6b
treee95c32403c0054a538ef9d0b1597c1e04776e622
parent94de01ee3e6ab9a3a6f89b818b15e01d86ac12dd
Make udisks(1) actually show some information

Looks like this

  $ udisks info --device /dev/sda1
  /org/freedesktop/UDisks/devices/sda1:
    org.freedesktop.UDisks.BlockDevice:
      Device:             /dev/sda1
      Major:              8
      Minor:              1
      Size:               80025223168
      Symlinks:           /dev/block/8:1
                          /dev/disk/by-id/ata-INTEL_SSDSA2MH080G1GC_CVEM842101HD080DGN-part1
                          /dev/disk/by-id/scsi-SATA_INTEL_SSDSA2MH0CVEM842101HD080DGN-part1
                          /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0-part1
                          /dev/disk/by-uuid/4e057fd9-bae5-4a12-83b5-2f654d42edb1
                          /dev/disk/by-label/Fedora-13-x86_64
                          /dev/disk/by-id/wwn-0x5001517387d61905-part1
    org.freedesktop.UDisks.BlockDevice.Probed:
      Label:              Fedora-13-x86_64
      Type:               ext4
      UUID:               4e057fd9-bae5-4a12-83b5-2f654d42edb1
      Usage:              filesystem
      Version:            1.0
    org.freedesktop.UDisks.Filesystem:
      MountPoint:         /
    org.freedesktop.UDisks.LinuxSysfsDevice:
      Subsystem:          block
      SysfsPath:          /sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda1

Also add a dump verb to dump everything.

Signed-off-by: David Zeuthen <davidz@redhat.com>
tools/udisks.c