]> sourceware.org Git - lvm2.git/log
lvm2.git
12 years agobuffering: use unbuffered silent mode for liblvm
Alasdair G Kergon [Sat, 25 Aug 2012 23:15:45 +0000 (00:15 +0100)]
buffering: use unbuffered silent mode for liblvm

Disable private buffering when using liblvm.
When private stdin/stdout buffering is not used always use silent
mode.

12 years agoconfig: add silent mode
Alasdair G Kergon [Sat, 25 Aug 2012 19:35:48 +0000 (20:35 +0100)]
config: add silent mode

Accept -q as the short form of --quiet.
Suppress non-essential standard output if -q is given twice.
Treat log/silent in lvm.conf as equivalent to -qq.
Review all log_print messages and change some to
log_print_unless_silent.

When silent, the following commands still produce output:
dumpconfig, lvdisplay, lvmdiskscan, lvs, pvck, pvdisplay,
pvs, version, vgcfgrestore -l, vgdisplay, vgs.
[Needs checking.]

Non-essential messages are shifted from log level 4 to log level 5
for syslog and lvm2_log_fn purposes.

12 years agoRAID: Add support for RAID10
Jonathan Brassow [Fri, 24 Aug 2012 20:34:19 +0000 (15:34 -0500)]
RAID:  Add support for RAID10

This patch adds support for RAID10.  It is not the default at this
stage.  The user needs to specify '--type raid10' if they would like
RAID10 instead of stacked mirror over stripe.

12 years agoversion: update
Alasdair G Kergon [Fri, 24 Aug 2012 17:51:24 +0000 (18:51 +0100)]
version: update

12 years agoclenaup: compatible definition for older gcc
Zdenek Kabelac [Thu, 23 Aug 2012 14:12:45 +0000 (16:12 +0200)]
clenaup: compatible definition for older gcc

Fixes previous commit, it seems older gcc compilers do not
recognize same typedef.

(Easiest would be probably to directly include proper header here).

12 years agocleanup: add some missing stack backtraces
Zdenek Kabelac [Tue, 13 Mar 2012 20:36:02 +0000 (21:36 +0100)]
cleanup: add some missing stack backtraces

12 years agothin: discard
Zdenek Kabelac [Tue, 21 Aug 2012 13:51:54 +0000 (15:51 +0200)]
thin: discard

12 years agolvmapi: validate extents size for lvcreate
Zdenek Kabelac [Thu, 1 Mar 2012 16:59:35 +0000 (17:59 +0100)]
lvmapi: validate extents size for lvcreate

12 years agocleanup: initilize percent to INVALID
Zdenek Kabelac [Wed, 20 Jun 2012 10:05:00 +0000 (12:05 +0200)]
cleanup: initilize percent to INVALID

Always initialize percent to INVALID value, in case target
would have forget to setup this value somehow.

12 years agoclvmd,lvmetad: check for fcntl result
Zdenek Kabelac [Wed, 20 Jun 2012 08:49:16 +0000 (10:49 +0200)]
clvmd,lvmetad: check for fcntl result

Report any problem of fcntl.

12 years agoactivation: report error message
Zdenek Kabelac [Fri, 29 Jun 2012 08:18:28 +0000 (10:18 +0200)]
activation: report error message

If the monitoring activation failed and we have not yet
reported error - give the user error message for failure reason.

12 years agolvconvert: use _reload_lv on more places
Zdenek Kabelac [Thu, 2 Aug 2012 09:38:07 +0000 (11:38 +0200)]
lvconvert: use _reload_lv on more places

Use common subroutine.

12 years agolvconvert: move _reload_lv()
Zdenek Kabelac [Wed, 1 Aug 2012 13:34:45 +0000 (15:34 +0200)]
lvconvert: move _reload_lv()

Just move in front

12 years agocleanup: format1 test whether PV was found
Zdenek Kabelac [Thu, 21 Jun 2012 11:52:19 +0000 (13:52 +0200)]
cleanup: format1 test whether PV was found

Avoid dereferecing NULL pointer.

12 years agocleanup: add __attribute__ ((nonnull(1)))
Zdenek Kabelac [Sat, 23 Oct 2010 21:45:50 +0000 (23:45 +0200)]
cleanup: add __attribute__ ((nonnull(1)))

12 years agocheck: add internal errors for unexpected paths
Zdenek Kabelac [Thu, 21 Jun 2012 10:43:31 +0000 (12:43 +0200)]
check: add internal errors for unexpected paths

Adding couple INTERNAL_ERROR reports for unwanted parameters:

Ensure the 'top' metadata node cannot be NULL for lvmetad.

Make obvious vginfo2 cannot be NULL.

Report internal error if handler and vg is undefined.

Check for handle in poll_vg().

Ensure seg is not NULL in dev_manager_transient().

Report missing read_ahead for _lv_read_ahead_single().

Check for report handler in dm_report_object().

Check missing VG in _vgreduce_single().

12 years agocleanup: add error message and simplify creation
Zdenek Kabelac [Wed, 20 Jun 2012 08:35:24 +0000 (10:35 +0200)]
cleanup: add error message and simplify creation

Report error for malloc failure, and use zeroed allocation
to initialize handler structure.

12 years agocleanup: use proper activation_change_t
Zdenek Kabelac [Tue, 21 Aug 2012 13:49:23 +0000 (15:49 +0200)]
cleanup: use proper activation_change_t

12 years agocleanup: use static char[] array
Zdenek Kabelac [Tue, 21 Aug 2012 13:16:32 +0000 (15:16 +0200)]
cleanup: use static char[] array

12 years agocleanup: cast to matching type
Zdenek Kabelac [Fri, 17 Aug 2012 10:15:36 +0000 (12:15 +0200)]
cleanup: cast to matching type

12 years agocleanup: use return_NULL
Zdenek Kabelac [Fri, 17 Aug 2012 10:04:52 +0000 (12:04 +0200)]
cleanup: use return_NULL

Function returns pointer, so use NULL.

12 years agocleanup: ignore write/close output
Zdenek Kabelac [Thu, 16 Aug 2012 22:48:28 +0000 (00:48 +0200)]
cleanup: ignore write/close output

Intentionaly ignore write and close errors.

12 years agocleanup: add va_end
Zdenek Kabelac [Thu, 16 Aug 2012 22:46:00 +0000 (00:46 +0200)]
cleanup: add va_end

Pair va_start with va_end.

12 years agocleanup: uint64_t casts
Zdenek Kabelac [Thu, 16 Aug 2012 18:07:30 +0000 (20:07 +0200)]
cleanup: uint64_t casts

12 years agocleanup: keep MKNOD type cast clean
Zdenek Kabelac [Thu, 16 Aug 2012 18:06:07 +0000 (20:06 +0200)]
cleanup: keep MKNOD type cast clean

Setup major already a dev_t type before it gets shifted.

12 years agocleanup: add standard GPL file header
Zdenek Kabelac [Thu, 16 Aug 2012 23:15:45 +0000 (01:15 +0200)]
cleanup: add standard GPL file header

Add FIXME about DEBUG define colission.

12 years agocleanup: use <> for system header file
Zdenek Kabelac [Thu, 16 Aug 2012 23:12:10 +0000 (01:12 +0200)]
cleanup: use <> for system header file

12 years agocleanup: drop unneeded included header files
Zdenek Kabelac [Thu, 16 Aug 2012 17:24:09 +0000 (19:24 +0200)]
cleanup: drop unneeded included header files

This headers were not resolving anything used for compiled .c files.
Remove unused util.c file.

12 years agocmirrord: check for result of chdir
Zdenek Kabelac [Tue, 19 Jun 2012 22:10:40 +0000 (00:10 +0200)]
cmirrord: check for result of chdir

Error exit if chdir fails.

12 years agodmsetup: check if new_name is non NULL
Zdenek Kabelac [Mon, 27 Feb 2012 00:19:23 +0000 (01:19 +0100)]
dmsetup: check if new_name is non NULL

12 years agodmsetup: fix udev warning message
Zdenek Kabelac [Thu, 28 Jun 2012 19:32:24 +0000 (21:32 +0200)]
dmsetup: fix udev warning message

Configure option is --enable-udev_sync.

12 years agodmsetup: fix memleak in _get_split_name
Zdenek Kabelac [Thu, 16 Aug 2012 18:12:38 +0000 (20:12 +0200)]
dmsetup: fix memleak in _get_split_name

Free allocated buffer in _get_split_name error path.

12 years agoclvmd: release excl_uuid hash
Zdenek Kabelac [Thu, 16 Aug 2012 18:26:46 +0000 (20:26 +0200)]
clvmd: release excl_uuid hash

Release allocated hash before exit.

12 years agolvmetad: do not deref NULL pointer
Zdenek Kabelac [Thu, 23 Aug 2012 09:01:00 +0000 (11:01 +0200)]
lvmetad: do not deref NULL pointer

Call log only for req.cft != NULL.

12 years agolvmetad: fix memleak on error path
Zdenek Kabelac [Thu, 23 Aug 2012 09:00:02 +0000 (11:00 +0200)]
lvmetad: fix memleak on error path

Release allocated buffer on error path.

12 years agolvmetad: fix memleaks
Zdenek Kabelac [Thu, 16 Aug 2012 18:10:35 +0000 (20:10 +0200)]
lvmetad: fix memleaks

Release allocated buffers in daemon_logf, daemon_log_parse

12 years agomirror: reconfigure_mirror_images not used
Peter Rajnoha [Wed, 15 Aug 2012 08:44:19 +0000 (10:44 +0200)]
mirror: reconfigure_mirror_images not used

12 years agothin: lvcreate --discards
Zdenek Kabelac [Thu, 9 Aug 2012 10:20:47 +0000 (12:20 +0200)]
thin: lvcreate --discards

12 years agothin: fix man page for lvs
Zdenek Kabelac [Thu, 9 Aug 2012 09:27:14 +0000 (11:27 +0200)]
thin: fix man page for lvs

Renamed discard -> discards

12 years agothin: fix condition for kernels without discards
Zdenek Kabelac [Thu, 9 Aug 2012 09:25:41 +0000 (11:25 +0200)]
thin: fix condition for kernels without discards

Report warning if the kernel is not support given discards settings.
(In this case the behavior is equal to IGNORE.)

12 years agothin: default discards for old mda is IGNORE
Zdenek Kabelac [Thu, 9 Aug 2012 09:24:37 +0000 (11:24 +0200)]
thin: default discards for old mda is IGNORE

If the discard was not set in metadata, use IGNORE, as this
is the equivalent behavior for this case.

12 years agoRAID: Improve RAID argument handling.
Jonathan Brassow [Wed, 8 Aug 2012 17:32:27 +0000 (12:32 -0500)]
RAID: Improve RAID argument handling.

Disallow '-m' for RAID types that have no mirror component and disallow
'-i' argument for RAID types that have no stripe component.

12 years agolibdaemon: Draft logging infrastructure.
Petr Rockai [Wed, 8 Aug 2012 07:41:01 +0000 (09:41 +0200)]
libdaemon: Draft logging infrastructure.

- logging is not controlled by "levels" but by "types"; types are
  independent of each other... implementation of the usual "log level"
  user-level semantics can be simply done on top; the immediate
  application is enabling/disabling wire traffic logging independently
  of other debug data, since the former is rather bulky and can easily
  obscure almost everything else
- all logs go to "outlets", of which we currently have 2: syslog and
  stderr; which "types" go to which "outlets" is entirely configurable

12 years agothin: fix recent commits v2_02_97
Alasdair G Kergon [Tue, 7 Aug 2012 20:59:06 +0000 (21:59 +0100)]
thin: fix recent commits

12 years agothin: use discards as plural rather than singular
Alasdair G Kergon [Tue, 7 Aug 2012 20:24:41 +0000 (21:24 +0100)]
thin: use discards as plural rather than singular

Global change from --discard to --discards, as that feels more natural.

12 years agorelease: update version/WHATS_NEW
Alasdair G Kergon [Tue, 7 Aug 2012 19:41:45 +0000 (20:41 +0100)]
release: update version/WHATS_NEW

12 years agothin: tidy thin discard code
Alasdair G Kergon [Tue, 7 Aug 2012 19:40:19 +0000 (20:40 +0100)]
thin: tidy thin discard code

Always store discard setting in LV metadata.  (Note that lvcreate_params
doesn't yet use --discard to set the initial value.)
Remove undocumented env var LVM_THIN_VERSION_MIN that has no use on a
live system.
Change verbose 'feature not found' messages to debug.
Use discard_str for string value of discard.

12 years agoman: expand lvchange --discard entry
Alasdair G Kergon [Tue, 7 Aug 2012 19:20:16 +0000 (20:20 +0100)]
man: expand lvchange --discard entry

12 years agothin: tidy commands.h arg lists
Alasdair G Kergon [Tue, 7 Aug 2012 19:10:06 +0000 (20:10 +0100)]
thin: tidy commands.h arg lists

args are listed alphabetically.
lvconvert -T is covered in the second section not the first.
It could be tidied further or split out.

12 years agothin: mention discard/zero in lvchange errmsg
Alasdair G Kergon [Tue, 7 Aug 2012 19:08:14 +0000 (20:08 +0100)]
thin: mention discard/zero in lvchange errmsg

12 years agowhitespace
Alasdair G Kergon [Tue, 7 Aug 2012 18:04:52 +0000 (19:04 +0100)]
whitespace

12 years agoreport: provide discard field value in full
Alasdair G Kergon [Tue, 7 Aug 2012 17:48:34 +0000 (18:48 +0100)]
report: provide discard field value in full

I think it's better not to abbreviate human-readable fields like
'discard' to a single character.  Users can truncate it to the
first character themselves if they wish.

It's confusing to use the variable name discard for different things in
different places - use discard_str when it's a string not the enum.

12 years agoactivation: log target version present
Alasdair G Kergon [Tue, 7 Aug 2012 17:47:33 +0000 (18:47 +0100)]
activation: log target version present

Log (very verbose) the target version present in target_version.

12 years agothin: tighten discard string conversions
Alasdair G Kergon [Tue, 7 Aug 2012 17:37:35 +0000 (18:37 +0100)]
thin: tighten discard string conversions

Respond with "unknown" rather than a NULL pointer if there's an
internal error and the discard value is invalid.

Don't accept 'no_passdown' or 'no-passdown' variants in the LVM
metadata: this is written by the program so should only ever contain
"nopassdown" and should be validated strictly against that.

12 years agothin: order discard enum alphabetically
Alasdair G Kergon [Tue, 7 Aug 2012 17:36:40 +0000 (18:36 +0100)]
thin: order discard enum alphabetically

12 years agocomments: misc updates
Alasdair G Kergon [Tue, 7 Aug 2012 17:34:30 +0000 (18:34 +0100)]
comments: misc updates

Miscellaneous clarifications to comments.

12 years agoman: document allocation process in lvm.8
Alasdair G Kergon [Tue, 7 Aug 2012 01:06:42 +0000 (02:06 +0100)]
man: document allocation process in lvm.8

12 years agoargs: increase major:minor limit to 4095:1048575
Peter Rajnoha [Mon, 6 Aug 2012 16:01:01 +0000 (18:01 +0200)]
args: increase major:minor limit to 4095:1048575

Remove the limit for major and minor number arguments used while specifying
persistent numbers via -My --major <major> --minor <minor> option which
was set to 255 before. Follow the kernel limit instead which is 12 bits
for major and 20 bits for minor number (kernel >= 2.6 and LVM formats
that does not have FMT_RESTRICTED_LVIDS - so still keep the old limit
of 255 for lvm1 format).

12 years ago[lvmetad] Continue reading/writing on EINTR
Marian Csontos [Thu, 2 Aug 2012 14:40:21 +0000 (16:40 +0200)]
[lvmetad] Continue reading/writing on EINTR

12 years agoRemove redundant (potentially harmful) semicolon
Marian Csontos [Thu, 2 Aug 2012 09:38:19 +0000 (11:38 +0200)]
Remove redundant (potentially harmful) semicolon

12 years agolvmetad: Skip redundant checks on no input
Marian Csontos [Wed, 1 Aug 2012 14:06:32 +0000 (16:06 +0200)]
lvmetad: Skip redundant checks on no input

12 years agomake: fix make in scripts dir for --disable-applib
Peter Rajnoha [Wed, 1 Aug 2012 13:48:53 +0000 (15:48 +0200)]
make: fix make in scripts dir for --disable-applib

12 years agoFix dependecy build for scripts dir
Zdenek Kabelac [Wed, 1 Aug 2012 11:54:32 +0000 (13:54 +0200)]
Fix dependecy build for scripts dir

Since now scripts builds binaries, build needs to wait for libs.

12 years agosystemd: O_CLOEXEC not needed in activation generator
Peter Rajnoha [Wed, 1 Aug 2012 06:57:12 +0000 (08:57 +0200)]
systemd: O_CLOEXEC not needed in activation generator

O_CLOEXEC not actually needed, this is just a simple program,
it is not supposed to fork/exec anywhere and anytime in the future.

12 years agomake: use proper libs to make scripts subdir
Peter Rajnoha [Wed, 1 Aug 2012 06:40:36 +0000 (08:40 +0200)]
make: use proper libs to make scripts subdir

12 years agosystemd: integrate lvm2 activation generator with conf+make
Peter Rajnoha [Tue, 31 Jul 2012 14:46:24 +0000 (16:46 +0200)]
systemd: integrate lvm2 activation generator with conf+make

12 years agosystemd: add lvm2 activation generator
Peter Rajnoha [Tue, 31 Jul 2012 14:20:24 +0000 (16:20 +0200)]
systemd: add lvm2 activation generator

The lvm2 activation generator generates systemd units conditionally
based on the global/use_lvmetad lvm.conf setting.

If use_lvmetad=0, the lvm2-activation-early.service and lvm2-activation.service
units will be generated. These units are responsible for direct volume activation
by calling "vgchange -aay --sysinit" (this is actually the original on-boot
activation as it was used before). If use_lvmetad=1, no units will be generated
as we're relying on autoactivation.

Important thing to note is that the lvm2-activation units normally bring
in the udev-settle ("storage-wait") service that waits for udev to settle
(with block devices). We don't need this if lvmetad is used in conjunction
with autoactivation feature... but systemd units can't be enabled or disabled
(or dependencies added/removed) dynamically based on external configuration.

Therefore, we need the unit generator which adds support for such situations:
the units as a whole either exist or not based on the external configuration.

12 years agolvm2app: add lvm_config_find_bool function
Peter Rajnoha [Tue, 31 Jul 2012 14:18:01 +0000 (16:18 +0200)]
lvm2app: add lvm_config_find_bool function

To effectively retrieve the setting of anything that could be enabled or disabled.

12 years agolvmetad: Fix an obscure error message.
Petr Rockai [Tue, 31 Jul 2012 09:43:35 +0000 (11:43 +0200)]
lvmetad: Fix an obscure error message.

12 years agolibdm-string: Add dm_vasprintf.
Petr Rockai [Mon, 30 Jul 2012 14:41:15 +0000 (16:41 +0200)]
libdm-string: Add dm_vasprintf.

12 years agoversion: update
Alasdair G Kergon [Mon, 30 Jul 2012 17:00:08 +0000 (18:00 +0100)]
version: update

12 years agoversion: update
Alasdair G Kergon [Mon, 30 Jul 2012 16:47:04 +0000 (17:47 +0100)]
version: update

12 years agoversion: update
Alasdair G Kergon [Mon, 30 Jul 2012 16:38:51 +0000 (17:38 +0100)]
version: update

12 years agoversion: update
Alasdair G Kergon [Mon, 30 Jul 2012 15:17:16 +0000 (16:17 +0100)]
version: update

Update version date.

12 years agoTEST: Add lvmetad-test; checks --test with lvmetad.
Petr Rockai [Mon, 30 Jul 2012 09:21:55 +0000 (11:21 +0200)]
TEST: Add lvmetad-test; checks --test with lvmetad.

12 years agolvmetad: Implement --test (fixes #832033).
Petr Rockai [Mon, 30 Jul 2012 08:44:11 +0000 (10:44 +0200)]
lvmetad: Implement --test (fixes #832033).

12 years agoreports: invalid snaps do not capitalise lv_attr
Alasdair G Kergon [Fri, 27 Jul 2012 19:19:28 +0000 (20:19 +0100)]
reports: invalid snaps do not capitalise lv_attr

No longer capitalise first LV attribute char for invalid snapshots.
This state is available from the 5th char now (I or S).

12 years agodmsetup: allow --noflush with status/wait for thin
Alasdair G Kergon [Fri, 27 Jul 2012 19:03:07 +0000 (20:03 +0100)]
dmsetup: allow --noflush with status/wait for thin

Allow --noflush with dmsetup status and wait (for thin target 1.3.0 /
ioctl 4.23.0).

12 years agovgextend: Allow PVs to be added to VGs that have PVs missing
Jonathan Brassow [Thu, 26 Jul 2012 22:06:06 +0000 (17:06 -0500)]
vgextend:  Allow PVs to be added to VGs that have PVs missing

Allowing people to add devices to a VG that has PVs missing helps
people avoid the inability to repair RAID LVs in certain cases.
For example, if a user creates a RAID 4/5/6 LV using all of the
available devices in a VG, there will be no spare devices to
repair the LV with if a device should fail.  Further, because the
VG is missing a device, new devices cannot be added to allow the
repair.  If 'vgreduce --removemissing' were attempted, the
"MISSING" PV could not be removed without also destroying the RAID
LV.

Allowing vgextend to operate solves the circular dependency.

When the PV is added by a vgextend operation, the sequence number is
incremented and the 'MISSING' flag is put on the PVs which are missing.

12 years agofilters: move device_info_t definition to header
Alasdair G Kergon [Thu, 26 Jul 2012 11:22:55 +0000 (12:22 +0100)]
filters: move device_info_t definition to header

12 years agosystemd: ensure monitoring is handled after lvmetad
Peter Rajnoha [Thu, 26 Jul 2012 09:30:27 +0000 (11:30 +0200)]
systemd: ensure monitoring is handled after lvmetad

Monitoring is handled using "vgchange --monitor" call. Ensure that lvmetad is up
and running at the time of this call to prevent any fallback to direct scan
within the vgchange. The same applies for shutdown sequence but the other way
round - switch monitoring off and lvmetad afterwards.

12 years agofilters: Add Micron PCIe SSDs (mtip32xx) [part2]
Alasdair G Kergon [Thu, 26 Jul 2012 01:31:06 +0000 (02:31 +0100)]
filters: Add Micron PCIe SSDs (mtip32xx) [part2]

Recognise Micron PCIe SSDs in filter and move array out to device-types.h.

12 years agofilters: Add Micron PCIe SSDs (mtip32xx)
Alasdair G Kergon [Thu, 26 Jul 2012 01:26:40 +0000 (02:26 +0100)]
filters: Add Micron PCIe SSDs (mtip32xx)

Recognise Micron PCIe SSDs in filter and move array out to device-types.h.

12 years agoTEST: Conditionalize RAID tests on whether the dm-raid module exists
Jonathan Brassow [Wed, 25 Jul 2012 14:43:28 +0000 (09:43 -0500)]
TEST:  Conditionalize RAID tests on whether the dm-raid module exists

12 years agolocking: clarify read-only locking error message v2
Peter Rajnoha [Wed, 25 Jul 2012 12:37:22 +0000 (14:37 +0200)]
locking: clarify read-only locking error message v2

12 years agolocking: clarify read-only locking error message
Peter Rajnoha [Wed, 25 Jul 2012 12:06:02 +0000 (14:06 +0200)]
locking: clarify read-only locking error message

12 years agoForgot to update WHATS_NEW for commit 5555d2a000ed4e3d5a694896f3dc6a7290543f43
Jonathan Brassow [Wed, 25 Jul 2012 03:28:23 +0000 (22:28 -0500)]
Forgot to update WHATS_NEW for commit 5555d2a000ed4e3d5a694896f3dc6a7290543f43

12 years agoRAID: Fix segfault when attempting to replace RAID 4/5/6 device
Jonathan Brassow [Wed, 25 Jul 2012 00:02:06 +0000 (19:02 -0500)]
RAID: Fix segfault when attempting to replace RAID 4/5/6 device

Commit 8767435ef847831455fadc1f7e8f4d2d94aef0d5 allowed RAID 4/5/6
LV to be extended properly, but introduced a regression in device
replacement - a critical component of fault tolerance.

When only 1 or 2 drives are being replaced, the 'area_count' needed
can be equal to the parity_count.  The 'area_multiple' for RAID 4/5/6
was computed as 'area_count - parity_devs', which could result in
'area_multiple' being 0.  This would ultimately lead to a division by
zero error.  Therefore, in calc_area_multiple, it is important to take
into account the number of areas that are being requested - just as
we already do in _alloc_init.

12 years agoTEST: Replace old sync test/wait functions with new library functions
Jonathan Brassow [Tue, 24 Jul 2012 19:20:30 +0000 (14:20 -0500)]
TEST:  Replace old sync test/wait functions with new library functions

Generic sync test/wait functions have replaced the old mirror/raid functions.

12 years agoTEST: Add library functions for checking and waiting for sync
Jonathan Brassow [Tue, 24 Jul 2012 19:17:54 +0000 (14:17 -0500)]
TEST: Add library functions for checking and waiting for sync

Add 'in_sync' and 'wait_for_sync' to test and wait for synchronization
of a mirror or RAID logical volume.

12 years agoconfig: fix one-node dumpconfig, add dm_config_write_one_node
Peter Rajnoha [Fri, 20 Jul 2012 13:53:04 +0000 (15:53 +0200)]
config: fix one-node dumpconfig, add dm_config_write_one_node

A regression introduced in 2.02.89 (11e520256b3005ed813ce83f8770aaab74edef3f)
caused the lvm dumpconfig <node> to print out
the node as well as its subsequent siblings.
The information about "only_one" mode got lost.

Before this patch (just an example node):
  # lvm dumpconfig global/use_lvmetad
  use_lvmetad=1
  thin_check_executable="/usr/sbin/thin_check"
  thin_check_options="-q"
  (...all nodes to the end of the section)

With this patch applied:
   # lvm dumpconfig global/use_lvmetad
   use_lvmetad=1

12 years agodaemon-server: fix error message on daemon shutdown
Peter Rajnoha [Thu, 19 Jul 2012 14:45:08 +0000 (16:45 +0200)]
daemon-server: fix error message on daemon shutdown

If a daemon (like lvmetad that is using common daemon-server code)
received a kill signal that was supposed to shut the daemon down,
a spurious message was issued: "Failed to handle a client connection".

This happened if the kill signal came just in the middle of waiting
for a client request in "select" - the request that was supposed to
be handled was blank at that moment of course.

12 years agothin: add lvchange for discard and zero change
Zdenek Kabelac [Thu, 28 Jun 2012 12:52:23 +0000 (14:52 +0200)]
thin: add lvchange for discard and zero change

Update lvchange to allow change of 'zero' flag for thinpool.
Add support for changing discard handling.

N.B.  from/to  ignore could be only changed for inactive pool.

12 years agothin: add reporting of discard for thin pool
Zdenek Kabelac [Mon, 9 Jul 2012 14:48:28 +0000 (16:48 +0200)]
thin: add reporting of discard for thin pool

New field  "discard" is added for lvs reporting of lv segment.
Reported as one character:
 (i)gnore
 (n)opassdown
 (p)assdown

lvs -o+discard

12 years agothin: add discard support for thin pool
Zdenek Kabelac [Thu, 28 Jun 2012 12:47:34 +0000 (14:47 +0200)]
thin: add discard support for thin pool

Add arg support for discard.
Add discard ignore, nopassdown, passdown (=default) support.
Flags could be set per pool.

lvcreate [--discard {ignore|no_passdown|passdown}]  vg/thinlv

12 years agothin: detect supported features from thinp target
Zdenek Kabelac [Fri, 25 May 2012 11:38:03 +0000 (13:38 +0200)]
thin: detect supported features from thinp target

Add shell variable to override reported min version for testing:
LVM_THIN_VERSION_MIN

12 years agolibdm: support reserve and release metadata snap msg
Zdenek Kabelac [Wed, 4 Jul 2012 09:28:53 +0000 (11:28 +0200)]
libdm: support reserve and release metadata snap msg

Add support for new message types for thinp target 1.1

12 years agolibdm: add support for external origin and discard
Zdenek Kabelac [Sat, 4 Feb 2012 12:49:40 +0000 (13:49 +0100)]
libdm: add support for external origin and discard

12 years agoTEST (lvresize-raid): Don't run test when RAID module doesn't exist
Jonathan Brassow [Tue, 17 Jul 2012 15:50:21 +0000 (10:50 -0500)]
TEST (lvresize-raid):  Don't run test when RAID module doesn't exist

Check for RAID module and skip test if not there.

12 years agoconfigure: default tmpfile dir in PREFIX/lib/tmpfiles.d
Peter Rajnoha [Mon, 16 Jul 2012 09:13:32 +0000 (11:13 +0200)]
configure: default tmpfile dir in PREFIX/lib/tmpfiles.d

SYSCONFDIR (the /etc) contains overrides to system-wide settings.
System-wide settings are in PREFIX/lib/tmpfiles.d by default

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