1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-27 18:55:19 +03:00
lvm2/scripts
Peter Rajnoha 4585785613 blkdeactivate: deactivate dev stack if dev on top already unmounted
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
2016-11-01 16:52:51 +01:00
..
lvm2create_initrd doc: change fsf address 2016-01-21 12:11:37 +01:00
.gitignore gitignore: Update for in-place build. 2015-07-27 13:18:35 +01:00
blk_availability_init_red_hat.in blkdeactivate: add -m|--mpathoption disablequeueing and use it for blk-availability systemd service and initscript 2016-07-12 10:01:07 +02:00
blk_availability_systemd_red_hat.service.in blkdeactivate: add -m|--mpathoption disablequeueing and use it for blk-availability systemd service and initscript 2016-07-12 10:01:07 +02:00
blkdeactivate.sh.in blkdeactivate: deactivate dev stack if dev on top already unmounted 2016-11-01 16:52:51 +01:00
clvmd_fix_conf.sh Use /bin/bash for scripts with bashisms 2010-05-14 11:33:20 +00:00
clvmd_init_red_hat.in scripts: clvmd: replace awk functionality with LVM's selection 2015-01-09 16:41:07 +01:00
cmirrord_init_red_hat.in initscripts: add pidfile reference in chkconfig header for clvmd and cmirrord 2013-06-07 14:07:56 +02:00
com.redhat.lvmdbus1.conf lvmdbus: Add new daemon. 2016-02-17 23:53:35 +00:00
com.redhat.lvmdbus1.service.in dbus: fix the systemd service providing the DBus service 2016-02-26 10:20:08 +01:00
dm_event_systemd_red_hat.service.in systemd: use {local,remote}-fs-pre.target instead of {local,remote}-fs.target 2015-09-23 13:30:51 +02:00
dm_event_systemd_red_hat.socket.in systemd: use RemoveOnStop for dm-event.socket and lvm2-lvmetad.socket 2014-06-13 15:45:25 +02:00
fsadm.sh fsadm: use stat to get major:minor pair for non-standard /dev layouts 2016-03-18 17:21:47 +01:00
gdbinit doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm2_activation_generator_systemd_red_hat.c systemd: fix extra space in unit generated by lvm2-activation-generator 2016-09-26 09:54:19 +02:00
lvm2_cluster_activation_red_hat.sh.in scripts: clvmd: replace awk functionality with LVM's selection 2015-01-09 16:41:07 +01:00
lvm2_cluster_activation_systemd_red_hat.service.in systemd: do not use default dependencies for clvmd/cmirrord units 2014-02-14 14:37:19 +01:00
lvm2_clvmd_systemd_red_hat.service.in systemd: use {local,remote}-fs-pre.target instead of {local,remote}-fs.target 2015-09-23 13:30:51 +02:00
lvm2_cmirrord_systemd_red_hat.service.in systemd: use {local,remote}-fs-pre.target instead of {local,remote}-fs.target 2015-09-23 13:30:51 +02:00
lvm2_lvmdbusd_systemd_red_hat.service.in lvmdbusd: Remove --udev in service file 2016-03-21 17:28:51 -05:00
lvm2_lvmetad_init_red_hat.in doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm2_lvmetad_systemd_red_hat.service.in systemd: cleanup for lvmetad systemd unit 2014-02-10 16:20:45 +01:00
lvm2_lvmetad_systemd_red_hat.socket.in systemd: use RemoveOnStop for dm-event.socket and lvm2-lvmetad.socket 2014-06-13 15:45:25 +02:00
lvm2_lvmlockd_systemd_red_hat.service.in Add lvmlockd 2015-07-02 15:42:26 -05:00
lvm2_lvmlocking_systemd_red_hat.service.in Add lvmlockd 2015-07-02 15:42:26 -05:00
lvm2_lvmpolld_init_red_hat.in doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm2_lvmpolld_systemd_red_hat.service.in lvmpolld: Add standalone polldaemon. 2015-05-09 00:59:18 +01:00
lvm2_lvmpolld_systemd_red_hat.socket.in lvmpolld: Add standalone polldaemon. 2015-05-09 00:59:18 +01:00
lvm2_monitoring_init_red_hat.in doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm2_monitoring_init_rhel4 doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm2_monitoring_systemd_red_hat.service.in systemd: use {local,remote}-fs-pre.target instead of {local,remote}-fs.target 2015-09-23 13:30:51 +02:00
lvm2_pvscan_systemd_red_hat@.service.in systemd: disable service start rate limiting for lvm2-pvscan@.service 2016-09-27 10:48:01 +02:00
lvm2_tmpfiles_red_hat.conf.in Use 'd' instead of 'D' in tmpfiles configuration to not overwrite any existing directory. 2012-02-23 14:24:30 +00:00
lvmconf_lockingtype2.sh doc: change fsf address 2016-01-21 12:11:37 +01:00
lvmconf.sh doc: change fsf address 2016-01-21 12:11:37 +01:00
lvmdump.sh.in lvmdump: Use O_DIRECT to gather metadata. 2016-09-15 14:00:39 +01:00
Makefile.in make: also clean up lvmdump.sh with substitutions - there's original lvmdump.sh.in 2016-09-23 12:48:52 +02:00
relpath.awk doc: change fsf address 2016-01-21 12:11:37 +01:00
vg_convert change two files in different directories 2006-06-06 17:44:11 +00:00
vgimportclone.sh vgimportclone: fix VG name variable reference in error message after failed PV uuid change 2016-01-21 14:47:48 +01:00
VolumeGroup.ocf Add OCF support 2010-11-05 16:18:38 +00:00