raw device property

Soren Hansen sh at linux2go.dk
Wed Mar 29 13:30:56 PST 2006


On Wed, Mar 29, 2006 at 11:25:05AM -0800, Artem Kachitchkine wrote:
> What I'm proposing is that "block.raw_device" be an *optional*, not
> mandatory, property. If the system supports and/or configured with raw
> devices, HAL can create this property; otherwise, it doesn't have to.

> As I said, the way this can be handled in a portable application is to 
> check for "block.raw_device" first, and fall back to "block.device" is 
> the former does not exist.

I don't agree. If you can treat the devices under Linux as raw devices,
the proper thing to do would be to put the same value into both
'raw_device' and 'device'. However, on systems where you cannot treat
the devices as raw devices, the raw_device attribute would of course be
non-existant.

-- 
| Soren Hansen    | Linux2Go                  | http://Linux2Go.dk/ |
| Seniorkonsulent | Lindholmsvej 42, 2. TH    | +45 46 90 26 42     |
| sh at linux2go.dk  | 9400 Norresundby, Denmark | GPG key: E8BDA4E3   |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.freedesktop.org/archives/hal/attachments/20060329/a6b2bbee/attachment.pgp


More information about the hal mailing list