Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 03 Nov 2006 05:42:23 +0300
From:      Yuri Pankov <y.pankov@irbis.net.ru>
To:        Joe Marcus Clarke <marcus@FreeBSD.org>
Cc:        FreeBSD GNOME Users <gnome@FreeBSD.org>
Subject:   Re: HEADS UP: More HAL testers needed
Message-ID:  <1162521743.7660.5.camel@localhost>
In-Reply-To: <1162508657.22424.57.camel@shumai.marcuscom.com>
References:  <1162508657.22424.57.camel@shumai.marcuscom.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 2006-11-02 at 18:04 -0500, Joe Marcus Clarke wrote:
> I am working to sync our HAL backend up with the latest HAL spec.  To
> that end, I have added support for displaying more volume.partition
> properties.  This patch will only affect HAL objects that have the
> volume.is_partition property set to TRUE.  The only way you'd notice any
> difference is using lshal.  The old output looked something like:
> 
> volume.partition.number = 3 (0x3) (int)
> volume.msdos_part_table_type = 165 (0xa5) (int)
> 
> The new style looks like this:
> 
> volume.partition.start = 18268346880  (0x440e0da00)  (uint64)
> volume.partition.media_size = 61730726400  (0xe5f702200)  (uint64)
> volume.partition.type = '0xa5'  (string)
> volume.partition.scheme = 'mbr'  (string)
> volume.partition.number = 3  (0x3)  (int)
> 
> I'd be particularly interested with feedback from those that have gpt or
> apple schemes, but feedback from mbr users is just as good (i.e. to let
> me know it works on more that just my system).  Thanks.
> 
> http://www.marcuscom.com/downloads/patch-hal_volume
> 
> Joe
> 

After the patch, objects that have volume.is_partition = true:

udi = '/org/freedesktop/Hal/devices/volume_uuid_3A404E42404E04DB'
  volume.mount.valid_options = {'ro', 'noexec'} (string list)
  org.freedesktop.Hal.Device.Volume.method_execpaths =
{'hal-storage-mount', 'hal-system-storage-unmount',
'hal-system-storage-eject'} (string list)
  org.freedesktop.Hal.Device.Volume.method_signatures = {'ssas', 'as',
'as'} (string list)
  org.freedesktop.Hal.Device.Volume.method_names = {'Mount', 'Unmount',
'Eject'} (string list)
  info.interfaces = {'org.freedesktop.Hal.Device.Volume'} (string list)
  block.storage_device =
'/org/freedesktop/Hal/devices/storage_serial_3HSBR7H1'  (string)
  info.product = 'system'  (string)
  info.udi = '/org/freedesktop/Hal/devices/volume_uuid_3A404E42404E04DB'
(string)
  block.is_volume = true  (bool)
  volume.mount_point = ''  (string)
  volume.is_mounted_read_only = false  (bool)
  volume.is_mounted = false  (bool)
  volume.num_blocks = 78140097  (0x4a852c1)  (uint64)
  volume.size = 40007729664  (0x950a58200)  (uint64)
  volume.block_size = 512  (0x200)  (uint64)
  volume.uuid = '3A404E42404E04DB'  (string)
  volume.label = 'system'  (string)
  volume.fsversion = '3.1'  (string)
  volume.fstype = 'ntfs'  (string)
  volume.fsusage = 'filesystem'  (string)
  volume.ignore = false  (bool)
  volume.is_partition = true  (bool)
  volume.is_disc = false  (bool)
  volume.partition.start = 32256  (0x7e00)  (uint64)
  volume.partition.media_size = 40007729664  (0x950a58200)  (uint64)
  volume.partition.type = '0x7'  (string)
  volume.partition.scheme = 'mbr'  (string)
  volume.partition.number = 1  (0x1)  (int)
  block.minor = 93  (0x5d)  (int)
  block.major = 0  (0x0)  (int)
  block.device = '/dev/ad0s1'  (string)
  info.category = 'volume'  (string)
  info.bus = 'block'  (string)
  info.capabilities = {'block', 'volume'} (string list)
  info.parent = '/org/freedesktop/Hal/devices/storage_serial_3HSBR7H1'
(string)

udi = '/org/freedesktop/Hal/devices/volume_part1_size_250056705024'
  block.storage_device =
'/org/freedesktop/Hal/devices/storage_serial_3ND1LZMQ'  (string)
  info.product = 'Volume'  (string)
  info.udi =
'/org/freedesktop/Hal/devices/volume_part1_size_250056705024'  (string)
  block.is_volume = true  (bool)
  volume.mount_point = ''  (string)
  volume.is_mounted_read_only = false  (bool)
  volume.is_mounted = false  (bool)
  volume.num_blocks = 488392002  (0x1d1c4542)  (uint64)
  volume.size = 250056705024  (0x3a388a8400)  (uint64)
  volume.block_size = 512  (0x200)  (uint64)
  volume.uuid = ''  (string)
  volume.label = ''  (string)
  volume.fstype = ''  (string)
  volume.fsusage = 'partitiontable'  (string)
  volume.ignore = true  (bool)
  volume.is_partition = true  (bool)
  volume.is_disc = false  (bool)
  volume.partition.start = 32256  (0x7e00)  (uint64)
  volume.partition.media_size = 250056705024  (0x3a388a8400)  (uint64)
  volume.partition.type = '0xa5'  (string)
  volume.partition.scheme = 'mbr'  (string)
  volume.partition.number = 1  (0x1)  (int)
  block.minor = 95  (0x5f)  (int)
  block.major = 0  (0x0)  (int)
  block.device = '/dev/ad4s1'  (string)
  info.category = 'volume'  (string)
  info.bus = 'block'  (string)
  info.capabilities = {'block', 'volume'} (string list)
  info.parent = '/org/freedesktop/Hal/devices/storage_serial_3ND1LZMQ'
(string)

Everything seems to be correct.


Yuri




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1162521743.7660.5.camel>