]> sourceware.org Git - lvm2.git/commit
Fix detection of mounted filesystem.
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 8 Oct 2010 14:55:19 +0000 (14:55 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 8 Oct 2010 14:55:19 +0000 (14:55 +0000)
commit55b94bf3939b4e35ad5fe8c75d6b386d54109f3f
tree4bbada7741c5731a79bbd0e7f3d3c222c6750cde
parent0d9ed7ade3c7915abf01a47d2362623521c5850f
Fix detection of mounted filesystem.

Update the way how fsadm detects mounted filesystem.
With udev /dev/dm-XXX paths are now returned - but mount or /proc/mounts
prints names in form of /dev/mapper/vg-lv - so the match was not found.
Fixex RHBZ #638050.

Current solution uses same trick as mount and detects vg-lv name through
/sys where available - this should be reasonable safe.

Instead of calling mount without parameter to get actual mount table,
switch to use /proc/mounts directly.
WHATS_NEW
scripts/fsadm.sh
This page took 0.037785 seconds and 5 git commands to generate.