On Sat, Jul 12, 2008 at 01:54:08PM +0200, Harald Dunkel wrote: > Package: e2fsprogs > Version: 1.41.0-1 > Severity: wishlist > > It would be very nice if blkid could tell whether a partition > or a device is mounted or in use (e.g. part of a logical volume).
Well, that really isn't part of blkid's official function, although I can see why that might be handy. You can tell whether it is part of a logical volume just by looking at the type though: /dev/sda5: UUID="RSl8ms-xTzn-0g7n-dd8N-Pfi7-rB2o-07tkve" TYPE="lvm2pv" That means it's part of an LVM group. There is also no sure way of knowing whether is mounted or not. Looking at /proc/mounts only works in the current namespace. With linux, there can be multiple namespaces, so there is no guarantee that all mounts are visible in the current namespace. I'll think about adding it as a convenience function, but it will never be guaranteed to be accurate. - Ted -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]