1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/test
David Teigland be124ae810 vgimportclone: fix non-duplicate PV with non-unique basevgname arg
Fix hang of vgimportclone command when:
the PV(s) being imported are not actually clones/duplicates, and
the -n vgname arg is the same as the current vgname.

(Not the intended use of the command, but it should still work.)

In this case, the old and new vgnames ended up being the same, when
the code expected they would be different.  A file lock on both the
old and new vgnames is used, so when both flocks are on the same
file, the second blocks indefinitely.

Fix the new vgname to be the old name plus a numeric suffix, which
is the expected result.
2023-02-09 17:37:22 -06:00
..
api shellcheck: updates 2021-04-23 23:00:55 +02:00
dbus lvmdbustest: Add test to ensure error collection 2022-11-29 12:56:55 -06:00
lib fix typo 2023-01-11 13:52:12 +01:00
shell vgimportclone: fix non-duplicate PV with non-unique basevgname arg 2023-02-09 17:37:22 -06:00
unit remove static autoactivation 2022-01-27 16:43:11 -06:00
.gitignore test: add results/ to .gitignore 2016-12-10 18:00:25 +00:00
Makefile.in tests: rework makefile 2022-09-07 14:58:01 +02:00