mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
4585785613
If blkdeactivate finds out that the device on top of device stack is already unmounted, it still proceeds with device stack deactivation underneath now. This situation can happen if blkdeactivate is started and the mount point is unmounted in parallel by chance (so when blkdeactivate gets the the actual umount call, the device is not mounted anymore). Before, the blkdeactivate added such device to skip list which caused all the stack underneath to be skipped too on deactivation. Now, we proceed just as if blkdeactivate did the umount itself. For example, in the example below, the vg-lvol0 is mounted on /mnt/test when blkdeactivate is called, but it gets unmounted in parallel later on when blkdeactivate gets to the actual umount call. Before this patch (vg-lvol0 underneath not deactivated): $ blkdeactivate -u Deactivating block devices: [UMOUNT]: unmounting vg-lvol0 (dm-2) mounted on /mnt/test... skipping With this patch applied (vg-lvol0 underneath still deactivated): $ blkdeactivate -u Deactivating block devices: [UMOUNT]: unmounting vg-lvol0 (dm-2) mounted on /mnt/test... already unmounted [LVM]: deactivating Logical Volume vg/lvol0... done |
||
---|---|---|
.. | ||
lvm2create_initrd | ||
.gitignore | ||
blk_availability_init_red_hat.in | ||
blk_availability_systemd_red_hat.service.in | ||
blkdeactivate.sh.in | ||
clvmd_fix_conf.sh | ||
clvmd_init_red_hat.in | ||
cmirrord_init_red_hat.in | ||
com.redhat.lvmdbus1.conf | ||
com.redhat.lvmdbus1.service.in | ||
dm_event_systemd_red_hat.service.in | ||
dm_event_systemd_red_hat.socket.in | ||
fsadm.sh | ||
gdbinit | ||
lvm2_activation_generator_systemd_red_hat.c | ||
lvm2_cluster_activation_red_hat.sh.in | ||
lvm2_cluster_activation_systemd_red_hat.service.in | ||
lvm2_clvmd_systemd_red_hat.service.in | ||
lvm2_cmirrord_systemd_red_hat.service.in | ||
lvm2_lvmdbusd_systemd_red_hat.service.in | ||
lvm2_lvmetad_init_red_hat.in | ||
lvm2_lvmetad_systemd_red_hat.service.in | ||
lvm2_lvmetad_systemd_red_hat.socket.in | ||
lvm2_lvmlockd_systemd_red_hat.service.in | ||
lvm2_lvmlocking_systemd_red_hat.service.in | ||
lvm2_lvmpolld_init_red_hat.in | ||
lvm2_lvmpolld_systemd_red_hat.service.in | ||
lvm2_lvmpolld_systemd_red_hat.socket.in | ||
lvm2_monitoring_init_red_hat.in | ||
lvm2_monitoring_init_rhel4 | ||
lvm2_monitoring_systemd_red_hat.service.in | ||
lvm2_pvscan_systemd_red_hat@.service.in | ||
lvm2_tmpfiles_red_hat.conf.in | ||
lvmconf_lockingtype2.sh | ||
lvmconf.sh | ||
lvmdump.sh.in | ||
Makefile.in | ||
relpath.awk | ||
vg_convert | ||
vgimportclone.sh | ||
VolumeGroup.ocf |