1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/tools
Alasdair G Kergon bf78e55ef3 pvcreate: Fix cache state with filters/sig wiping.
_pvcreate_check() has two missing requirements:
  After refreshing filters there must be a rescan.
    (Otherwise the persistent filter may remain empty.)
  After wiping a signature, the filters must be refreshed.
    (A device that was previously excluded by the filter due to
     its signature might now need to be included.)

If several devices are added at once, the repeated scanning isn't
strictly needed, but we can address that later as part of the command
processing restructuring (by grouping the devices).

Replace the new pvcreate code added by commit
54685c20fc "filters: fix regression caused
by commit e80884cd080cad7e10be4588e3493b9000649426"
with this change to _pvcreate_check().

The filter refresh problem dates back to commit
acb4b5e4de "Fix pvcreate device check."
2014-08-14 01:30:01 +01:00
..
.exported_symbols generate liblvm2cmd exported symbols too 2010-06-25 18:23:10 +00:00
.gitignore More .gitignore files for an in-source-tree build. 2012-06-08 16:34:43 +01:00
args.h cleanup: move merge option 2014-07-11 13:32:21 +02:00
cmdnames.h Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1. 2007-08-20 20:55:30 +00:00
commands.h lvscan: Implement a --cache mode. 2014-07-22 22:48:21 +02:00
dmsetup.c dmsetup: no need to check for "help" field name after report init 2014-06-19 18:22:51 +02:00
dumpconfig.c dumpconfig: add --type profilable-command/profilable-metadata, --metadataprofile/--commandprofile 2014-05-20 16:27:07 +02:00
errors.h lvresize: separate validation from action 2013-07-06 03:28:21 +01:00
formats.c Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
lvchange.c lvchange: just skip on cache pool 2014-07-11 12:50:06 +02:00
lvconvert.c thin and cache: unify pool common code 2014-07-22 22:41:38 +02:00
lvcreate.c thin and cache: unify pool common code 2014-07-22 22:41:38 +02:00
lvdisplay.c report: select: add --select arg to pvdisplay, vgdisplay and lvdisplay 2014-06-17 16:27:20 +02:00
lvextend.c Some whitespace tidy-ups. 2008-01-30 14:00:02 +00:00
lvm2cmd-static.c Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1. 2007-08-20 20:55:30 +00:00
lvm2cmd.c Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
lvm2cmd.h lvresize: separate validation from action 2013-07-06 03:28:21 +01:00
lvm2cmdline.h Support repetition of --addtag and --deltag arguments. 2010-11-11 17:29:05 +00:00
lvm-static.c Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
lvm.c readline: switch to new-style readline typedef 2014-03-06 17:28:40 +01:00
lvmchange.c Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
lvmcmdlib.c cleanup: drop unneeded included header files 2012-08-23 14:37:20 +02:00
lvmcmdline.c tools: switch logic for new arg_ func 2014-07-22 22:38:59 +02:00
lvmdiskscan.c Few more close and dev_close trace 2012-03-01 21:12:37 +00:00
lvreduce.c Some whitespace tidy-ups. 2008-01-30 14:00:02 +00:00
lvremove.c snapshot: move virtsnap code from tool to lib 2013-10-12 00:14:52 +02:00
lvrename.c report: select: refactor: move str_list to libdm 2014-06-17 16:27:20 +02:00
lvresize.c lvresize: separate validation from action 2013-07-06 03:28:21 +01:00
lvscan.c lvscan: Fix possible gcc warnings in --cache implementation. 2014-08-04 17:36:12 +02:00
Makefile.in makefiles: link blkid library only to lvm 2014-03-06 17:30:10 +01:00
polldaemon.c report: select: refactor: move percent handling code to libdm for reuse 2014-06-17 16:27:21 +02:00
polldaemon.h Start using 64-bit status flags - most of the code already handles them. 2011-09-06 18:49:31 +00:00
pvchange.c report: select: refactor: move str_list to libdm 2014-06-17 16:27:20 +02:00
pvck.c Move the core of the lib/config/config.c functionality into libdevmapper, 2011-08-30 14:55:15 +00:00
pvcreate.c pvcreate: Fix cache state with filters/sig wiping. 2014-08-14 01:30:01 +01:00
pvdisplay.c report: select: add --select arg to pvdisplay, vgdisplay and lvdisplay 2014-06-17 16:27:20 +02:00
pvmove.c pvmove: remove spurious "Skipping mirror LV" message on pvmove of clustered mirror 2014-08-07 15:23:58 +02:00
pvremove.c pvremove: Catch CTRL-c during prompts. 2014-04-29 08:16:28 +01:00
pvresize.c pvresize: fail exit code for negative size 2014-03-25 11:52:03 +01:00
pvscan.c cleanup: use stack for small buffer 2014-06-17 13:42:45 +02:00
reporter.c report: display 'unknown' value for LVSINFO fields if unable to get info 2014-07-11 10:18:59 +02:00
segtypes.c Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
stub.h Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
tags.c tools: Add internal tags command. 2014-01-30 13:09:15 +00:00
toollib.c thin and cache: unify pool common code 2014-07-22 22:41:38 +02:00
toollib.h thin and cache: unify pool common code 2014-07-22 22:41:38 +02:00
tools.h tools: switch logic for new arg_ func 2014-07-22 22:38:59 +02:00
vgcfgbackup.c cleanup: stack usage 2013-07-01 23:11:14 +02:00
vgcfgrestore.c vgcfgrestore: return invalid cmd line 2014-05-21 23:14:41 +02:00
vgchange.c cleanup: add missing log_error 2014-06-10 10:51:26 +02:00
vgck.c vgck: Fix #894136, notice on-disk corruption in spite of lvmetad. 2013-08-13 23:25:49 +02:00
vgconvert.c vgconvert: Do not call lvmetad_vg_remove (path shared with vgcfgbackup). 2013-09-18 12:53:11 +02:00
vgcreate.c config: differentiate command and metadata profiles and consolidate profile handling code 2014-05-20 16:21:48 +02:00
vgdisplay.c report: select: add --select arg to pvdisplay, vgdisplay and lvdisplay 2014-06-17 16:27:20 +02:00
vgexport.c cleanup: vgexport drops pv pointer 2014-03-30 23:44:59 +02:00
vgextend.c vgextend: allow --yes to skip prompt 2014-05-23 23:35:40 +02:00
vgimport.c vgimport/vgexport: return invalid cmd 2014-03-30 23:40:27 +02:00
vgmerge.c vgsplit: Fix VG component of lvid. 2014-07-03 19:06:04 +01:00
vgmknodes.c cleanup: introduce return_ECMD_FAILED macro 2013-07-01 23:10:33 +02:00
vgreduce.c metadata.c: Call refactored vgreduce_single 2013-11-19 14:40:30 -06:00
vgremove.c cleanup: introduce return_ECMD_FAILED macro 2013-07-01 23:10:33 +02:00
vgrename.c report: select: refactor: move str_list to libdm 2014-06-17 16:27:20 +02:00
vgscan.c lvmcache: handle reinit without error 2014-03-21 22:29:21 +01:00
vgsplit.c vgsplit: Improve message when LV still active. 2014-07-04 01:13:51 +01:00