1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-08-31 09:49:29 +03:00

11 Commits

Author SHA1 Message Date
4ee806d391 tests: switch to new skip options for test scripts
Update test scripts to use new command-line options for skipping tests,
replacing the previous use of environment variables. The following options
are now supported:

  --skip-root-dm-check
  --skip-with-devices-file
  --skip-with-lvmpolld
  --skip-with-lvmlockd

- Add command-line option parsing to lib/inittest.sh.
- Replace SKIP_ROOT_DM_CHECK=1 with --skip-root-dm-check.
- Replace SKIP_WITH_DEVICES_FILE=1 with --skip-with-devices-file.
- Replace SKIP_WITH_LVMPOLLD=1 with --skip-with-lvmpolld.
- Replace SKIP_WITH_LVMLOCKD=1 with --skip-with-lvmlockd.
- Update 410 test files to use the new syntax.

This change provides a cleaner, more consistent, and maintainable
way to handle test skipping across the test suite.
Also eliminates number of shellcheck errors.

TODO: convert couple more remaining.
2025-06-25 22:48:42 +02:00
570dbad527 tests: writecache adapt to 300M XFS 2022-09-07 15:00:15 +02:00
cb54d0801d cachevol: allow forced detaching of damaged or invalid cachevol
A cachevol can be forcibly detached when it's missing devices.
Also allow this if it's damaged/invalid and unrepairable.
This would be needed to recover data from the origin LV after
a cachevol is lost or damaged beyond repair.
2021-02-02 14:31:23 -06:00
b84a9927b7 partial flag for writecache and integrity
When a writecache sublv or an integrity metadata sublv
are partial (missing a dev), set the partial flag on
the upper level LV also, as is done for other sublvs.
2020-12-11 16:25:25 -06:00
5dbe2fdd9d writecache: fix uncache for two step detach
Fix the two-step writecache detach in commit c32d7fed4f.
In the case of uncache, the cachevol is removed after
detaching the writecache.  When the detach is finished
in the second step, the remove must wait until then.
2020-12-10 15:42:01 -06:00
6ea3654868 tests: writecache tests
backport updates from later commits
2020-06-10 16:09:36 -05:00
240062a183 writecache: remove from an active lv 2020-06-10 12:13:31 -05:00
2a6078f961 writecache: fix splitcache when origin is raid 2020-02-04 16:12:09 -06:00
c0de37ab18 tests: move vgsplit writecache
to a different file
2020-02-04 10:20:19 -06:00
0673d13518 tests: writecache-split check have_writecache 2019-09-26 10:45:53 -05:00
e35cf0f623 tests: add writecache-split 2019-09-23 16:35:01 -05:00