]> sourceware.org Git - lvm2.git/log
lvm2.git
7 years agotests: add udev_wait before tearing scsi_debug
Zdenek Kabelac [Fri, 14 Jul 2017 18:23:02 +0000 (20:23 +0200)]
tests: add udev_wait before tearing scsi_debug

Make less probably there will be some udev work going while we try
to remove scsi_debug target.

7 years agotests: aux.sh fix double quote
Zdenek Kabelac [Fri, 14 Jul 2017 18:16:54 +0000 (20:16 +0200)]
tests: aux.sh fix double quote

Patch 72a58ce4b0f68f6e45ae30606fe5af21caa42b43 was wronly placing
double quotes around this variable which we want to pass expanded,
as it's just set of 'space' device args ATM.

TODO consider using array[@] to make this cleaner.
Add shellcheck directive to skip warning here

7 years agotests: utils.sh six stacktrace
Marian Csontos [Fri, 14 Jul 2017 17:51:59 +0000 (19:51 +0200)]
tests: utils.sh six stacktrace

Changes:

- BASH_SOURCE index was one off.
- The first line of stacktrace was pure confusion displaying executed
  script together with innermost line number (which was either 125 when
  STACKTRACE or 229 when skip was called.)
- We can safely ignore innermost call, as stack trace is always produced
  by stacktrace function.
- It is safer to test for array length, instead of testing FUNCNAME is
  main - if main function were introduced.
- Bashishm is safe to use as this function as a whole is relying on bash.

7 years agoraid: add data_offset incompatibility segment type flag
Heinz Mauelshagen [Fri, 14 Jul 2017 13:52:18 +0000 (15:52 +0200)]
raid: add data_offset incompatibility segment type flag

In order to reject out of place reshaping with segment data_offset
field on old runtime, add a respective segment type incompatibility
flag causing "+RESHAPE_DATA_OFFSET" to be suffixed to the segment
type name.

7 years agoraid: use return_0 for better backtracking
Heinz Mauelshagen [Fri, 14 Jul 2017 12:05:21 +0000 (14:05 +0200)]
raid: use return_0 for better backtracking

7 years agoreport: fix data_offset/new_data_offset reporting
Heinz Mauelshagen [Thu, 13 Jul 2017 16:27:38 +0000 (18:27 +0200)]
report: fix data_offset/new_data_offset reporting

7 years agolvconvert: allow reshaping in the cluster and on open devices
Heinz Mauelshagen [Thu, 13 Jul 2017 16:27:19 +0000 (18:27 +0200)]
lvconvert: allow reshaping in the cluster and on open devices

The previous commit fixed allocation/activation of reshape space.

Remove conditionals prohibiting reshaping in these cases.

Related: rhbz1447812
Related: rhbz1448116
Related: rhbz1461562

7 years agoraid: fix allocation/activation of reshape space
Heinz Mauelshagen [Thu, 13 Jul 2017 16:26:43 +0000 (18:26 +0200)]
raid: fix allocation/activation of reshape space

When reshape space is allocated anew, an update and reload is needed to
promote the new size to the cluster node with the exclusively active RaidLV
or reloading the RaidLV will fail with a size related error.  Additionally,
store "data_offset <sectors>" with the RaidLV in the lvm2 metadata so that
it can be retrieved on cluster nodes.

Process allocation of reshape space on a 2-legged raid4/5 (interim layout
to convert from/to linear via raid1) properly in the cluster.

Resolves: rhbz1461562
Resolves: rhbz1448116

7 years agotests: aux.sh integrate both teardown loops
Zdenek Kabelac [Fri, 14 Jul 2017 11:22:15 +0000 (13:22 +0200)]
tests: aux.sh integrate both teardown loops

Use 1 logic for 2 loops tearing down left device.
First loops tries to remove all closed devices with 'normal' remove.
Second loop tries to replace those left devices with 'error' target.

7 years agotests: skip test for non dirty cache
Zdenek Kabelac [Thu, 13 Jul 2017 22:42:40 +0000 (00:42 +0200)]
tests: skip test for non dirty cache

Seems some cache LV can't be made dirty easily with older
cache policy implementations....

7 years agotests: aux.sh better teardown loop
Zdenek Kabelac [Thu, 13 Jul 2017 22:27:55 +0000 (00:27 +0200)]
tests: aux.sh better teardown loop

We can't really sleep that much in teardown as it slows test too much.
So do a nested loop (similar to 'dmsetup remove_all') and keep
removing devices with open count == 0 as long as it works.

7 years agotests: wait for udev to minize race windows
Zdenek Kabelac [Thu, 13 Jul 2017 19:10:06 +0000 (21:10 +0200)]
tests: wait for udev to minize race windows

mkfs can complain about volume in use when meets udev rule processing.

7 years agotests: bound variables
Zdenek Kabelac [Thu, 13 Jul 2017 19:09:45 +0000 (21:09 +0200)]
tests: bound variables

7 years agotests: delay read of cache pool data
Zdenek Kabelac [Thu, 13 Jul 2017 19:08:49 +0000 (21:08 +0200)]
tests: delay read of cache pool data

It's better to delay read of cached data.
Limit loop checking for cleaner policy.

7 years agotests: add some delay after dmsetup
Zdenek Kabelac [Thu, 13 Jul 2017 19:06:04 +0000 (21:06 +0200)]
tests: add some delay after dmsetup

When we want to squash as much device as possible,
it's better to give it some delay, so devices have
some time to release it's resouces for next removal.

Also drop surrounding cookie processing and let each
dmsetup call run on its own.

7 years agoformat_text: Extend FIXME to reduce label scans
Alasdair G Kergon [Thu, 13 Jul 2017 16:05:49 +0000 (17:05 +0100)]
format_text: Extend FIXME to reduce label scans

It's unnecessarily scanning all invalid labels even when nothing changed
instead of first just scanning the ones under the lock.

7 years agodocs: Refresh kernel target docs
Alasdair G Kergon [Wed, 12 Jul 2017 17:59:07 +0000 (18:59 +0100)]
docs: Refresh kernel target docs

7 years agotests: fix for new hardened bash
Zdenek Kabelac [Wed, 12 Jul 2017 16:03:10 +0000 (18:03 +0200)]
tests: fix for new hardened bash

Add missing get_devs.
When $7 is not given use empty string.
See if we can live with less RAM disk for PVs.
Drop limitation on single core as presence 1.12 should address this.

7 years agopvs: use dummy structs in duplicate processing
David Teigland [Wed, 12 Jul 2017 15:51:54 +0000 (10:51 -0500)]
pvs: use dummy structs in duplicate processing

Use the same dummy struct approach from report.c
when a pv needs to be processed without a real vg.

7 years agotests: properly check variables were defined
Zdenek Kabelac [Wed, 12 Jul 2017 11:51:16 +0000 (13:51 +0200)]
tests: properly check variables were defined

When test suite is installed some vars are not defined.

7 years agotests: use properly quoted device list
Zdenek Kabelac [Wed, 12 Jul 2017 11:50:25 +0000 (13:50 +0200)]
tests: use properly quoted device list

7 years agotests: fix detection of running dmeventd after test
Zdenek Kabelac [Wed, 12 Jul 2017 11:38:07 +0000 (13:38 +0200)]
tests: fix detection of running dmeventd after test

The checking order here has happend after TESTDIR was removed
resulting in weird further error on trap path.

Properly check for unexpected dmeventd before removing TESTDIR
since  'trap' codepath is still using it.

Also try to kill this unexpected dmeventd so testing is
not skipping all next  dmeventd tests.

(Downside would be - if user would be accidentally starting
dmeventd by some regular system admin work - such dmeventd
might be killd if it's unused. It can't kill dmeventd in-use.

7 years agotests: utils.sh drop gdb_commands.txt
Zdenek Kabelac [Tue, 11 Jul 2017 23:50:06 +0000 (01:50 +0200)]
tests: utils.sh  drop gdb_commands.txt

Remove file after use (fixes recursive STACKTRACE calls)

7 years agotests: bounds still more vars
Zdenek Kabelac [Tue, 11 Jul 2017 23:37:29 +0000 (01:37 +0200)]
tests: bounds still more vars

7 years agotests: drop type
Zdenek Kabelac [Tue, 11 Jul 2017 23:20:22 +0000 (01:20 +0200)]
tests: drop type

Assuming test wanted to check $lv3 does not exists.

7 years agotests: more exact test
Zdenek Kabelac [Tue, 11 Jul 2017 23:16:10 +0000 (01:16 +0200)]
tests: more exact test

Check there is really just linear.

Also short-circuit mimages_are_on_ when file is empty
(avoids unbound  mimages[@] access on older bash)

7 years agotests: more vars bounded
Zdenek Kabelac [Tue, 11 Jul 2017 23:15:41 +0000 (01:15 +0200)]
tests: more vars bounded

7 years agotests: aux.sh better loop logic
Zdenek Kabelac [Tue, 11 Jul 2017 23:14:36 +0000 (01:14 +0200)]
tests: aux.sh better loop logic

Instead of using pipe for read and haveing no chance
to modify shell vars inside such loop  use  <( )
and keep using bash arrays.

7 years agotests: improve logic for a race to catch abortion
Zdenek Kabelac [Tue, 11 Jul 2017 15:20:24 +0000 (17:20 +0200)]
tests: improve logic for a race to catch abortion

7 years agotests: hardening - no unbound vars
Zdenek Kabelac [Tue, 11 Jul 2017 09:23:34 +0000 (11:23 +0200)]
tests: hardening - no unbound vars

Dissallow usage of any unbound shell variable in tests.
All vars needs to have some defined value.

7 years agotests: check.sh simplify in_sync
Zdenek Kabelac [Tue, 11 Jul 2017 11:29:54 +0000 (13:29 +0200)]
tests: check.sh simplify in_sync

Avoid calling sed.

7 years agotests: double quote
Zdenek Kabelac [Tue, 11 Jul 2017 09:23:14 +0000 (11:23 +0200)]
tests: double quote

7 years agotests: correct typo
Zdenek Kabelac [Tue, 11 Jul 2017 09:19:09 +0000 (11:19 +0200)]
tests: correct typo

Use defined MARKED_AS_USED_MSG shell var.

7 years agotests: avoid unbound shell var usage
Zdenek Kabelac [Tue, 11 Jul 2017 09:18:22 +0000 (11:18 +0200)]
tests: avoid unbound shell var usage

7 years agotests: improve test logic
Zdenek Kabelac [Tue, 11 Jul 2017 09:16:24 +0000 (11:16 +0200)]
tests: improve test logic

Use existing vars.
Reduce extra lvchange -an and use directly activation with lvcreate.

7 years agocleanup: whitespace
Zdenek Kabelac [Tue, 11 Jul 2017 09:21:18 +0000 (11:21 +0200)]
cleanup: whitespace

7 years agocommands: fix lvm shell segfaults
Alasdair G Kergon [Tue, 11 Jul 2017 00:42:06 +0000 (01:42 +0100)]
commands: fix lvm shell segfaults

Don't check for -h/--help if argc is 1.

7 years agolvm: report error if options are set before command
David Teigland [Mon, 10 Jul 2017 16:00:28 +0000 (11:00 -0500)]
lvm: report error if options are set before command

Previously, strange parsing errors were reported.

7 years agolvm: run help from -h|--help
David Teigland [Mon, 10 Jul 2017 15:43:47 +0000 (10:43 -0500)]
lvm: run help from -h|--help

7 years agotests: avoid using readarray
Zdenek Kabelac [Mon, 10 Jul 2017 15:40:31 +0000 (17:40 +0200)]
tests: avoid using readarray

Real bashman can live without readarray.

Support older tested machines with bash <4.0....

7 years agoman: specify slow device when creating origin LV
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>
7 years agocleanup: fix some typos
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>
7 years agocomment: update
Eric Ren [Sat, 8 Jul 2017 17:15:49 +0000 (01:15 +0800)]
comment: update

Use 'is' for both forms.

7 years agotests: using prepare_vg
Zdenek Kabelac [Sun, 9 Jul 2017 13:55:10 +0000 (15:55 +0200)]
tests: using prepare_vg

7 years agotests: assign path
Zdenek Kabelac [Sun, 9 Jul 2017 13:54:43 +0000 (15:54 +0200)]
tests: assign path

7 years agotests: fix array usage
Zdenek Kabelac [Sat, 8 Jul 2017 20:29:50 +0000 (22:29 +0200)]
tests: fix array usage

Use bash arrays to pass devs.

7 years agotests: simplify and doublequote
Zdenek Kabelac [Sat, 8 Jul 2017 16:23:07 +0000 (18:23 +0200)]
tests: simplify and doublequote

7 years agotests: use well defined test
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.

7 years agotests: cleaner written eval
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.

7 years agotests: mixes string and array
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

7 years agotests: fix caller of mirror_images_on
Zdenek Kabelac [Fri, 7 Jul 2017 19:18:56 +0000 (21:18 +0200)]
tests: fix caller of mirror_images_on

Missed vg name.

7 years agotests: fix working with devs in array
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.

7 years agotests: check mirror_images_on fixed
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.

7 years agotests: correcting usage of $@
Zdenek Kabelac [Fri, 7 Jul 2017 11:45:04 +0000 (13:45 +0200)]
tests: correcting usage of $@

Use "$@" (with quotes) to prevent whitespace problems.

7 years agotests: assign as string
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.

7 years agotests: secure rm call
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.)

7 years agotests: improve loop
Zdenek Kabelac [Fri, 7 Jul 2017 08:10:36 +0000 (10:10 +0200)]
tests: improve loop

7 years agotests: check result directly
Zdenek Kabelac [Fri, 7 Jul 2017 08:00:20 +0000 (10:00 +0200)]
tests: check result directly

7 years agotests: replace cat usage
Zdenek Kabelac [Thu, 6 Jul 2017 17:41:25 +0000 (19:41 +0200)]
tests: replace cat usage

7 years agotests: add space to split words
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'?

7 years agotests: fix tests variable
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.

7 years agotests: replace legacy code
Zdenek Kabelac [Mon, 10 Jul 2017 08:38:55 +0000 (10:38 +0200)]
tests: replace legacy code

Use $(..) instead of legacy `..`.

7 years agotests: fix quoting
Zdenek Kabelac [Thu, 6 Jul 2017 17:42:29 +0000 (19:42 +0200)]
tests: fix quoting

7 years agotests: drop extra sourcing of utils
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

7 years agotests: drop useless literal
Zdenek Kabelac [Thu, 6 Jul 2017 17:45:41 +0000 (19:45 +0200)]
tests: drop useless literal

Here was usage of '\' unneeded.

7 years agotests: drop unneeded ;
Zdenek Kabelac [Mon, 10 Jul 2017 10:52:02 +0000 (12:52 +0200)]
tests: drop unneeded ;

7 years agotests: drop unneeded check
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.

7 years agotests: drop unneeded echo
Zdenek Kabelac [Fri, 7 Jul 2017 19:29:55 +0000 (21:29 +0200)]
tests: drop unneeded echo

7 years agotests: drop unneeded cat
Zdenek Kabelac [Thu, 6 Jul 2017 17:42:15 +0000 (19:42 +0200)]
tests: drop unneeded cat

7 years agotests: fix possible misspelling
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.

7 years agotests: avoid masking return values
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.

7 years agotests: math drop uncessary $/${}
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 $[..]

7 years agotests: aux.sh tweaks
Zdenek Kabelac [Mon, 10 Jul 2017 11:01:33 +0000 (13:01 +0200)]
tests: aux.sh  tweaks

Some improvements.

7 years agotests: aus.sh avoid duplicating arg list
Zdenek Kabelac [Mon, 10 Jul 2017 10:46:02 +0000 (12:46 +0200)]
tests: aus.sh avoid duplicating arg list

7 years agotests: aux.sh common pattern for starting daemons
Zdenek Kabelac [Mon, 10 Jul 2017 10:43:49 +0000 (12:43 +0200)]
tests: aux.sh common pattern for starting daemons

7 years agotests: aux.sh move corosyn
Zdenek Kabelac [Mon, 10 Jul 2017 10:42:20 +0000 (12:42 +0200)]
tests: aux.sh move corosyn

7 years agotests: cleanup msg
Zdenek Kabelac [Thu, 6 Jul 2017 09:04:07 +0000 (11:04 +0200)]
tests: cleanup msg

7 years agotests: scripts double quote
Zdenek Kabelac [Tue, 4 Jul 2017 09:55:17 +0000 (11:55 +0200)]
tests: scripts double quote

7 years agotests: use read -r
Zdenek Kabelac [Mon, 10 Jul 2017 08:39:18 +0000 (10:39 +0200)]
tests: use read -r

7 years agotests: replace egrep
Zdenek Kabelac [Mon, 3 Jul 2017 18:55:11 +0000 (20:55 +0200)]
tests: replace egrep

7 years agotests: use bash array
Zdenek Kabelac [Mon, 3 Jul 2017 18:36:27 +0000 (20:36 +0200)]
tests: use bash array

7 years agotests: drop wc -l when grep -c works
Zdenek Kabelac [Sun, 2 Jul 2017 19:56:10 +0000 (21:56 +0200)]
tests: drop wc -l when grep -c works

7 years agotests: use bash
Zdenek Kabelac [Sun, 2 Jul 2017 19:38:32 +0000 (21:38 +0200)]
tests: use bash

7 years agotests: double quote
Zdenek Kabelac [Mon, 10 Jul 2017 08:40:09 +0000 (10:40 +0200)]
tests: double quote

7 years agotests: correcting usage of '==' in bash
Zdenek Kabelac [Sun, 2 Jul 2017 18:25:20 +0000 (20:25 +0200)]
tests: correcting usage of '==' in bash

7 years agotests: utils.sh assign directly
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.

7 years agotests: get.sh use simplier tr
Zdenek Kabelac [Mon, 10 Jul 2017 09:56:38 +0000 (11:56 +0200)]
tests: get.sh use simplier tr

7 years agotests: aux.sh check for already present config
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.

7 years agotests: aux.sh double quote
Zdenek Kabelac [Thu, 6 Jul 2017 21:58:28 +0000 (23:58 +0200)]
tests: aux.sh double quote

7 years agotests: aux.sh replace sed call
Zdenek Kabelac [Thu, 6 Jul 2017 17:11:46 +0000 (19:11 +0200)]
tests: aux.sh replace sed call

Use internal shell vars manips

7 years agotests: aux.sh use grep -E
Zdenek Kabelac [Sat, 1 Jul 2017 07:41:14 +0000 (09:41 +0200)]
tests: aux.sh use grep -E

egrep is nonstandard.

7 years agotests: aux.sh drop useless echo
Zdenek Kabelac [Sat, 1 Jul 2017 07:28:06 +0000 (09:28 +0200)]
tests: aux.sh drop useless echo

Simply trim on space.

7 years agotests: aux.sh check cd result
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.

7 years agotests: export many shell vars with 1 command
Zdenek Kabelac [Mon, 10 Jul 2017 11:33:55 +0000 (13:33 +0200)]
tests: export many shell vars with 1 command

7 years agoudev: also create /dev/disk/by-part{label,uuid} and gpt-auto-root symlinks
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.

7 years agocommands: fix handing of ENO_SUCH_CMD in script
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.

7 years agocommands: centralize shell vs script vs command decision
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.

7 years agolvmlockd: use DM_UUID_LEN for buffer size
David Teigland [Fri, 7 Jul 2017 19:58:35 +0000 (14:58 -0500)]
lvmlockd: use DM_UUID_LEN for buffer size

7 years agolvmlockd: miss adopt orphaned resources
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>
7 years agolvmlockd: fix revert in lvcreate
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.

This page took 0.061691 seconds and 5 git commands to generate.