]> sourceware.org Git - lvm2.git/log
lvm2.git
14 years agoFix lvcreate processing of %PVS argument.
Milan Broz [Wed, 4 Nov 2009 14:47:27 +0000 (14:47 +0000)]
Fix lvcreate processing of %PVS argument.

- fix missing unlocking of VG
lvcreate -l 100%PVS -n lv1 vg_test
  Please specify physical volume(s) with %PVS
  Internal error: Volume Group vg_test was not unlocked

- if no PVS specified, use all available

Fix segfault if %PVS in lvresize without PVs list.

14 years agominor code comment update
Zdenek Kabelac [Wed, 4 Nov 2009 12:39:56 +0000 (12:39 +0000)]
minor code comment update

14 years agoRemove old, and now incorrect, vgextend man page description of pvcreate options.
Dave Wysochanski [Tue, 3 Nov 2009 15:58:02 +0000 (15:58 +0000)]
Remove old, and now incorrect, vgextend man page description of pvcreate options.

14 years agoTidy some uses of arg_count and introduce arg_is_set.
Alasdair Kergon [Tue, 3 Nov 2009 15:50:42 +0000 (15:50 +0000)]
Tidy some uses of arg_count and introduce arg_is_set.

14 years agoUpdate for outnl and indent functions
Zdenek Kabelac [Tue, 3 Nov 2009 11:17:46 +0000 (11:17 +0000)]
Update for outnl and indent functions

14 years agoExport functions out_inc_indent(), out_dec_indent() for creating
Zdenek Kabelac [Tue, 3 Nov 2009 11:00:46 +0000 (11:00 +0000)]
Export functions out_inc_indent(), out_dec_indent() for creating
indented metadata lines.

Macro outnl() is using exported out_newline() instead of direct
call f->fn(), that required the visibility of the internal
struct formatter.

14 years agoAdd fflush for the case the log is redirected to the buffered file.
Zdenek Kabelac [Tue, 3 Nov 2009 10:50:57 +0000 (10:50 +0000)]
Add fflush for the case the log is redirected to the buffered file.

Without this patch it have not been obvious, why the application
waits on the stdin as the prompt might be still buffered in memory.

14 years agoFix hash lookup segfault when keys compared are different lengths.
Alasdair Kergon [Tue, 3 Nov 2009 00:45:35 +0000 (00:45 +0000)]
Fix hash lookup segfault when keys compared are different lengths.

14 years agoRudimentary support for running testsuite in a builddir != srcdir situation.
Petr Rockai [Mon, 2 Nov 2009 15:16:21 +0000 (15:16 +0000)]
Rudimentary support for running testsuite in a builddir != srcdir situation.

14 years agoRename validate_vg_create_params to vgcreate_params_validate.
Dave Wysochanski [Sun, 1 Nov 2009 20:05:17 +0000 (20:05 +0000)]
Rename validate_vg_create_params to vgcreate_params_validate.

14 years agoRename fill_vg_create_params to vgcreate_params_set_from_args.
Dave Wysochanski [Sun, 1 Nov 2009 20:03:24 +0000 (20:03 +0000)]
Rename fill_vg_create_params to vgcreate_params_set_from_args.

Rename fill_vg_create_params to vgcreate_params_set_from_args and remove
vg_name parameter from function (caller must set before calling function).

14 years agoAdd vgcreate_params_set_defaults().
Dave Wysochanski [Sun, 1 Nov 2009 20:02:32 +0000 (20:02 +0000)]
Add vgcreate_params_set_defaults().

Add function to set default vgcreate parameters based on existing VG or
internal defaults.  Should be no functional change.

14 years agoRename pvcreate_params processing functions to better match <object><action>.
Dave Wysochanski [Sun, 1 Nov 2009 19:51:54 +0000 (19:51 +0000)]
Rename pvcreate_params processing functions to better match <object><action>.

Rename fill_default_pvcreate_params to pvcreate_params_set_defaults.
Rename pvcreate_validate_restore_params to pvcreate_restore_params_validate.
Rename pvcreate_validate_params to pvcreate_params_validate.

14 years agoMore cleanup in udev rules:
Peter Rajnoha [Sun, 1 Nov 2009 18:01:31 +0000 (18:01 +0000)]
More cleanup in udev rules:

 - add copyright notice for 10-dm.rules.in,

 - set DM_UDEV_DISABLE_{DISK, OTHER}_RULES_FLAG in 11-dm-lvm.rules directly
   for inappropriate and non-top-level subdevices in case we use older kernels
   where DM_COOKIE is not used (and therefore there are no flags passed from
   the LVM process itself). This applies for older kernels (version < 2.6.31),

 - remove unnecessary filters in 95-dm-notify.rules - the DM_COOKIE env var
   itself is set for change/remove udev events and for DM devices only so
   there's no need to double-check this.

14 years agoUpdate vgsplit to call vg_set_clustered().
Dave Wysochanski [Sat, 31 Oct 2009 17:43:57 +0000 (17:43 +0000)]
Update vgsplit to call vg_set_clustered().

14 years agoUpdate vgcreate to call vg_set_clustered().
Dave Wysochanski [Sat, 31 Oct 2009 17:39:22 +0000 (17:39 +0000)]
Update vgcreate to call vg_set_clustered().

14 years agoAdd vg_set_clustered() - move logic from vgchange.
Dave Wysochanski [Sat, 31 Oct 2009 17:30:52 +0000 (17:30 +0000)]
Add vg_set_clustered() - move logic from vgchange.

Similar to other vg_set_* functions, we create a vg_set_clustered() function
which does a few checks and sets a flag.  This is where we check for
any limitations of clusters.

14 years agoAdd vg_mda_count library function.
Dave Wysochanski [Sat, 31 Oct 2009 17:26:13 +0000 (17:26 +0000)]
Add vg_mda_count library function.

14 years agoAdd to vgcreate and vgextend nightly tests.
Dave Wysochanski [Sat, 31 Oct 2009 16:43:07 +0000 (16:43 +0000)]
Add to vgcreate and vgextend nightly tests.

14 years ago Insert some missing stack macros into activation code.
Alasdair Kergon [Fri, 30 Oct 2009 13:07:49 +0000 (13:07 +0000)]
 Insert some missing stack macros into activation code.

14 years agoRecognise DRBD device part and handle it similar to MD devices.
Milan Broz [Tue, 27 Oct 2009 17:00:44 +0000 (17:00 +0000)]
Recognise DRBD device part and handle it similar to MD devices.

The DRBD uses underlying device so code should prefer top
device if duplicate is found.

Patch also introduce
        dev_subsystem_part_major and dev_subsytem_name
functions to easily handle all these replication susbystems
and not hardcode md_major call.

See https://bugzilla.redhat.com/show_bug.cgi?id=530881
for full problem description.

14 years agopost-release
Alasdair Kergon [Tue, 27 Oct 2009 01:13:20 +0000 (01:13 +0000)]
post-release

14 years ago.
Alasdair Kergon [Tue, 27 Oct 2009 00:52:45 +0000 (00:52 +0000)]
.

14 years agoadd copyright lines
Alasdair Kergon [Mon, 26 Oct 2009 22:42:07 +0000 (22:42 +0000)]
add copyright lines

14 years agopre-release
Alasdair Kergon [Mon, 26 Oct 2009 21:56:23 +0000 (21:56 +0000)]
pre-release

14 years agoCleanup of previous commit with latest changes in udev support code.
Peter Rajnoha [Mon, 26 Oct 2009 21:38:35 +0000 (21:38 +0000)]
Cleanup of previous commit with latest changes in udev support code.

14 years agoDocument --all option in man pages, cleanup {pv|vg|lv}{s|display} man pages.
Dave Wysochanski [Mon, 26 Oct 2009 14:37:09 +0000 (14:37 +0000)]
Document --all option in man pages, cleanup {pv|vg|lv}{s|display} man pages.

Option --all is only partially documented currently, so document in all
commands.  Also make {pv|vg|lv}{display|s} man pages consistent with help
output.  Remove ununsed 'disk_ARG' parameter.  Leave --trustcache out of
the man page output.  Update --units argument to show all possible units.

14 years agoSeveral changes to udev support code:
Peter Rajnoha [Mon, 26 Oct 2009 14:29:33 +0000 (14:29 +0000)]
Several changes to udev support code:

 - we have these levels when the udev rules are processed:
   10-dm.rules --> [11-dm-<subsystem>.rules] --> [12-dm-permissions.rules] -->
   13-dm-disk.rules --> [...all the other foreign rules...] --> 95-dm-notify.rules

 - each level can be disabled now by
   DM_UDEV_DISABLE_{DM, SUBSYSTEM, DISK, OTHER}_RULES_FLAG

 - add DM_UDEV_DISABLE_DM_RULES_FLAG to disable 10-dm.rules

 - add DM_UDEV_DISABLE_OTHER_RULES_FLAG to disable all the other (non-dm) rules.
   We cutoff these rules by using the 'last_rule', so this one should really be
   used with great care and in well-founded situations. We use this for lvm's
   hidden and layer devices now.

 - add a parameter for add_dev_node, rm_dev_node and rename_dev_node so it's
   possible to switch on/off udev checks

 - use DM_UDEV_DISABLE_DM_RULES_FLAG and DM_UDEV_DISABLE_SUBSYSTEM_RULES_FLAG
   if there's no cookie set and we have resume, remove and rename ioctl.
   This could happen when someone uses the libdevmapper that is compiled with
   udev_sync but the software does not make use of it. This way we can switch
   off the rules and fallback to libdevmapper node creation so there's no
   udev/libdevmapper race.

14 years agoRename 11-lvm.rules to 11-dm-lvm.rules and 12-dm-disk.rules to 13-dm-disk.rules.
Peter Rajnoha [Mon, 26 Oct 2009 14:04:31 +0000 (14:04 +0000)]
Rename 11-lvm.rules to 11-dm-lvm.rules and 12-dm-disk.rules to 13-dm-disk.rules.

14 years agoUpdate lvcreate/lvconvert man pages to explain PhysicalVolume parameter.
Dave Wysochanski [Mon, 26 Oct 2009 13:41:13 +0000 (13:41 +0000)]
Update lvcreate/lvconvert man pages to explain PhysicalVolume parameter.

Addresses rhbz 500177.

14 years agoPermit snapshots of mirrors. (brassow)
Alasdair Kergon [Mon, 26 Oct 2009 10:01:56 +0000 (10:01 +0000)]
Permit snapshots of mirrors.  (brassow)

14 years agoMinor fix to vgcreate/vgextend man pages for PHYSICAL DEVICE OPTIONS.
Dave Wysochanski [Mon, 26 Oct 2009 02:36:29 +0000 (02:36 +0000)]
Minor fix to vgcreate/vgextend man pages for PHYSICAL DEVICE OPTIONS.

14 years agoCleanup mimagetmp LV if allocation fails for new lvconvert mimage.
Alasdair Kergon [Fri, 23 Oct 2009 01:24:17 +0000 (01:24 +0000)]
Cleanup mimagetmp LV if allocation fails for new lvconvert mimage.

14 years agoFix clvmd segfault when refresh_toolcontext fails. (brassow, bz 506986)
Alasdair Kergon [Thu, 22 Oct 2009 17:45:23 +0000 (17:45 +0000)]
Fix clvmd segfault when refresh_toolcontext fails.   (brassow, bz 506986)

14 years agoRemember to clear 'global lock held during cache refresh' state after use.
Alasdair Kergon [Thu, 22 Oct 2009 17:33:09 +0000 (17:33 +0000)]
Remember to clear 'global lock held during cache refresh' state after use.

14 years agoAdd manpage entry for dmsetup udevflags.
Peter Rajnoha [Thu, 22 Oct 2009 13:12:20 +0000 (13:12 +0000)]
Add manpage entry for dmsetup udevflags.

14 years agoUse udev flags in the rules and cleanup the rules:
Peter Rajnoha [Thu, 22 Oct 2009 13:11:33 +0000 (13:11 +0000)]
Use udev flags in the rules and cleanup the rules:
 - remove default permissions set in 95-dm-notify.rules (and add a hint in 12-dm-permissions.rules to set it by the user directly)
 - add multipath DM_ACTION=="PATH_FAILED" filter
 - remove unnecessary filters in the headers of the rules (we can simply use DM_UDEV_RULES_VSN instead)
 - fix symlink priorities in /dev/disk/ (snapshot volumes have low priority for FS UUID symlinks so it will not overwrite symlinks for the origin)

14 years agoUse udev flags support in LVM and provide dm_tree_add_new_dev_with_udev_flags wrapper...
Peter Rajnoha [Thu, 22 Oct 2009 13:00:07 +0000 (13:00 +0000)]
Use udev flags support in LVM and provide dm_tree_add_new_dev_with_udev_flags wrapper for dm_tree_add_new_dev.

14 years agoAdd udev flags support in libdevmapper and provide 'dmsetup udevflags' command to...
Peter Rajnoha [Thu, 22 Oct 2009 12:55:47 +0000 (12:55 +0000)]
Add udev flags support in libdevmapper and provide 'dmsetup udevflags' command to decode them.

14 years ago.
Alasdair Kergon [Thu, 22 Oct 2009 11:25:46 +0000 (11:25 +0000)]
.

14 years agoOnly announce mirror monitoring to syslog after initialisation succeeds.
Petr Rockai [Thu, 22 Oct 2009 10:40:41 +0000 (10:40 +0000)]
Only announce mirror monitoring to syslog after initialisation succeeds.

14 years agoFix the "const discarded" warnings introduced in the unknown segment patch.
Petr Rockai [Thu, 22 Oct 2009 10:38:07 +0000 (10:38 +0000)]
Fix the "const discarded" warnings introduced in the unknown segment patch.

14 years agoClarify message:
Jonathan Earl Brassow [Wed, 21 Oct 2009 22:19:39 +0000 (22:19 +0000)]
Clarify message:
"  Mirror status: 1/2 images failed."

Half of an image?  Half of the images?  No, 1 of 2 images.

14 years agoHandle metadata with unknown segment types more gracefully.
Petr Rockai [Fri, 16 Oct 2009 17:41:49 +0000 (17:41 +0000)]
Handle metadata with unknown segment types more gracefully.

14 years agoI saw this in a bug report:
Jonathan Earl Brassow [Wed, 14 Oct 2009 14:55:44 +0000 (14:55 +0000)]
I saw this in a bug report:
[root@xxxx-01 ~]# lvconvert -m 1 --corelog VG/cmirror
  Unable to convert the log of inactive cluster mirror cmirror

I've tried to clean-up the message a little more, so the name
of the mirror stands out more while preserving the sense that
it's not a problem with the specific device, but the fact that
it is inactive that is causing the problem.

New msg:
  Unable to convert the log of an inactive cluster mirror, cmirror

14 years agoconfigure.in: don't set default file owner and group
Fabio M. Di Nitto [Wed, 14 Oct 2009 04:10:41 +0000 (04:10 +0000)]
configure.in: don't set default file owner and group

Per discussion on lvm-devel mailing list and part of debian patch set,
don't set defaults for owner and group, since nobody seems to use them, and
still allow override.

14 years agoAttempt to build dmeventd.static.
Alasdair Kergon [Tue, 13 Oct 2009 02:35:26 +0000 (02:35 +0000)]
Attempt to build dmeventd.static.

14 years agoMore build cleanups (linker parameter ordering).
Alasdair Kergon [Tue, 13 Oct 2009 01:31:10 +0000 (01:31 +0000)]
More build cleanups (linker parameter ordering).

14 years agoDisable realtime support by default.
Fabio M. Di Nitto [Mon, 12 Oct 2009 16:59:20 +0000 (16:59 +0000)]
Disable realtime support by default.

This code is used only in a under development feature and it's not used
anywhere in the tree.

Allow to build it conditionally.

14 years agoMake clvmd return 0 on success rather than 1.
Christine Caulfield [Mon, 12 Oct 2009 08:33:30 +0000 (08:33 +0000)]
Make clvmd return 0 on success rather than 1.

14 years agoMerge Debian patch 05 debian: keep libdm-abi consistent.
Fabio M. Di Nitto [Mon, 12 Oct 2009 04:06:42 +0000 (04:06 +0000)]
Merge Debian patch 05 debian: keep libdm-abi consistent.

This appears to be the only user visible feature that can change libdm ABI
at build time.

Thanks to Bastian Blank for the patch.

14 years agoExtra libs must be appended, not defined first.
Alasdair Kergon [Fri, 9 Oct 2009 16:04:54 +0000 (16:04 +0000)]
Extra libs must be appended, not defined first.

14 years agolinking parms missing from o->so conversion.
Alasdair Kergon [Fri, 9 Oct 2009 15:55:31 +0000 (15:55 +0000)]
linking parms missing from o->so conversion.

14 years agoCleanup comment and some whitespace.
Dave Wysochanski [Tue, 6 Oct 2009 16:00:38 +0000 (16:00 +0000)]
Cleanup comment and some whitespace.

14 years agoAdd --pvmetadatacopies as a synonym for --metadatacopies in various commands.
Dave Wysochanski [Mon, 5 Oct 2009 20:55:56 +0000 (20:55 +0000)]
Add --pvmetadatacopies as a synonym for --metadatacopies in various commands.

Going forward, we would like to allow users to specify the total
number of metadatacopies in a VG rather than on a per-PV basis.  In
order to facilitate that, introduce --pvmetadatacopes to replace
--metadatacopies everywhere.  We still allow --metadatacopies for
pv commands, but require --pvmetadatacopies for vg commands.
Eventually we will introduce --vgmetadatacopies.  Once we do that,
we should either deprecate --metadatacopies or make it a synonym based
on the command (pvmetadatacopies for pv commands, and vgmetadatacopies
for vg commands).  The latter option would likely just require a simple
'strncpy' check against cmd->command->name to qualify the merge_synonym
call.

Update nightly tests to cover the pvmetadatacopies synonym.

Note that this patch is the result of an eariler review comment for
the implicit pvcreate patches.  Should apply cleanly on top of the
implicit pvcreate patches (I applied after patch 10/10 in that series).

NOTE: This patch will require --pvmetadatacopies for vgconvert as
--metadatacopies is no longer accepted.

14 years agoAdd --pvmetadatacopies as a synonym for --metadatacopies in various commands.
Dave Wysochanski [Mon, 5 Oct 2009 20:53:41 +0000 (20:53 +0000)]
Add --pvmetadatacopies as a synonym for --metadatacopies in various commands.

Going forward, we would like to allow users to specify the total
number of metadatacopies in a VG rather than on a per-PV basis.  In
order to facilitate that, introduce --pvmetadatacopes to replace
--metadatacopies everywhere.  We still allow --metadatacopies for
pv commands, but require --pvmetadatacopies for vg commands.
Eventually we will introduce --vgmetadatacopies.  Once we do that,
we should either deprecate --metadatacopies or make it a synonym based
on the command (pvmetadatacopies for pv commands, and vgmetadatacopies
for vg commands).  The latter option would likely just require a simple
'strncpy' check against cmd->command->name to qualify the merge_synonym
call.

Update nightly tests to cover the pvmetadatacopies synonym.

Note that this patch is the result of an eariler review comment for
the implicit pvcreate patches.  Should apply cleanly on top of the
implicit pvcreate patches (I applied after patch 10/10 in that series).

NOTE: This patch will require --pvmetadatacopies for vgconvert as
--metadatacopies is no longer accepted.

14 years agoUpdate help messages for vgextend / vgcreate to mention PHYSICAL DEVICE OPTIONS.
Dave Wysochanski [Mon, 5 Oct 2009 20:22:58 +0000 (20:22 +0000)]
Update help messages for vgextend / vgcreate to mention PHYSICAL DEVICE OPTIONS.

14 years agoAdd implicit tests for implicit pvcreate during vgcreate and vgextend.
Dave Wysochanski [Mon, 5 Oct 2009 20:04:40 +0000 (20:04 +0000)]
Add implicit tests for implicit pvcreate during vgcreate and vgextend.

Update tests and WHATS_NEW for implicit pvcreate support.

14 years agoUpdate vgcreate and vgextend man pages to clarify implicit pvcreate.
Dave Wysochanski [Mon, 5 Oct 2009 20:04:21 +0000 (20:04 +0000)]
Update vgcreate and vgextend man pages to clarify implicit pvcreate.

vgcreate and vgextend now implicitly call pvcreate on devices not
currently initialized for LVM use.  Previously these commands would
fail with an error, so clarify the new behavior in the man page.

14 years agoAdd implicit pvcreate support to vgcreate and vgextend.
Dave Wysochanski [Mon, 5 Oct 2009 20:04:08 +0000 (20:04 +0000)]
Add implicit pvcreate support to vgcreate and vgextend.

Adds implicit pvcreate support when calling vgcreate or vgextend with
device paths that are not yet PVs.  This changes the behavior of vgcreate
and vgextend from failing with an error message to implicitly pvcreating.

14 years agoMove pvcreate_validate_params into toollib to allow calling from mutiple tools.
Dave Wysochanski [Mon, 5 Oct 2009 20:03:54 +0000 (20:03 +0000)]
Move pvcreate_validate_params into toollib to allow calling from mutiple tools.

For implicit pvcreate support, we need to call this from vgcreate and vgextend,
so move it into toollib.

14 years agoRefactor vgcreate/vgextend validation of vgname/pvname(s).
Dave Wysochanski [Mon, 5 Oct 2009 20:03:37 +0000 (20:03 +0000)]
Refactor vgcreate/vgextend validation of vgname/pvname(s).

Decrement argc and increment argv in a consistent way to allow for later
code-sharing.  Should be no functional change.

14 years agoRefactor pvcreate - split pvcreate_validate_params into recovery/non-recovery.
Dave Wysochanski [Mon, 5 Oct 2009 20:03:25 +0000 (20:03 +0000)]
Refactor pvcreate - split pvcreate_validate_params into recovery/non-recovery.

Split pvcreate_validate_params into recovery and non-recovery parameters.
This is necessary so we can call the non-recovery validate function from
vgextend / vgcreate.  Note in the pvcreate tool case, we must call the
recovery validation function first (see treatment of pe_start and --zero),
and that we add a call to fill_default_pvcreate_params before the validation
functions.

14 years agoAllow calling fill_default_pvcreate_params from tools.
Dave Wysochanski [Mon, 5 Oct 2009 20:03:08 +0000 (20:03 +0000)]
Allow calling fill_default_pvcreate_params from tools.

We need defaults for pvcreate_params at a higher level - this will
allow us to use a common function from the tools to take defaults,
then fill in any non-defaults from the commandline.

Future patches will refactor vgcreate/vgextend to call this function
if one or more pvcreate parameters are given on the commandline.

14 years agoAdd pvcreate_params to vg_extend.
Dave Wysochanski [Mon, 5 Oct 2009 20:02:48 +0000 (20:02 +0000)]
Add pvcreate_params to vg_extend.

Another refactoring for implicit pvcreate support.  We need to get
the pvcreate parameters somehow to the vg_extend routine.  Options
seemed to be:
1. Attach the parameters to struct volume_group.  I personally
did not like this idea in most cases, though one could make an
agrument why it might be ok at least for some of the parameters
(e.g. metadatacopies).
2. Pass them in to the extend routine.  This second route seemed
to be the best approach given the constraints.

Future patches will parse the command line and fill in the actual
values for the pvcreate_single call.
Should be no functional change.

14 years agoAdd pvcreate_params to vg_extend_single_pv.
Dave Wysochanski [Mon, 5 Oct 2009 20:02:30 +0000 (20:02 +0000)]
Add pvcreate_params to vg_extend_single_pv.

Should be no functional change.  If this parameter is set to NULL, just fail
the extend if the device is not already a PV.  If non-NULL, try pvcreate_single
before failing.  Note that pvcreate_single() handles the log_error in case
of failure so we just return 0 if pvcreate_single() fails.

14 years agoRefactor vg_extend - add vg_extend_single_pv.
Dave Wysochanski [Mon, 5 Oct 2009 20:02:04 +0000 (20:02 +0000)]
Refactor vg_extend - add vg_extend_single_pv.

Simple refactor to setup future changes related to implicit pvcreates.
Should be no functional change.

14 years agoMore makefile cleaning up and fixing. (gentoo)
Alasdair Kergon [Mon, 5 Oct 2009 13:46:00 +0000 (13:46 +0000)]
More makefile cleaning up and fixing.  (gentoo)

14 years agoCorrect example.conf to indicate that lvm2 not lvm1 is the default format.
Alasdair Kergon [Mon, 5 Oct 2009 12:44:20 +0000 (12:44 +0000)]
Correct example.conf to indicate that lvm2 not lvm1 is the default format.
Remove an unused stray LVM1_SUPPORT ifdef.

14 years agoOnly include selinux libs in libdevmapper.pc when selinux build enabled.
Alasdair Kergon [Mon, 5 Oct 2009 12:11:30 +0000 (12:11 +0000)]
Only include selinux libs in libdevmapper.pc when selinux build enabled.

14 years agoAllow for a build directory separate from the source.
Alasdair Kergon [Fri, 2 Oct 2009 19:10:31 +0000 (19:10 +0000)]
Allow for a build directory separate from the source.

14 years agoUpdate distclean target for rename clogd to cmirrord. (2.02.52)
Zdenek Kabelac [Fri, 2 Oct 2009 11:41:54 +0000 (11:41 +0000)]
Update distclean target for rename clogd to cmirrord. (2.02.52)

14 years agoRemove daemons/clogd from distclean dirs (replaced with cmirrord)
Zdenek Kabelac [Fri, 2 Oct 2009 11:35:25 +0000 (11:35 +0000)]
Remove daemons/clogd from distclean dirs (replaced with cmirrord)

14 years agoRun distclean also for daemons/cmirrord
Zdenek Kabelac [Fri, 2 Oct 2009 09:47:11 +0000 (09:47 +0000)]
Run distclean also for daemons/cmirrord

14 years agoAdd LCK_CONVERT flag I missed on the last checkin.
Christine Caulfield [Thu, 1 Oct 2009 14:15:34 +0000 (14:15 +0000)]
Add LCK_CONVERT flag I missed on the last checkin.

14 years agoStop clvmd from automatically doing lock conversions. Now, if a lock
Christine Caulfield [Thu, 1 Oct 2009 14:14:17 +0000 (14:14 +0000)]
Stop clvmd from automatically doing lock conversions. Now, if a lock
is granted at one mode and an attempt to convert it wthout the LCK_CONVERT
flag set then it will return errno=EBUSY.

This fixes a pretty bad bug in which an LV could be activated exclusively on
one node and lvchange -ay on another would convert it to shared!

It might break some things in other areas, but I doubt it.

14 years agoAdd percent_range to copy_percent too.
Alasdair Kergon [Thu, 1 Oct 2009 01:04:27 +0000 (01:04 +0000)]
Add percent_range to copy_percent too.

14 years agoIntroduce percent_range_t and centralise snapshot full/mirror in-sync checks.
Alasdair Kergon [Thu, 1 Oct 2009 00:35:29 +0000 (00:35 +0000)]
Introduce percent_range_t and centralise snapshot full/mirror in-sync checks.

14 years agoMake poll_mirror_progress a function that can be replaced.
Alasdair Kergon [Wed, 30 Sep 2009 18:15:06 +0000 (18:15 +0000)]
Make poll_mirror_progress a function that can be replaced.

14 years agoFactor out poll_mirror_progress and introduce progress_t.
Alasdair Kergon [Wed, 30 Sep 2009 17:43:51 +0000 (17:43 +0000)]
Factor out poll_mirror_progress and introduce progress_t.

14 years agoUpdate nightly tests to deal with unit changes.
Dave Wysochanski [Wed, 30 Sep 2009 16:13:53 +0000 (16:13 +0000)]
Update nightly tests to deal with unit changes.

Now uppercase letters imply Si units, so use lowercase everywhere.
We could stay with uppercase, but then we'd have to deal with rounding, etc.
Also, some output / error messages change slightly (instead of "GB" we're
now saying "GiB").
One test enhancement might be to add some new tests for the units changes
but for now let's just get the test back to passing.

14 years agoDistinguish between powers of 1000 and powers of 1024 in unit suffixes.
Alasdair Kergon [Wed, 30 Sep 2009 14:19:00 +0000 (14:19 +0000)]
Distinguish between powers of 1000 and powers of 1024 in unit suffixes.

14 years agoJust a cleanup from previous commit. We don't need pvname local var in _activate_lvs_...
Peter Rajnoha [Wed, 30 Sep 2009 12:05:25 +0000 (12:05 +0000)]
Just a cleanup from previous commit. We don't need pvname local var in _activate_lvs_in_vg anymore...

14 years agolook up pvmove by pvmove LV when PVMOVE flag is set
Alasdair Kergon [Tue, 29 Sep 2009 20:33:49 +0000 (20:33 +0000)]
look up pvmove by pvmove LV when PVMOVE flag is set

14 years agoDon't attempt to restart pvmoves when deactivating LVs in vgchange.
Alasdair Kergon [Tue, 29 Sep 2009 20:22:35 +0000 (20:22 +0000)]
Don't attempt to restart pvmoves when deactivating LVs in vgchange.
Restart lvconverts in vgchange by sharing lv_spawn_background_polling.

14 years agoGeneralise polldaemon code by changing mirror-specific variable names.
Alasdair Kergon [Tue, 29 Sep 2009 19:35:26 +0000 (19:35 +0000)]
Generalise polldaemon code by changing mirror-specific variable names.

14 years agoDon't attempt to deactivate an LV if any of its snapshots are in use.
Alasdair Kergon [Tue, 29 Sep 2009 18:50:28 +0000 (18:50 +0000)]
Don't attempt to deactivate an LV if any of its snapshots are in use.

14 years agoReturn fail if lv_deactivate did not removed device from kernel.
Milan Broz [Tue, 29 Sep 2009 15:17:54 +0000 (15:17 +0000)]
Return fail if lv_deactivate did not removed device from kernel.

lv_deactivate now returns always success, because tree deactivation
functions (see dm_tree_deactivate_children) always returns success.

Because code should return failure in lv_deactivate at least,
fix it by checking for device existence after real deactivation call.

(After discussion this was prefered solution to dm tree function rewrite
which affects snapshots and mirrors.)

14 years agoTrivial cleanup to lvcreate man page - use virtualsize in example.
Dave Wysochanski [Tue, 29 Sep 2009 15:11:06 +0000 (15:11 +0000)]
Trivial cleanup to lvcreate man page - use virtualsize in example.

virtualsize replaced virtualoriginsize but the example was never updated.

14 years agoProvide alternative implementation of obsolete siginterrupt().
Alasdair Kergon [Mon, 28 Sep 2009 21:23:02 +0000 (21:23 +0000)]
Provide alternative implementation of obsolete siginterrupt().

14 years agoConsolidate LV allocation into alloc_lv().
Alasdair Kergon [Mon, 28 Sep 2009 17:46:15 +0000 (17:46 +0000)]
Consolidate LV allocation into alloc_lv().

14 years agoTreat input units of both 's' and 'S' as 512-byte sectors. (2.02.49)
Alasdair Kergon [Mon, 28 Sep 2009 16:36:03 +0000 (16:36 +0000)]
Treat input units of both 's' and 'S' as 512-byte sectors.  (2.02.49)

's' and 'S' are special suffixes representing sectors and are always 512 bytes,
regardless of whether you're using powers of 1000 or 1024.

14 years agoAdd global/si_unit_consistency to enable cleaned-up use of units in output.
Alasdair Kergon [Mon, 28 Sep 2009 16:23:44 +0000 (16:23 +0000)]
Add global/si_unit_consistency to enable cleaned-up use of units in output.
Add configure --enable-units-compat to set si_unit_consistency off by default.

Use standard output units for 'PE Size' and 'Stripe size' in pv/lvdisplay.

14 years agopost-release
Alasdair Kergon [Sat, 26 Sep 2009 00:42:47 +0000 (00:42 +0000)]
post-release

14 years agoFix log fn prototype.
Alasdair Kergon [Sat, 26 Sep 2009 00:29:13 +0000 (00:29 +0000)]
Fix log fn prototype.

14 years agomissing dm_snprintf
Alasdair Kergon [Fri, 25 Sep 2009 19:06:05 +0000 (19:06 +0000)]
missing dm_snprintf

14 years agopre-release
Alasdair Kergon [Fri, 25 Sep 2009 18:30:27 +0000 (18:30 +0000)]
pre-release

14 years agopre-release
Alasdair Kergon [Fri, 25 Sep 2009 18:30:26 +0000 (18:30 +0000)]
pre-release

14 years agoensure dm_strdup succeeds
Alasdair Kergon [Fri, 25 Sep 2009 18:19:09 +0000 (18:19 +0000)]
ensure dm_strdup succeeds

14 years agoremove unused var & rename fn
Alasdair Kergon [Fri, 25 Sep 2009 18:13:17 +0000 (18:13 +0000)]
remove unused var & rename fn

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