Change DEFAULT_UDEV_SYNC to 1 so udev_sync is used even without any config.

This commit is contained in:
Peter Rajnoha 2011-08-03 10:15:44 +02:00
parent 056a28e807
commit 7debc62333
2 changed files with 34 additions and 1 deletions

View File

@ -0,0 +1,28 @@
WHATS_NEW | 1 +
lib/config/defaults.h | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/WHATS_NEW b/WHATS_NEW
index f8bb79e..b40abd9 100644
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
Version 2.02.87 -
===============================
+ Change DEFAULT_UDEV_SYNC to 1 so udev_sync is used even without any config.
Add systemd unit file to provide lvm2 monitoring.
Version 2.02.86 - 8th July 2011
diff --git a/lib/config/defaults.h b/lib/config/defaults.h
index afd8dc1..7793d32 100644
--- a/lib/config/defaults.h
+++ b/lib/config/defaults.h
@@ -77,7 +77,7 @@
#define DEFAULT_LABELSECTOR UINT64_C(1)
#define DEFAULT_READ_AHEAD "auto"
#define DEFAULT_UDEV_RULES 1
-#define DEFAULT_UDEV_SYNC 0
+#define DEFAULT_UDEV_SYNC 1
#define DEFAULT_VERIFY_UDEV_OPERATIONS 0
#define DEFAULT_ACTIVATION_CHECKS 0
#define DEFAULT_EXTENT_SIZE 4096 /* In KB */

View File

@ -39,7 +39,7 @@
Summary: Userland logical volume management tools
Name: lvm2
Version: 2.02.86
Release: 4%{?dist}
Release: 5%{?dist}
License: GPLv2
Group: System Environment/Base
URL: http://sources.redhat.com/lvm2
@ -53,6 +53,7 @@ Patch2: lvm2-systemd-conf-make-support.patch
Patch3: lvm2-autoreconf.patch
Patch4: lvm2-new-oom-adj-interface.patch
Patch5: lvm2-systemd-fds-handover.patch
Patch6: lvm2-fix-default_udev_sync.patch
BuildRequires: libselinux-devel >= 1.30.19-4, libsepol-devel
BuildRequires: ncurses-devel
@ -97,6 +98,7 @@ or more physical volumes and creating one or more logical volumes
%patch3 -p1 -b .autoreconf
%patch4 -p1 -b .oom_adj
%patch5 -p1 -b .systemd_fds
%patch6 -p1 -b .default_udev_sync
%build
%define _exec_prefix ""
@ -593,6 +595,9 @@ the device-mapper event library.
/usr%{_libdir}/pkgconfig/devmapper-event.pc
%changelog
* Wed Aug 03 2011 Peter Rajnoha <prajnoha@redhat.com> - 2.02.86-5
- Change DEFAULT_UDEV_SYNC to 1 so udev_sync is used even without any config.
* Thu Jul 28 2011 Peter Rajnoha <prajnoha@redhat.com> - 2.02.86-4
- Add support for systemd file descriptor handover to dmeventd.
- Add support for new oom killer adjustment interface (oom_score_adj).