1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

dm release cleanup

This commit is contained in:
Alasdair Kergon 2009-09-15 11:41:38 +00:00
parent 4b7033d3f1
commit 6087b1581d
3 changed files with 22 additions and 18 deletions

View File

@ -5,17 +5,13 @@ Version 2.02.52 - 15th September 2009
Make readonly locking available as locking type 4. Make readonly locking available as locking type 4.
Fix readonly locking to permit writeable global locks (for vgscan). (2.02.49) Fix readonly locking to permit writeable global locks (for vgscan). (2.02.49)
Add lvm_vg_is_clustered, lvm_vg_is_exported, and lvm_vg_is_partial. Add lvm_vg_is_clustered, lvm_vg_is_exported, and lvm_vg_is_partial.
Add manpage entry for dmsetup's udevcomplete_all and udevcookies commands.
Add DM_UDEV_RULES_VSN udev enviroment variable. Add DM_UDEV_RULES_VSN udev enviroment variable.
Check that udev is running and set internal state appropriately.
Add libudev configuration check. Add libudev configuration check.
Add lvm2app.sh to nightly tests conditional upon configure --enable-applib. Add lvm2app.sh to nightly tests conditional upon configure --enable-applib.
Update lvm_vg_remove to require lvm_vg_write to commit remove to disk. Update lvm_vg_remove to require lvm_vg_write to commit remove to disk.
Enforce an alphabetical lock ordering for vgname locks. Enforce an alphabetical lock ordering for vgname locks.
Refactor vgsplit, vgmerge, and vgrename to obey vgname ordering rules. Refactor vgsplit, vgmerge, and vgrename to obey vgname ordering rules.
Implement write lock prioritisation for file locking and make it default. Implement write lock prioritisation for file locking and make it default.
Fix clogd build direcory.
Drop unrequired clogd Makefile.
Fix clvmd autodetection check and cleanup related configure messages. Fix clvmd autodetection check and cleanup related configure messages.
Fix Makefile distclean target. Fix Makefile distclean target.
Make clvmd check corosync to see what cluster interface it should use. Make clvmd check corosync to see what cluster interface it should use.
@ -25,6 +21,7 @@ Version 2.02.52 - 15th September 2009
Fix pvcreate on a partition (2.02.51). Fix pvcreate on a partition (2.02.51).
Fix vgcfgrestore error paths when locking fails (2.02.49). Fix vgcfgrestore error paths when locking fails (2.02.49).
Added configure --enable-cmirrord to build the cluster mirror log daemon. Added configure --enable-cmirrord to build the cluster mirror log daemon.
Rename clogd to cmirrord.
Make lvchange --refresh only take a read lock on volume group. Make lvchange --refresh only take a read lock on volume group.
Fix bug where non-blocking file locks could be granted in error. Fix bug where non-blocking file locks could be granted in error.
Make lvm2app pv_t, lv_t, vg_t handle definitions consistent with lvm_t. Make lvm2app pv_t, lv_t, vg_t handle definitions consistent with lvm_t.

View File

@ -1,9 +1,12 @@
Version 1.02.37 - 15th September 2009 Version 1.02.37 - 15th September 2009
==================================== =====================================
Add y|--yes option for dmsetup to provide a default 'YES' answer to questions. Add dmsetup manpage entries for udevcomplete_all and udevcookies.
Fix Makefile to take into account dmsetup's reconfiguration. Check udev is running when processing cookies and retain state internally.
Add y|--yes option to dmsetup for default 'yes' answer to prompts.
Fix tools Makefile to process dmsetup sources separately.
Restore umask when device node creation fails. Restore umask when device node creation fails.
Fix mirror table CTR code to handle 'block_on_error' and 'cluster' features Check kernel vsn to use 'block_on_error' or 'handle_errors' in mirror table.
Add dm-log-userspace.h to tree for cmirrord builds.
Version 1.02.36 - 6th August 2009 Version 1.02.36 - 6th August 2009
================================= =================================

View File

@ -833,27 +833,29 @@ int dm_udev_wait(uint32_t cookie)
static int _check_udev_is_running(void) static int _check_udev_is_running(void)
{ {
# ifndef HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE # ifndef HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE
log_debug("Could not get udev state because libudev library " log_debug("Could not get udev state because libudev library "
"was not found and it was not compiled in. " "was not found and it was not compiled in. "
"Assuming udev is not running."); "Assuming udev is not running.");
return 0; return 0;
# else /* HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE */ # else /* HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE */
struct udev *udev; struct udev *udev;
struct udev_queue *udev_queue; struct udev_queue *udev_queue;
int r; int r;
if (!(udev = udev_new())) if (!(udev = udev_new()))
goto error; goto_bad;
if (!(udev_queue = udev_queue_new(udev))) { if (!(udev_queue = udev_queue_new(udev))) {
udev_unref(udev); udev_unref(udev);
goto error; goto_bad;
} }
r = udev_queue_get_udev_is_active(udev_queue); if (!(r = udev_queue_get_udev_is_active(udev_queue)))
if (!r)
log_debug("Udev is not running. " log_debug("Udev is not running. "
"Not using udev synchronisation code."); "Not using udev synchronisation code.");
@ -862,10 +864,12 @@ static int _check_udev_is_running(void)
return r; return r;
error: bad:
log_debug("Could not get udev state. Assuming udev is not running."); log_error("Could not get udev state. Assuming udev is not running.");
return 0; return 0;
# endif /* HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE */ # endif /* HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE */
} }
void dm_udev_set_sync_support(int sync_with_udev) void dm_udev_set_sync_support(int sync_with_udev)