Skip to contentSkip to conversation

Soliciting feature requests for development of an LVM library / API

lvm-team Alasdair G Kergon 2 participants 2 messages Dec 15, 2008 7 messages not in the archive

lore
Share & tools
lore
#7 lore raw
In reply to a message not in the archive

Remind me - why does udev want to know about 'target type'?

Is it a hack so it can guess which program (lvm2, cryptsetup, multipath etc.) is responsible for creating the device?

We introduced a standard prefix on the UUID for this purpose instead. Next time we revise the ioctl interface it'll go in as a separate 'owning subsystem' field. (Need to check if any of our packages still need this prefix adding.)

Alasdair

Signature · 1 line
agk at redhat.com
#8 lore raw
Quoted 1 line · Alasdair G Kergon

Remind me - why does udev want to know about 'target type'?

The question is not so much why "udev" wants to know about it. Keep in mind that udev is just a mechanism (a database). FWIW, the consumers of the information in the udev database are

- simple udev rules (shipped with the OS or written by users)
- things like a desktop OS

As it is hard to imagine possible users that falls into these categories it's a good idea to provide as much information as you can as long as it's not prohibitively expensive to do so.

Quoted 7 lines

Is it a hack so it can guess which program (lvm2, cryptsetup, multipath etc.) is responsible for creating the device?

We introduced a standard prefix on the UUID for this purpose instead. Next time we revise the ioctl interface it'll go in as a separate 'owning subsystem' field. (Need to check if any of our packages still need this prefix adding.)

The reason someone (in this case the file manager in the desktop) might want to know about the target type of a mapped device is such that we can make an association between the cryto-block-device (could be /dev/sdb1) and the unlocked clear text device (the mapped device) such that we can paint just a single icon with either an open or locked padlock. And implement all the policy too (like password dialogs).

David