1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

blkdeactivate: also unmount mount point on top of MD device if using blkdeactivate -u

The blkdeactivate script processes MD devices too so we should unmount
any mount point on top of an MD device if blkdeactivate -u|--umount is
called.

Diagnosed and reported by: Rick Warner <rick@microway.com>
See also https://bugzilla.redhat.com/show_bug.cgi?id=1410585.
This commit is contained in:
Peter Rajnoha 2017-01-06 11:16:07 +01:00
parent b92a9c3e1a
commit d90320f4f1
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.169 - Version 2.02.169 -
===================================== =====================================
Also unmount mount point on top of MD device if using blkdeactivate -u.
Restore check preventing resize of cache type volumes (2.02.158). Restore check preventing resize of cache type volumes (2.02.158).
Add missing udev sync when flushing dirty cache content. Add missing udev sync when flushing dirty cache content.
vgchange -p accepts only uint32 numbers. vgchange -p accepts only uint32 numbers.

View File

@ -171,7 +171,8 @@ device_umount_one() {
} }
device_umount() { device_umount() {
test "$devtype" != "lvm" && test "${kname:0:3}" != "dm-" && return 0 test "$devtype" != "lvm" && test "${kname:0:3}" != "dm-" \
&& test "${kname:0:2}" != "md" && return 0
# FINDMNT is defined only if umount --all-targets is not available. # FINDMNT is defined only if umount --all-targets is not available.
# In that case, read the list of multiple mount points of one device # In that case, read the list of multiple mount points of one device