1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-27 18:55:19 +03:00
lvm2/scripts
Peter Rajnoha 359291b41c systemd: use only major:minor for pvscan in lvm2-pvscan@.service
When using filters for the pvscan --cache (the global_filter),
there's a difference between:

  pvscan --cache -aay /dev/block/<major>:<minor>

and

  pvscan --cache -aay <major>:<minor> (or --major <major> --minor <minor>)

In the first case, we need to be sure to have an exact matching line
in the filter for the device to be used, no aliases are considered
So for example even if we have accept rule for "/dev/sda" present,
this won't apply for "/dev/block/8:0" even though it's the same device!
This is because we're comparing the path used on command line directly
with the path written in the rule.

For the second one, any alias mentioned in the filter will apply
as we're comparing the major and minor pair, not looking at actual
device names - so any alias mentioned in the rules will suffice for
the filtering rule to apply.

For the global_filter to be properly used, we need to call the
second one in the lvm2-pvscan@.service - nobody is able to tell
what value of major:minor the kernel assignes next time, hence
this bug makes the use of global_filter quite unusable!
2013-12-18 12:23:59 +01:00
..
lvm2create_initrd Add .gitignore files for an in-source-tree build. 2012-06-08 16:26:21 +01:00
.gitignore More .gitignore files for an in-source-tree build. 2012-06-08 16:34:43 +01:00
blk_availability_init_red_hat.in scripts: blk-availability - use full name for clarity 2012-10-15 16:10:58 +02:00
blk_availability_systemd_red_hat.service.in scripts: blk-availability should be stopped before FCoE 2012-10-15 15:00:12 +02:00
blkdeactivate.sh.in blkdeactivate: fix endless loop if device(s) given and unable to umount/deactivate 2013-10-22 16:24:39 +02: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 initscripts: add pidfile reference in chkconfig header for clvmd and cmirrord 2013-06-07 14:07:56 +02: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
dm_event_systemd_red_hat.service.in systemd: Add Documentation references 2012-06-20 14:23:50 +02:00
dm_event_systemd_red_hat.socket.in systemd: add doc reference in dm-event.socket 2012-06-29 13:54:35 +02:00
fsadm.sh locales: use higher prio LC_ALL variable 2013-01-22 11:25:02 +01:00
gdbinit RAID: Add writemostly/writebehind support for RAID1 2013-04-15 13:59:46 -05:00
lvm2_activation_generator_systemd_red_hat.c systemd: run lvm2-activation-net.service after lvm2-activation.service 2013-09-16 11:47:09 +02:00
lvm2_lvmetad_init_red_hat.in Remove pvscan --cache from lvm2-lvmetad init script. 2012-10-15 12:58:23 +02:00
lvm2_lvmetad_systemd_red_hat.service.in systemd: remove ExecStartPost from lvm2-lvmetad.service. 2012-10-08 16:49:54 +02:00
lvm2_lvmetad_systemd_red_hat.socket.in systemd: Add Documentation references 2012-06-20 14:23:50 +02:00
lvm2_monitoring_init_red_hat.in Use also normalized output for vgchange command in lvm2-monitor init script. 2011-12-16 11:42:56 +00:00
lvm2_monitoring_init_rhel4 Use also normalized output for vgchange command in lvm2-monitor init script. 2011-12-16 11:42:56 +00:00
lvm2_monitoring_systemd_red_hat.service.in systemd: remove quotes in lvm2-monitor.service ExecStop 2012-11-02 20:32:28 +01:00
lvm2_pvscan_systemd_red_hat@.service.in systemd: use only major:minor for pvscan in lvm2-pvscan@.service 2013-12-18 12:23:59 +01: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 Use /bin/bash for scripts with bashisms 2010-05-14 11:33:20 +00:00
lvmconf.sh lvmconf: use_lvmetad=0 on --enable-cluster, reset to default on --disable-cluster 2013-09-24 14:03:42 +02:00
lvmdump.sh lvmdump: follow symbolic links in /etc/lvm 2013-12-05 16:36:45 +01:00
Makefile.in compile/link: use RELRO/PIE compiler/linker options for executables 2013-12-05 14:03:10 +01:00
relpath.awk Fix scripts/relpath.awk to work with mawk 2010-05-21 15:28:16 +00:00
vg_convert change two files in different directories 2006-06-06 17:44:11 +00:00
vgimportclone.sh vgimportclone: remove 2>/dev/null from three lvm commands 2013-10-21 18:04:14 -04:00
VolumeGroup.ocf Add OCF support 2010-11-05 16:18:38 +00:00