]> sourceware.org Git - lvm2.git/log
lvm2.git
14 years agoMore cmirror makefile fixes from Fabio.
Alasdair Kergon [Mon, 14 Sep 2009 22:57:46 +0000 (22:57 +0000)]
More cmirror makefile fixes from Fabio.

14 years agoFix build failure when enabling dmeventd and applib.
Dave Wysochanski [Mon, 14 Sep 2009 22:56:27 +0000 (22:56 +0000)]
Fix build failure when enabling dmeventd and applib.

This patch fixes a build with options similar to the following:
./configure --enable-debug --enable-applib --enable-dmeventd --enable-cmdlib

14 years agoAdd lots of missing stack debug messages to tools.
Alasdair Kergon [Mon, 14 Sep 2009 22:47:49 +0000 (22:47 +0000)]
Add lots of missing stack debug messages to tools.
Make readonly locking available as locking type 4.
Fix readonly locking to permit writeable global locks (for vgscan). (2.02.49)

14 years agoUse vg_is_exported(vg) macro everywhere.
Dave Wysochanski [Mon, 14 Sep 2009 19:44:15 +0000 (19:44 +0000)]
Use vg_is_exported(vg) macro everywhere.

This patch is all just cleanup and no other patch depends on it.
Replace explicit dereference and check with vg_is_exported().
Update a few copyrights and remove unnecessary whitespace.
Should be no functional change.

14 years agoAdd most relevant vg_attr fields as lvm2app 'get' functions.
Dave Wysochanski [Mon, 14 Sep 2009 19:43:11 +0000 (19:43 +0000)]
Add most relevant vg_attr fields as lvm2app 'get' functions.

Of the vgs field vg_attr, a few of the most likely to be used attributes
are clustered, exported, and partial.  This patch adds the following 3
functions:
uint64_t lvm_vg_is_clustered(const vg_t vg)
uint64_t lvm_vg_is_exported(const vg_t vg)
uint64_t lvm_vg_is_partial(const vg_t vg)

14 years agoUpdate lvm and vgs man pages to clarify 'partial' is a VG missing PVs.
Dave Wysochanski [Mon, 14 Sep 2009 19:42:13 +0000 (19:42 +0000)]
Update lvm and vgs man pages to clarify 'partial' is a VG missing PVs.

14 years agoAdd max_pv and max_lv vg 'get' lvm2app exports.
Dave Wysochanski [Mon, 14 Sep 2009 15:45:23 +0000 (15:45 +0000)]
Add max_pv and max_lv vg 'get' lvm2app exports.

14 years agoDo not run mdadm tests if MD module is not loaded.
Milan Broz [Sun, 13 Sep 2009 19:28:00 +0000 (19:28 +0000)]
Do not run mdadm tests if MD module is not loaded.

14 years agoMove dm_cookie_supported check into dm_udev_get_sync_supprt function.
Peter Rajnoha [Fri, 11 Sep 2009 16:11:25 +0000 (16:11 +0000)]
Move dm_cookie_supported check into dm_udev_get_sync_supprt function.

We don't have to call dm_cookie_supported with dm_udev_get_sync_support
this way. Also, it's necessary for the current code to work properly on
systems without cookie support (older kernels).

14 years agoAdd manpage entry for dmsetup's udevcomplete_all and udevcookies commands.
Peter Rajnoha [Fri, 11 Sep 2009 16:06:31 +0000 (16:06 +0000)]
Add manpage entry for dmsetup's udevcomplete_all and udevcookies commands.

14 years agoSeveral changes in udev rules:
Peter Rajnoha [Fri, 11 Sep 2009 16:05:20 +0000 (16:05 +0000)]
Several changes in udev rules:

- add DM_UDEV_RULES_VSN to provide a variable to be checked for in the other
  rules (e.g. to check that DM rules are actually installed, we can alternate
  functionality in the other rules based on this information, also we have
  versioning support for the rules)
- set proper sbin path for dmsetup and blkid, /sbin first, then /usr/sbin.
  This is necessary for anaconda to work properly.
- add 'last_rule' for cryptsetup's temporary devices (symlinks in /dev/mapper
  only)

14 years agoAdd one define that is necessary for older (experimental) libudev to work.
Peter Rajnoha [Fri, 11 Sep 2009 15:57:51 +0000 (15:57 +0000)]
Add one define that is necessary for older (experimental) libudev to work.

14 years agoCheck that udev is running and set internal state appropriately.
Peter Rajnoha [Fri, 11 Sep 2009 15:56:06 +0000 (15:56 +0000)]
Check that udev is running and set internal state appropriately.

14 years agoAdd libudev configuration check.
Peter Rajnoha [Fri, 11 Sep 2009 15:55:07 +0000 (15:55 +0000)]
Add libudev configuration check.

14 years agoAdd y|--yes option for dmsetup to provide a default 'YES' answer to questions.
Peter Rajnoha [Fri, 11 Sep 2009 15:53:57 +0000 (15:53 +0000)]
Add y|--yes option for dmsetup to provide a default 'YES' answer to questions.

14 years agoFix Makefile to take into account dmsetup's reconfiguration.
Peter Rajnoha [Fri, 11 Sep 2009 15:52:22 +0000 (15:52 +0000)]
Fix Makefile to take into account dmsetup's reconfiguration.

14 years agoUpdate lvm2app unit test vgtest - fix remove bug.
Dave Wysochanski [Fri, 4 Sep 2009 19:17:46 +0000 (19:17 +0000)]
Update lvm2app unit test vgtest - fix remove bug.

We now must commit to disk after lvm_vg_remove().

14 years agoFix path to test/api/vgtest in nightly testsuite.
Dave Wysochanski [Fri, 4 Sep 2009 14:26:16 +0000 (14:26 +0000)]
Fix path to test/api/vgtest in nightly testsuite.

14 years agoRemove 'test' interative api unit tests from 'TARGET' line.
Dave Wysochanski [Fri, 4 Sep 2009 13:49:02 +0000 (13:49 +0000)]
Remove 'test' interative api unit tests from 'TARGET' line.

The test/api directory TARGET line will be reserved for non-interactive
unit tests.  Building the interactive test can still be done with "make test"
from the test/api dir.

14 years agoAdd lvm2app.sh to nightly testsuite.
Dave Wysochanski [Fri, 4 Sep 2009 12:54:23 +0000 (12:54 +0000)]
Add lvm2app.sh to nightly testsuite.

More tests to come but for now just call into vgtest.
Fix warning in vgtest.c

14 years agoRestore umask when device node creation fails.
Dave Wysochanski [Thu, 3 Sep 2009 21:51:26 +0000 (21:51 +0000)]
Restore umask when device node creation fails.

Author: Florian Zumbiehl <florz@florz.de>
Acked-by: Dave Wysochanski <dwysocha@redhat.com>
14 years agoAdd daemons/cmirrord files to git - somehow got messed up with cvs rename.
Dave Wysochanski [Thu, 3 Sep 2009 21:11:53 +0000 (17:11 -0400)]
Add daemons/cmirrord files to git - somehow got messed up with cvs rename.

When clogd was renamed to cmirrord, somehow git got the remove of the old
files but not the add of the new files.  This patch adds the new files.

Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
14 years agoFix path to test/api/vgtest in nightly testsuite.
Dave Wysochanski [Fri, 4 Sep 2009 14:26:16 +0000 (14:26 +0000)]
Fix path to test/api/vgtest in nightly testsuite.

14 years agoRemove 'test' interative api unit tests from 'TARGET' line.
Dave Wysochanski [Fri, 4 Sep 2009 13:49:02 +0000 (13:49 +0000)]
Remove 'test' interative api unit tests from 'TARGET' line.

The test/api directory TARGET line will be reserved for non-interactive
unit tests.  Building the interactive test can still be done with "make test"
from the test/api dir.

14 years agoAdd lvm2app.sh to nightly testsuite.
Dave Wysochanski [Fri, 4 Sep 2009 12:54:23 +0000 (12:54 +0000)]
Add lvm2app.sh to nightly testsuite.

More tests to come but for now just call into vgtest.
Fix warning in vgtest.c

14 years agoRestore umask when device node creation fails.
Dave Wysochanski [Thu, 3 Sep 2009 21:51:26 +0000 (21:51 +0000)]
Restore umask when device node creation fails.

Author: Florian Zumbiehl <florz@florz.de>
Acked-by: Dave Wysochanski <dwysocha@redhat.com>
14 years agoDo not override the distclean target in liblvm's Makefile, it annoys make and
Petr Rockai [Thu, 3 Sep 2009 18:19:07 +0000 (18:19 +0000)]
Do not override the distclean target in liblvm's Makefile, it annoys make and
the make.tmpl-included distclean should work better anyway.

14 years agoUpdate lvm2app vgtest to take vgname and devices as parameters.
Dave Wysochanski [Thu, 3 Sep 2009 17:13:46 +0000 (17:13 +0000)]
Update lvm2app vgtest to take vgname and devices as parameters.

14 years agoUpdate lvm_vg_write() to handle the deferred commit of lvm_vg_write().
Dave Wysochanski [Wed, 2 Sep 2009 21:40:10 +0000 (21:40 +0000)]
Update lvm_vg_write() to handle the deferred commit of lvm_vg_write().

Now that we've refactored the internal library functions that do the
vg_remove, we can handle the deferred commit of a lvm_vg_remove() inside
lvm_vg_write().  This makes the VG create/remove API more consistent in
terms of disk commits - they now both require an lvm_vg_write() to commit
the create or remove to disk.

Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
Author: Dave Wysochanski <dwysocha@redhat.com>

14 years agoUpdate vg_remove_single_* functions to use the removed_pvs list.
Dave Wysochanski [Wed, 2 Sep 2009 21:39:49 +0000 (21:39 +0000)]
Update vg_remove_single_* functions to use the removed_pvs list.

Now that we've split vg_remove_single into two routines, in the first routine
that only manipulates memory, we move the PVs from the vg->pvs list to the
vg->removed_pvs list.  Then later, we iterate through this list to write the
removed PVs to disk, which removes them from the volume group and places them
into the internal ORPHAN VG.

Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
Author: Dave Wysochanski <dwysocha@redhat.com>

14 years agoSplit vg_remove_single into 2 functions - the second part commits to disk.
Dave Wysochanski [Wed, 2 Sep 2009 21:39:29 +0000 (21:39 +0000)]
Split vg_remove_single into 2 functions - the second part commits to disk.

Split vg_remove_single into vg_remove_check (mandatory checks before
vgremove) and vg_remove (do actual remove by committing to disk).

In liblvm, we'd like to provide an consistent API that allows multiple
changes in memory, then let lvm_vg_write() control the commit to disk.  In
some cases (for example, lvresize calls fsadm) this may not be possible.
However, since we are using an object model and dividing things into small
operations, the most logical model seems to be the lvm_vg_write model, and
handling the special cases as they arrive.  So as best as possible
we move towards this end.

A possible optimization would be to consolidate vg_remove (committing)
code with vgreduce code.  A second possible optimization is making vgreduce
of the last device equivalent to vgremove.  Today, lvm_vg_reduce fails if
vgreduce is called with the last device, but from an object model perspective
we could view this as equivalent to vgremove and allow it.  My gut feel is
we do not want to do this though.

Author: Dave Wysochanski <dwysocha@redhat.com>

14 years agoRename internal library function vg_remove to vg_remove_mdas.
Dave Wysochanski [Wed, 2 Sep 2009 21:39:07 +0000 (21:39 +0000)]
Rename internal library function vg_remove to vg_remove_mdas.

Later patches should consolidate the vgremove / vgreduce functions but for
now let's clarify what vg_remove actually does by changing the name.

Author: Dave Wysochanski <dwysocha@redhat.com>

14 years agoEnforce an alphabetical lock ordering for vgname locks.
Dave Wysochanski [Wed, 2 Sep 2009 21:34:11 +0000 (21:34 +0000)]
Enforce an alphabetical lock ordering for vgname locks.

Add a new constraint that vgname locks must be obtained in
alphabetical order.  At this point, we have test coverage for
the 3 commands affected - vgsplit, vgmerge, and vgrename.
Tests have been updated to cover these commands.
Going forward any command or library call that must obtain
more than one vgname lock must do so in alphabetical order.
Future patches will update lvm2app to enforce this ordering.

Author: Dave Wysochanski <dwysocha@redhat.com>

14 years agoUpdate vgrename to take into account vgname lock ordering.
Dave Wysochanski [Wed, 2 Sep 2009 21:29:40 +0000 (21:29 +0000)]
Update vgrename to take into account vgname lock ordering.

Should be no functional change.

Author: Dave Wysochanski <dwysocha@redhat.com>

14 years agoRefactor vgrename into vg_rename_old and vg_rename_new.
Dave Wysochanski [Wed, 2 Sep 2009 21:29:23 +0000 (21:29 +0000)]
Refactor vgrename into vg_rename_old and vg_rename_new.

Should be no functional change.
Will allow us to reorder lock obtaining if needed.

Author: Dave Wysochanski <dwysocha@redhat.com>

14 years agoChange vgmerge behavior to open/lock first vg based on alphabetical ordering.
Dave Wysochanski [Wed, 2 Sep 2009 21:28:43 +0000 (21:28 +0000)]
Change vgmerge behavior to open/lock first vg based on alphabetical ordering.

This enforces our alphabetical lock ordering rules for vgmerge.

Author: Dave Wysochanski <dwysocha@redhat.com>

14 years agoRefactor vgmerge - combine _vgmerge_to and _vgmerge_from into _vgmerge_vg_read.
Dave Wysochanski [Wed, 2 Sep 2009 21:28:27 +0000 (21:28 +0000)]
Refactor vgmerge - combine _vgmerge_to and _vgmerge_from into _vgmerge_vg_read.

These functions are identical so should be no functional change.

Author: Dave Wysochanski <dwysocha@redhat.com>

14 years agoRefactor vgmerge - create _vgmerge_from and _vgmerge_to.
Dave Wysochanski [Wed, 2 Sep 2009 21:28:10 +0000 (21:28 +0000)]
Refactor vgmerge - create _vgmerge_from and _vgmerge_to.

These functions are really identical but for clarity I made them separate
functions in this patch.

Should be no functional change.

Author: Dave Wysochanski <dwysocha@redhat.com>

14 years agoRefactor vgmerge - introduce lock_vg_from_first flag.
Dave Wysochanski [Wed, 2 Sep 2009 21:27:55 +0000 (21:27 +0000)]
Refactor vgmerge - introduce lock_vg_from_first flag.

Should be no functional change.

Author: Dave Wysochanski <dwysocha@redhat.com>

14 years agoChange vgsplit behavior to open/lock first vg based on alphabetical ordering.
Dave Wysochanski [Wed, 2 Sep 2009 21:27:39 +0000 (21:27 +0000)]
Change vgsplit behavior to open/lock first vg based on alphabetical ordering.

If the destination vgname comes before the source vgname, we must open the
destination first because of the locking rules.  Thus, do a strcmp and set
the flag based on the comparison.

Author: Dave Wysochanski <dwysocha@redhat.com>

14 years agoRefactor vgsplit - reorder _vgsplit_from and _vgsplit_to based on flag.
Dave Wysochanski [Wed, 2 Sep 2009 21:27:22 +0000 (21:27 +0000)]
Refactor vgsplit - reorder _vgsplit_from and _vgsplit_to based on flag.

Slight functional change.  If we open the destination first, we cannot
know the 'fmt'.  In this case we use the default metadata type unless
the user has specified -M on the cmdline.  If not, in most cases this
is fine since we use the LVM2 default metadata type.  However, if the
user is specifying a non-default metadata type (e.g. lvm1) and the order
of the names is such that we have to open the destination (vg_to) first,
we have a problem.  So in this case, we require the use of -M and vgsplit
will fail with an error if not.  I've updated the man page to recommend
the usage of -M in this case.

Author: Dave Wysochanski <dwysocha@redhat.com>

14 years agoRefactor vgsplit: _vgsplit_from or _vgsplit_to failure cleanup depends on order.
Dave Wysochanski [Wed, 2 Sep 2009 21:27:05 +0000 (21:27 +0000)]
Refactor vgsplit: _vgsplit_from or _vgsplit_to failure cleanup depends on order.

Should be no functional change.

Author: Dave Wysochanski <dwysocha@redhat.com>

14 years agoRefactor vgsplit - create _vgsplit_from function to open source vg.
Dave Wysochanski [Wed, 2 Sep 2009 21:26:50 +0000 (21:26 +0000)]
Refactor vgsplit - create _vgsplit_from function to open source vg.

Should be no functional change and allows future reorder of source and dest
vgs.

Author: Dave Wysochanski <dwysocha@redhat.com>

14 years agoRefactor vgsplit - create _vgsplit_to function which creates or opens dest vg.
Dave Wysochanski [Wed, 2 Sep 2009 21:26:34 +0000 (21:26 +0000)]
Refactor vgsplit - create _vgsplit_to function which creates or opens dest vg.

Move the creating/opening of the destination vg into its own function so later
we can reorder the source / destination vg opening based on the alphabetical
lock order rule.

Should be no functional change but code is a bit tricky.

Author: Dave Wysochanski <dwysocha@redhat.com>

14 years agoRefactor vgsplit - add 'lock_vg_from_first' flag.
Dave Wysochanski [Wed, 2 Sep 2009 21:26:18 +0000 (21:26 +0000)]
Refactor vgsplit - add 'lock_vg_from_first' flag.

Introduce 'lock_vg_from_first' flag to retain which vg was locked first.
Should be no functional change.

Author: Dave Wysochanski <dwysocha@redhat.com>

14 years agoRefactor vgsplit - remove bad2 label.
Dave Wysochanski [Wed, 2 Sep 2009 21:26:01 +0000 (21:26 +0000)]
Refactor vgsplit - remove bad2 label.

No functional change.

Author: Dave Wysochanski <dwysocha@redhat.com>

14 years agoRefactor vgsplit to move existing_vg logic in a separate 'if' statement.
Dave Wysochanski [Wed, 2 Sep 2009 21:25:44 +0000 (21:25 +0000)]
Refactor vgsplit to move existing_vg logic in a separate 'if' statement.

This will aid in future refactorings and allow for us to reorder the source
and destination vg based on alphabetical names.
Should be no functional change.

Author: Dave Wysochanski <dwysocha@redhat.com>

14 years agoFix vgsplit test to require -M on ordering of vgnames.
Dave Wysochanski [Wed, 2 Sep 2009 19:38:53 +0000 (19:38 +0000)]
Fix vgsplit test to require -M on ordering of vgnames.

14 years agoclogd->cmirrord
Alasdair Kergon [Wed, 2 Sep 2009 19:32:37 +0000 (19:32 +0000)]
clogd->cmirrord

14 years agoAdd alphabetical vgname ordering tests for vgsplit, vgmerge, vgrename.
Dave Wysochanski [Wed, 2 Sep 2009 18:31:11 +0000 (18:31 +0000)]
Add alphabetical vgname ordering tests for vgsplit, vgmerge, vgrename.

14 years agorename clogd dir to cmirrord
Alasdair Kergon [Wed, 2 Sep 2009 17:36:46 +0000 (17:36 +0000)]
rename clogd dir to cmirrord

14 years agoImplement write lock prioritisation for file locking and make it default.
Petr Rockai [Wed, 2 Sep 2009 14:47:39 +0000 (14:47 +0000)]
Implement write lock prioritisation for file locking and make it default.

14 years agoFix cmirrod build directory while we wait to do a proper rename of the
Fabio M. Di Nitto [Wed, 2 Sep 2009 11:49:03 +0000 (11:49 +0000)]
Fix cmirrod build directory while we wait to do a proper rename of the
directory and move files.

14 years agoDrop clogd Makefile from CVS since it's always autogenerated from Makefile.in
Fabio M. Di Nitto [Tue, 1 Sep 2009 19:13:38 +0000 (19:13 +0000)]
Drop clogd Makefile from CVS since it's always autogenerated from Makefile.in
at configure time.

14 years agoFix --with-clvmd=all to deal with the case where no cluster managers are available.
Fabio M. Di Nitto [Tue, 1 Sep 2009 19:11:45 +0000 (19:11 +0000)]
Fix --with-clvmd=all to deal with the case where no cluster managers are available.

Also simplify the check by removing an unnecessary variable and update
configure messages.

14 years agoRemove unwanted Makefiles and don't purge lvm2.po that's
Fabio M. Di Nitto [Tue, 1 Sep 2009 18:11:14 +0000 (18:11 +0000)]
Remove unwanted Makefiles and don't purge lvm2.po that's
under RCS.

14 years agoAdd some code to clvmd to look in the corosync confdb to see what cluster
Christine Caulfield [Tue, 1 Sep 2009 09:48:01 +0000 (09:48 +0000)]
Add some code to clvmd to look in the corosync confdb to see what cluster
interface it should be using, it can still be overriden with -I.

If corosync isn't running or there is no information then the usual
checking will happen.

This code only builds if corosync is available.

14 years agochange clogd to cmirrord
Alasdair Kergon [Fri, 28 Aug 2009 20:51:40 +0000 (20:51 +0000)]
change clogd to cmirrord
make pidfile locn configurable

14 years agoRewrite clvmd configuration code.
Alasdair Kergon [Fri, 28 Aug 2009 19:22:05 +0000 (19:22 +0000)]
Rewrite clvmd configuration code.

14 years agocluster log daemon (clogd): Adjust for kernel CTR arg reordering
Jonathan Earl Brassow [Fri, 28 Aug 2009 05:27:09 +0000 (05:27 +0000)]
cluster log daemon (clogd): Adjust for kernel CTR arg reordering

We have moved the internally generated mirror-device-size
parameter from the end of the CTR string to the begining.
This change adjusts for that.

14 years agoFix global locking in PV reporting commands (2.02.49).
Milan Broz [Mon, 24 Aug 2009 11:37:20 +0000 (11:37 +0000)]
Fix global locking in PV reporting commands (2.02.49).

14 years agoFix uuid warning in pvcreate to use terminated (and dash formatted) UUID string.
Milan Broz [Thu, 20 Aug 2009 07:03:02 +0000 (07:03 +0000)]
Fix uuid warning in pvcreate to use terminated (and dash formatted) UUID string.

# pvcreate -u udwxr7-BoKY-EeKM-r033-xK6o-4og7-F13sGi /dev/sdc
   uuid udwxr7BoKYEeKMr033xK6o4og7F13sGi|��� already in use on "/dev/sdb1"
 is now
# pvcreate -u udwxr7-BoKY-EeKM-r033-xK6o-4og7-F13sGi /dev/sdc
   uuid udwxr7-BoKY-EeKM-r033-xK6o-4og7-F13sGi already in use on "/dev/sdb1"

14 years agoFix pvcreate on a partition (regressed in 2.02.51).
Mike Snitzer [Wed, 19 Aug 2009 15:34:33 +0000 (15:34 +0000)]
Fix pvcreate on a partition (regressed in 2.02.51).

Eliminate busy loop during pvcreate of a "normal" partition.
_md_sysfs_attribute_snprintf() would busy loop if the device it was
given was not a blkext-based MD partition.

Rather than being cute with a busy-loop prone 'goto check_md_major' in
_md_sysfs_attribute_snprintf(): explicitly check if the provided device
is a blkext-based partition (blkext_major()); and then check that the
get_primary_dev() determined parent is an MD device (md_major()).

14 years agoUse new blkid instead of vol_id in udev rules.
Peter Rajnoha [Fri, 14 Aug 2009 14:37:46 +0000 (14:37 +0000)]
Use new blkid instead of vol_id in udev rules.

Thanks to Daniel Mierswa for reminding us.

14 years agoCluster log server (clogd): Add new build files.
Jonathan Earl Brassow [Thu, 13 Aug 2009 20:51:41 +0000 (20:51 +0000)]
Cluster log server (clogd):  Add new build files.

Might be a good idea to add the new files to the repository.  :(

14 years agoconfigure script: A couple unwanted changes snuck in.
Jonathan Earl Brassow [Thu, 13 Aug 2009 20:23:01 +0000 (20:23 +0000)]
configure script:  A couple unwanted changes snuck in.

Previously while messing around with 'configure.in' and autoconf,
I changed a couple lines that I didn't want in the final check-in.

14 years agomirror table generating code: Properly handle 'block_on_errors' and 'cluster' features
Jonathan Earl Brassow [Thu, 13 Aug 2009 19:36:04 +0000 (19:36 +0000)]
mirror table generating code:  Properly handle 'block_on_errors' and 'cluster' features

The device-mapper mirror CTR table has been changing over time.  This has
now been corrected to handle the old and new methods for invoking the
'block_on_errors' and 'cluster' features.  (The code that does this was
accidentally committed in the previous check-in.  This check-in finishes
the job.)

14 years agoFix error paths for vgcfgrestore when locking fails.
Dave Wysochanski [Thu, 13 Aug 2009 17:16:38 +0000 (17:16 +0000)]
Fix error paths for vgcfgrestore when locking fails.

14 years agoupdate WHATS_NEW
Jonathan Earl Brassow [Thu, 13 Aug 2009 16:36:49 +0000 (16:36 +0000)]
update WHATS_NEW

14 years agocluster log daemon (clogd): Add to LVM build system
Jonathan Earl Brassow [Thu, 13 Aug 2009 16:34:07 +0000 (16:34 +0000)]
cluster log daemon (clogd): Add to LVM build system

This check-in includes the touch-ups, make file changes, copyrights,
and other necessities to include the cluster log daemon into the
build system.

[autoconf still needs to be run to generate the 'configure' and
'Makefile' files.]

14 years agoCluster log daemon (clogd): use LVM bitops in place of ext2 bitops
Jonathan Earl Brassow [Thu, 13 Aug 2009 16:31:01 +0000 (16:31 +0000)]
Cluster log daemon (clogd): use LVM bitops in place of ext2 bitops

Eliminate dependency on outside library, since the same functionality
exists in our tree.

[It is important that the bitops work in the same way, as the bitmaps
must remain backwards compatible.  I haven't tested every architecture,
but the x86* archs work.  My test involved using the old ext2fsprogs
bitops, memcpy'ing the bits over to the LVM bitset array and ensuring
that only the bits set via the old methods were set.]

14 years agoMake lvchange --refresh only take a read lock on volume group.
Petr Rockai [Thu, 13 Aug 2009 14:27:32 +0000 (14:27 +0000)]
Make lvchange --refresh only take a read lock on volume group.

14 years agoRefactor file locking, lifting the flock wrapper code into separate
Petr Rockai [Thu, 13 Aug 2009 13:23:51 +0000 (13:23 +0000)]
Refactor file locking, lifting the flock wrapper code into separate
functions. Also fixes a bug, where a nonblocking lock could, in certain race
situations, succeed without actually obtaining the lock.

14 years agoUpdate WHATS_NEW
Dave Wysochanski [Thu, 13 Aug 2009 12:19:30 +0000 (12:19 +0000)]
Update WHATS_NEW

14 years agoMake lvm2app pv_t handle definition consistent with lvm_t.
Dave Wysochanski [Thu, 13 Aug 2009 12:18:15 +0000 (12:18 +0000)]
Make lvm2app pv_t handle definition consistent with lvm_t.

This patch update pv_t handle to be consistent with lvm_t - define as a pointer
to internal struct physical_volume.

Author: Dave Wysochanski <dwysocha@redhat.com>

14 years agoMake lvm2app lv_t handle definition consistent with lvm_t.
Dave Wysochanski [Thu, 13 Aug 2009 12:17:32 +0000 (12:17 +0000)]
Make lvm2app lv_t handle definition consistent with lvm_t.

This patch update lv_t handle to be consistent with lvm_t - define as a pointer
to internal struct logical_volume.

Author: Dave Wysochanski <dwysocha@redhat.com>

14 years agoMake lvm2app vg_t handle definition consistent with lvm_t.
Dave Wysochanski [Thu, 13 Aug 2009 12:16:45 +0000 (12:16 +0000)]
Make lvm2app vg_t handle definition consistent with lvm_t.

This patch update vg_t handle to be consistent with lvm_t - define as a pointer
to internal struct volume_group.

Author: Dave Wysochanski <dwysocha@redhat.com>

14 years agoUpdate WHATS_NEW for recent checkins.
Dave Wysochanski [Thu, 13 Aug 2009 12:04:01 +0000 (12:04 +0000)]
Update WHATS_NEW for recent checkins.

14 years agoFix vgextend error path - if ORPHAN lock fails, unlock and release vg.
Dave Wysochanski [Thu, 13 Aug 2009 12:03:46 +0000 (12:03 +0000)]
Fix vgextend error path - if ORPHAN lock fails, unlock and release vg.

Full changes
- Fix vgextend error path when lock_vol(VG_ORPHANS) fails
- Move lock_vol(VG_ORPHANS) before archive(vg) - safe & simpler error paths
- Remove legacy comment/code that no longer applies

Found in review - Milan Broz <mbroz@redhat.com>
Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
14 years agoFix compilation warning in clvmd.c
Christine Caulfield [Thu, 13 Aug 2009 10:39:41 +0000 (10:39 +0000)]
Fix compilation warning in clvmd.c

15 years agoUpdate man pages to clarify usage of PE ranges.
Dave Wysochanski [Mon, 10 Aug 2009 17:23:04 +0000 (17:23 +0000)]
Update man pages to clarify usage of PE ranges.

Author: Dave Wysochanski <dwysocha@redhat.com>

15 years agoRemove useless _pv_write wrapper.
Dave Wysochanski [Mon, 10 Aug 2009 17:15:01 +0000 (17:15 +0000)]
Remove useless _pv_write wrapper.

15 years agoUpdate test/api/test.c to call lvm_vg_create and lvm_vg_remove.
Dave Wysochanski [Fri, 7 Aug 2009 21:22:37 +0000 (21:22 +0000)]
Update test/api/test.c to call lvm_vg_create and lvm_vg_remove.

Also fix a couple bugs.

15 years agopost-release
Alasdair Kergon [Thu, 6 Aug 2009 19:32:26 +0000 (19:32 +0000)]
post-release

15 years agopre-release
Alasdair Kergon [Thu, 6 Aug 2009 17:08:01 +0000 (17:08 +0000)]
pre-release

15 years agopre-release
Alasdair Kergon [Thu, 6 Aug 2009 16:30:34 +0000 (16:30 +0000)]
pre-release

15 years agoFix semaphore includes in dmsetup for udev sync.
Peter Rajnoha [Thu, 6 Aug 2009 15:56:50 +0000 (15:56 +0000)]
Fix semaphore includes in dmsetup for udev sync.

15 years agoRemove 11-dm-permissions.rules (is now in 12-dm-permissions.rules).
Peter Rajnoha [Thu, 6 Aug 2009 15:28:05 +0000 (15:28 +0000)]
Remove 11-dm-permissions.rules (is now in 12-dm-permissions.rules).

15 years agoRename template rule file 11-dm-permissions.rules to 12-dm-permissions.rules.
Peter Rajnoha [Thu, 6 Aug 2009 15:10:58 +0000 (15:10 +0000)]
Rename template rule file 11-dm-permissions.rules to 12-dm-permissions.rules.

15 years agoAdd 'udevcookies' command for dmsetup.
Peter Rajnoha [Thu, 6 Aug 2009 15:05:10 +0000 (15:05 +0000)]
Add 'udevcookies' command for dmsetup.

15 years agoAdd 'udevcomplete_all' command for dmsetup. Export DM_COOKIE_MAGIC in libdevmapper.h.
Peter Rajnoha [Thu, 6 Aug 2009 15:04:30 +0000 (15:04 +0000)]
Add 'udevcomplete_all' command for dmsetup. Export DM_COOKIE_MAGIC in libdevmapper.h.

15 years agoFix failure situations in dm_task_run for udev sync.
Peter Rajnoha [Thu, 6 Aug 2009 15:02:01 +0000 (15:02 +0000)]
Fix failure situations in dm_task_run for udev sync.

15 years agoDetect udev problems in _rename_dev_node.
Peter Rajnoha [Thu, 6 Aug 2009 15:00:25 +0000 (15:00 +0000)]
Detect udev problems in _rename_dev_node.

15 years agoAdditional logging
Alasdair Kergon [Wed, 5 Aug 2009 19:50:08 +0000 (19:50 +0000)]
Additional logging

15 years agoFix locking in clvmd
Christine Caulfield [Wed, 5 Aug 2009 14:18:35 +0000 (14:18 +0000)]
Fix locking in clvmd

The changes to remove LCK_NONBLOCK from the LVM locks broke clvmd because the
code was clearly wrong but working anyway! The constant was being masked rather
than the variable that was supposed to match against it.

15 years agoForgotten '%s' in one of _mk_link warning messages.
Peter Rajnoha [Wed, 5 Aug 2009 09:12:44 +0000 (09:12 +0000)]
Forgotten '%s' in one of _mk_link warning messages.

15 years agodetect udev mk_link problems
Alasdair Kergon [Tue, 4 Aug 2009 21:44:20 +0000 (21:44 +0000)]
detect udev mk_link problems

15 years agoAdded basic pvcreate --dataalignmentoffset testing to t-pvcreate-usage.sh
Mike Snitzer [Tue, 4 Aug 2009 16:02:39 +0000 (16:02 +0000)]
Added basic pvcreate --dataalignmentoffset testing to t-pvcreate-usage.sh
Added topology testing via new test/t-pvcreate-operation-md.sh
- requires mdadm and rawhide kernel for full test coverage

15 years agoAdd --noudevsync option for relevant LVM tools.
Peter Rajnoha [Tue, 4 Aug 2009 15:55:43 +0000 (15:55 +0000)]
Add --noudevsync option for relevant LVM tools.

15 years agoAdd --noudevsync option for relevant LVM tools.
Peter Rajnoha [Tue, 4 Aug 2009 15:53:04 +0000 (15:53 +0000)]
Add --noudevsync option for relevant LVM tools.

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