]> 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)
commit66c590c89c65e81f4566572ad22fdea153728b11
tree4bbada7741c5731a79bbd0e7f3d3c222c6750cde
parent821c266f1d2d60418cd079cbe79a5f75dafb00c7
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.034072 seconds and 5 git commands to generate.