]>
sourceware.org Git - lvm2.git/log
Eric Ren [Sat, 8 Jul 2017 17:15:51 +0000 (01:15 +0800)]
man: specify slow device when creating origin LV
Also make the slow device name consistent everywhere.
Signed-off-by: Eric Ren <zren@suse.com>
Eric Ren [Sat, 8 Jul 2017 17:21:38 +0000 (01:21 +0800)]
cleanup: fix some typos
form -> from
accomodate -> accommodate
Signed-off-by: Eric Ren <zren@suse.com>
Eric Ren [Sat, 8 Jul 2017 17:15:49 +0000 (01:15 +0800)]
comment: update
Use 'is' for both forms.
Zdenek Kabelac [Sun, 9 Jul 2017 13:55:10 +0000 (15:55 +0200)]
tests: using prepare_vg
Zdenek Kabelac [Sun, 9 Jul 2017 13:54:43 +0000 (15:54 +0200)]
tests: assign path
Zdenek Kabelac [Sat, 8 Jul 2017 20:29:50 +0000 (22:29 +0200)]
tests: fix array usage
Use bash arrays to pass devs.
Zdenek Kabelac [Sat, 8 Jul 2017 16:23:07 +0000 (18:23 +0200)]
tests: simplify and doublequote
Zdenek Kabelac [Fri, 7 Jul 2017 19:31:38 +0000 (21:31 +0200)]
tests: use well defined test
Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Apparently && and || "short-circuit" while -a and -o do not.
Zdenek Kabelac [Fri, 7 Jul 2017 19:24:57 +0000 (21:24 +0200)]
tests: cleaner written eval
Although code work this coding style is better.
This \c will be a regular 'c' in this context.
Zdenek Kabelac [Fri, 7 Jul 2017 19:24:17 +0000 (21:24 +0200)]
tests: mixes string and array
Argument mixes string and array. Use * or separate argument
Zdenek Kabelac [Fri, 7 Jul 2017 19:18:56 +0000 (21:18 +0200)]
tests: fix caller of mirror_images_on
Missed vg name.
Zdenek Kabelac [Sat, 8 Jul 2017 16:23:47 +0000 (18:23 +0200)]
tests: fix working with devs in array
Also fixes one instance of invalid 'mirror_image_on' test
and places there correct indexed set of PVs.
Zdenek Kabelac [Fri, 7 Jul 2017 19:17:03 +0000 (21:17 +0200)]
tests: check mirror_images_on fixed
Fix mirror_images_on() to actually report something useful (thought
it might be tuned later).
So for now the function got through all '_mimages_' and compares
where the order of them is matching given list of devices.
Zdenek Kabelac [Fri, 7 Jul 2017 11:45:04 +0000 (13:45 +0200)]
tests: correcting usage of $@
Use "$@" (with quotes) to prevent whitespace problems.
Zdenek Kabelac [Fri, 7 Jul 2017 10:12:24 +0000 (12:12 +0200)]
tests: assign as string
Assigning an array to a string! Assign as array, or use * instead of @ to concatenate.
Zdenek Kabelac [Fri, 7 Jul 2017 09:50:33 +0000 (11:50 +0200)]
tests: secure rm call
Use "${var:?}" to ensure this never expands to / .
(Should never happen as 'dir' was supposed to exist from preceding
test.)
Zdenek Kabelac [Fri, 7 Jul 2017 08:10:36 +0000 (10:10 +0200)]
tests: improve loop
Zdenek Kabelac [Fri, 7 Jul 2017 08:00:20 +0000 (10:00 +0200)]
tests: check result directly
Zdenek Kabelac [Thu, 6 Jul 2017 17:41:25 +0000 (19:41 +0200)]
tests: replace cat usage
Zdenek Kabelac [Thu, 6 Jul 2017 18:40:46 +0000 (20:40 +0200)]
tests: add space to split words
Fixing shellcheck warning:
This word is outside of quotes. Did you intend to 'nest '"'single quotes'"' instead'?
Zdenek Kabelac [Thu, 6 Jul 2017 18:37:48 +0000 (20:37 +0200)]
tests: fix tests variable
Actually check $r instead or 'r' for test failure.
Zdenek Kabelac [Mon, 10 Jul 2017 08:38:55 +0000 (10:38 +0200)]
tests: replace legacy code
Use $(..) instead of legacy `..`.
Zdenek Kabelac [Thu, 6 Jul 2017 17:42:29 +0000 (19:42 +0200)]
tests: fix quoting
Zdenek Kabelac [Sun, 9 Jul 2017 09:20:47 +0000 (11:20 +0200)]
tests: drop extra sourcing of utils
This sourceing is automatic by . lib/inittest
Zdenek Kabelac [Thu, 6 Jul 2017 17:45:41 +0000 (19:45 +0200)]
tests: drop useless literal
Here was usage of '\' unneeded.
Zdenek Kabelac [Mon, 10 Jul 2017 10:52:02 +0000 (12:52 +0200)]
tests: drop unneeded ;
Zdenek Kabelac [Sun, 9 Jul 2017 11:35:40 +0000 (13:35 +0200)]
tests: drop unneeded check
Test should actually fail in this condition as it's testing lvmetad.
Zdenek Kabelac [Fri, 7 Jul 2017 19:29:55 +0000 (21:29 +0200)]
tests: drop unneeded echo
Zdenek Kabelac [Thu, 6 Jul 2017 17:42:15 +0000 (19:42 +0200)]
tests: drop unneeded cat
Zdenek Kabelac [Thu, 6 Jul 2017 18:08:53 +0000 (20:08 +0200)]
tests: fix possible misspelling
Possible misspelling: FAILED_MIXED_STR may not be assigned, but FAIL_MIXED_STR is.
Possible misspelling: FAILED_MULTI_STR may not be assigned, but FAIL_MULTI_STR is.
Possible misspelling: FAILED_BLACK_STR may not be assigned, but FAIL_BLACK_STR is.
Zdenek Kabelac [Thu, 6 Jul 2017 17:30:19 +0000 (19:30 +0200)]
tests: avoid masking return values
Declare and assign separately to avoid masking return values.
Zdenek Kabelac [Thu, 6 Jul 2017 17:27:04 +0000 (19:27 +0200)]
tests: math drop uncessary $/${}
$/${} is unnecessary on arithmetic variables.
Use $((..)) instead of deprecated $[..]
Zdenek Kabelac [Mon, 10 Jul 2017 11:01:33 +0000 (13:01 +0200)]
tests: aux.sh tweaks
Some improvements.
Zdenek Kabelac [Mon, 10 Jul 2017 10:46:02 +0000 (12:46 +0200)]
tests: aus.sh avoid duplicating arg list
Zdenek Kabelac [Mon, 10 Jul 2017 10:43:49 +0000 (12:43 +0200)]
tests: aux.sh common pattern for starting daemons
Zdenek Kabelac [Mon, 10 Jul 2017 10:42:20 +0000 (12:42 +0200)]
tests: aux.sh move corosyn
Zdenek Kabelac [Thu, 6 Jul 2017 09:04:07 +0000 (11:04 +0200)]
tests: cleanup msg
Zdenek Kabelac [Tue, 4 Jul 2017 09:55:17 +0000 (11:55 +0200)]
tests: scripts double quote
Zdenek Kabelac [Mon, 10 Jul 2017 08:39:18 +0000 (10:39 +0200)]
tests: use read -r
Zdenek Kabelac [Mon, 3 Jul 2017 18:55:11 +0000 (20:55 +0200)]
tests: replace egrep
Zdenek Kabelac [Mon, 3 Jul 2017 18:36:27 +0000 (20:36 +0200)]
tests: use bash array
Zdenek Kabelac [Sun, 2 Jul 2017 19:56:10 +0000 (21:56 +0200)]
tests: drop wc -l when grep -c works
Zdenek Kabelac [Sun, 2 Jul 2017 19:38:32 +0000 (21:38 +0200)]
tests: use bash
Zdenek Kabelac [Mon, 10 Jul 2017 08:40:09 +0000 (10:40 +0200)]
tests: double quote
Zdenek Kabelac [Sun, 2 Jul 2017 18:25:20 +0000 (20:25 +0200)]
tests: correcting usage of '==' in bash
Zdenek Kabelac [Sun, 9 Jul 2017 11:38:37 +0000 (13:38 +0200)]
tests: utils.sh assign directly
Assign properly quoted vars in eval directly.
Zdenek Kabelac [Mon, 10 Jul 2017 09:56:38 +0000 (11:56 +0200)]
tests: get.sh use simplier tr
Zdenek Kabelac [Fri, 7 Jul 2017 21:03:08 +0000 (23:03 +0200)]
tests: aux.sh check for already present config
'aux lvmconf' detects if new config needs to be regenerated.
Zdenek Kabelac [Thu, 6 Jul 2017 21:58:28 +0000 (23:58 +0200)]
tests: aux.sh double quote
Zdenek Kabelac [Thu, 6 Jul 2017 17:11:46 +0000 (19:11 +0200)]
tests: aux.sh replace sed call
Use internal shell vars manips
Zdenek Kabelac [Sat, 1 Jul 2017 07:41:14 +0000 (09:41 +0200)]
tests: aux.sh use grep -E
egrep is nonstandard.
Zdenek Kabelac [Sat, 1 Jul 2017 07:28:06 +0000 (09:28 +0200)]
tests: aux.sh drop useless echo
Simply trim on space.
Zdenek Kabelac [Sat, 1 Jul 2017 07:27:19 +0000 (09:27 +0200)]
tests: aux.sh check cd result
Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
Zdenek Kabelac [Mon, 10 Jul 2017 11:33:55 +0000 (13:33 +0200)]
tests: export many shell vars with 1 command
Peter Rajnoha [Mon, 10 Jul 2017 10:35:53 +0000 (12:35 +0200)]
udev: also create /dev/disk/by-part{label,uuid} and gpt-auto-root symlinks
The blkid we call in 13-dm-disk.rules also returns identifiers for
partitions based on which the /dev/disk/by-part{uuid,label} and
gpt-auto-root symlinks should be created in the same manner as we
already create symlinks for filesystem labels and uuids.
This is because we handle blkid calls and symlink creation under
/dev/disk ourselves in our 13-dm-disk.rules for device-mapper devices
for us to have more control over this process.
See also https://lists.freedesktop.org/archives/systemd-devel/2017-July/039220.html
and original report http://tracker.ceph.com/issues/19489 for
the exact case where these symlinks were missing.
David Teigland [Mon, 8 May 2017 15:50:27 +0000 (10:50 -0500)]
commands: fix handing of ENO_SUCH_CMD in script
Fix the error messages when an unrecognized command is
run from a script. We shouldn't attempt to parse options
for an unrecognized command name, which causes misleading
errors about bad options, but rather exit right when we
know the command name is not valid. Also don't complain
about exiting without an error message when running a
script if no command didn't exist.
David Teigland [Mon, 8 May 2017 15:31:30 +0000 (10:31 -0500)]
commands: centralize shell vs script vs command decision
This clarifies the point where lvm decides if it is
running an lvm shell, command or a script.
David Teigland [Fri, 7 Jul 2017 19:58:35 +0000 (14:58 -0500)]
lvmlockd: use DM_UUID_LEN for buffer size
Huan Zhang [Fri, 7 Jul 2017 19:53:16 +0000 (14:53 -0500)]
lvmlockd: miss adopt orphaned resources
1. dm_uuid is 68 byte length, but buf is 64 which
will cause miss match uuid from lv lock manager
2. no lv lock_type path in dm config, use lock_args instead
Signed-off-by: Zhang Huan <zhanghuan@chinac.com>
David Teigland [Fri, 7 Jul 2017 19:42:25 +0000 (14:42 -0500)]
lvmlockd: fix revert in lvcreate
If the activation step in lvcreate fails (e.g. the specified
minor number is already used), then the lvcreate is reverted,
but the LV lock in lvmlockd was not being unlocked or properly
freed.
David Teigland [Fri, 7 Jul 2017 17:06:53 +0000 (12:06 -0500)]
lvmlockd: use lock on thin pool when command names tdata
Some lvconvert commands can be used directly on the data sublv:
lvconvert ... vg/pool_tdata
The correct LV lock to use in lvmlockd is the one on the pool LV.
Alasdair G Kergon [Thu, 6 Jul 2017 13:53:10 +0000 (14:53 +0100)]
lvmetad: Suppress accept error on clean shutdown
Also fix error message after pthread_create() error in handle_connect().
Heinz Mauelshagen [Tue, 4 Jul 2017 17:34:10 +0000 (19:34 +0200)]
test: return 0 if ignoring 'a' device health chars is requested
This allows lvconvert-raid-reshape-striped_to_linear.sh to succeed when
it reduces raid5 to two stripes before converting to raid1 and linear.
Alasdair G Kergon [Sat, 1 Jul 2017 00:34:38 +0000 (01:34 +0100)]
clvmd: Fix client list corruption
Centralise editing of the client list into _add_client() and
_del_client(). Introduce _local_client_count to track the size of the
list for debugging purposes. Simplify and standardise the various ways
the list gets walked.
While processing one element of the list in main_loop(),
cleanup_zombie() may be called and remove a different element, so make
sure main_loop() refreshes its list state on return. Prior to this
patch, the list edits for clients disappearing could race against the
list edits for new clients connecting and corrupt the list and cause a
variety of segfaults.
An easy way to trigger such failures was by repeatedly running shell
commands such as:
lvs &; lvs &; lvs &;...;killall -9 lvs; lvs &; lvs &;...
Situations that occasionally lead to the failures can be spotted by
looking for 'EOF' with 'inprogress=1' in the clvmd debug logs.
Alasdair G Kergon [Sat, 1 Jul 2017 00:17:40 +0000 (01:17 +0100)]
clvmd: add client id to debug log messages
Use standard format to make it easier to find the client to which each
debug log message refers.
Alasdair G Kergon [Fri, 30 Jun 2017 23:58:39 +0000 (00:58 +0100)]
clvmd: add debuglog mutex
Log messages issued by different threads occasionally got intertwined.
Zdenek Kabelac [Fri, 30 Jun 2017 19:09:29 +0000 (21:09 +0200)]
tests: aux.sh fix pattern
Commit
72a58ce4b0f68f6e45ae30606fe5af21caa42b43 fixed 'translation' of
pattern by bash by using "" - so we need to drop '\' here to get
wanted behavior.
Zdenek Kabelac [Fri, 30 Jun 2017 17:44:06 +0000 (19:44 +0200)]
coverity: just make impossible division by zero
Visible for analyzer code will not try to use 0 for division.
Zdenek Kabelac [Fri, 30 Jun 2017 17:36:24 +0000 (19:36 +0200)]
man_generator: release buffer after use
Although ATM this code has no memory management at all,
it will not make any harm to release some memory,
when it's not needed anymore.
Zdenek Kabelac [Fri, 30 Jun 2017 17:34:52 +0000 (19:34 +0200)]
raid: ensure enum is defined
Just making sure enum is always defined.
TODO: code path using this enum needs closer inspection.
Zdenek Kabelac [Fri, 30 Jun 2017 12:35:42 +0000 (14:35 +0200)]
tests: aux.sh use subshell for simple redirection
Zdenek Kabelac [Fri, 30 Jun 2017 12:28:44 +0000 (14:28 +0200)]
tests: correcting globbing usage
Ensure globbing uses current dir.
Break loop when no match is found.
Let STACKTRACE finish its output when gdb fails.
Zdenek Kabelac [Fri, 30 Jun 2017 10:07:30 +0000 (12:07 +0200)]
tests: aux prepares lvmdbusd
Correctly skip the test when lvmdbusd is found already running.
For pgrep usage we need to add '-f -l' options to get python3 name
printed.
Remove no longer used 'pids' local var.
Zdenek Kabelac [Fri, 30 Jun 2017 09:45:07 +0000 (11:45 +0200)]
tests: aux do not specify bitmap for raid0
Zdenek Kabelac [Fri, 30 Jun 2017 09:30:57 +0000 (11:30 +0200)]
tests: check LV in proper VG
Zdenek Kabelac [Fri, 30 Jun 2017 09:06:19 +0000 (11:06 +0200)]
tests: check.sh uses array for list
For properly quoted args, switch to use arrays for arg list.
Zdenek Kabelac [Thu, 29 Jun 2017 19:51:26 +0000 (21:51 +0200)]
tests: api updates
Zdenek Kabelac [Thu, 29 Jun 2017 08:26:28 +0000 (10:26 +0200)]
tests: get.sh declare and assign separately
Declare and assign separately to avoid masking return values.
Also comment-out currently unused orig variable.
Zdenek Kabelac [Thu, 29 Jun 2017 08:27:56 +0000 (10:27 +0200)]
tests: get.sh double quote
Zdenek Kabelac [Thu, 29 Jun 2017 19:22:52 +0000 (21:22 +0200)]
tests: utils.sh separately assign
Declare and assign separately to avoid masking return values.
Zdenek Kabelac [Thu, 29 Jun 2017 19:22:23 +0000 (21:22 +0200)]
tests: utils.sh avoid iterating over ls output
Zdenek Kabelac [Thu, 29 Jun 2017 08:19:32 +0000 (10:19 +0200)]
tests: utils.sh arithmetic
expr is antiquated. Consider rewriting this using $((..)), ${} or [[ ]].
$ is unnecessary on arithmetic variables.
Zdenek Kabelac [Thu, 29 Jun 2017 08:14:59 +0000 (10:14 +0200)]
tests: utils.sh no mixed string array
Argument mixes string and array. Use * or separate argument.
Zdenek Kabelac [Thu, 29 Jun 2017 08:12:21 +0000 (10:12 +0200)]
tests: utils.sh double quote
Zdenek Kabelac [Thu, 29 Jun 2017 08:02:36 +0000 (10:02 +0200)]
tests: lvm-wrapper.sh legacy syntax
Zdenek Kabelac [Thu, 29 Jun 2017 08:01:49 +0000 (10:01 +0200)]
tests: lvm-wrapper.sh double quote
Zdenek Kabelac [Thu, 29 Jun 2017 08:38:06 +0000 (10:38 +0200)]
tests: inittest.sh double quote and mixing string
Zdenek Kabelac [Thu, 29 Jun 2017 09:56:47 +0000 (11:56 +0200)]
tests: check.sh eliminate useless cat
Useless cat. Consider 'cmd < file | ..' or 'cmd file | ..' instead.
Zdenek Kabelac [Thu, 29 Jun 2017 07:40:01 +0000 (09:40 +0200)]
tests: check.sh better if
Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
Zdenek Kabelac [Thu, 29 Jun 2017 07:37:20 +0000 (09:37 +0200)]
tests: check.sh drop unnecessary $
$/${} is unnecessary on arithmetic variables.
Zdenek Kabelac [Thu, 29 Jun 2017 06:41:43 +0000 (08:41 +0200)]
tests: check.sh using grep -F
fgrep is non-standard and deprecated. Use grep -F instead.
Zdenek Kabelac [Thu, 29 Jun 2017 06:40:55 +0000 (08:40 +0200)]
tests: check.sh no mixing string
Argument mixes string and array. Use * or separate argument.
Zdenek Kabelac [Thu, 29 Jun 2017 06:39:21 +0000 (08:39 +0200)]
tests: check.sh assign separately
Declare and assign separately to avoid masking return values.
Zdenek Kabelac [Thu, 29 Jun 2017 06:23:23 +0000 (08:23 +0200)]
tests: check.sh double quote
Zdenek Kabelac [Thu, 29 Jun 2017 19:00:17 +0000 (21:00 +0200)]
tests: aux.sh fix pid handling
Modification of pids is local (to subshell caused by pipeline).
pids was modified in a subshell. That change might be lost.
Zdenek Kabelac [Thu, 29 Jun 2017 18:50:06 +0000 (20:50 +0200)]
tests: aux.sh add -r to read
Zdenek Kabelac [Thu, 29 Jun 2017 18:45:46 +0000 (20:45 +0200)]
tests: aux.sh array assing
Assigning an array to a string! Assign as array, or use * instead of @ to concatenate.
Zdenek Kabelac [Thu, 29 Jun 2017 10:07:34 +0000 (12:07 +0200)]
tests: aux.sh separately assign
Declare and assign separately to avoid masking return values.
Zdenek Kabelac [Thu, 29 Jun 2017 05:59:11 +0000 (07:59 +0200)]
tests: aux.sh using grep -c
Consider using grep -c instead of grep|wc -l.
Zdenek Kabelac [Thu, 29 Jun 2017 05:57:59 +0000 (07:57 +0200)]
tests: aux.sh no mixing string
Argument mixes string and array. Use * or separate argument.
This page took 0.059872 seconds and 5 git commands to generate.