]> sourceware.org Git - lvm2.git/commit
fsadm: if available, use /proc/self/mountinfo to detect mounted volume
authorPeter Rajnoha <prajnoha@redhat.com>
Fri, 18 Mar 2016 12:42:06 +0000 (13:42 +0100)
committerPeter Rajnoha <prajnoha@redhat.com>
Fri, 18 Mar 2016 12:42:06 +0000 (13:42 +0100)
commit2879eff86edb944874c7a1bf580b851286c4da46
tree42fe05eba855560993bc2d27af7db36cf566f4d1
parent464ebe04db33ac105f5278dbbb244a9f84d582f8
fsadm: if available, use /proc/self/mountinfo to detect mounted volume

The /proc/self/mountinfo is not bound to device names like /proc/mounts
and it uses major:minor pairs instead.

This fixes a situation in which a volume is mounted and then renamed
later on - that makes /proc/mounts unreliable when detecting mounted
volumes.

See also https://bugzilla.redhat.com/show_bug.cgi?id=1196910.
WHATS_NEW
scripts/fsadm.sh
This page took 0.03038 seconds and 5 git commands to generate.