Hello community,
here is the log from the commit of package drbd
checked in at Sun Apr 2 21:59:30 CEST 2006.
--------
--- drbd/drbd.changes 2006-03-27 18:02:24.000000000 +0200
+++ drbd/drbd.changes 2006-04-02 20:01:37.000000000 +0200
@@ -1,0 +2,6 @@
+Sun Apr 2 20:01:34 CEST 2006 - agruen@suse.de
+
+- convert-MODULE_PARM.diff: Convert from the obsolete MODULE_PARM
+ to the new module_param.
+
+-------------------------------------------------------------------
New:
----
convert-MODULE_PARM.diff
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ drbd.spec ++++++
--- /var/tmp/diff_new_pack.gDw4dO/_old 2006-04-02 21:59:23.000000000 +0200
+++ /var/tmp/diff_new_pack.gDw4dO/_new 2006-04-02 21:59:23.000000000 +0200
@@ -13,13 +13,14 @@
BuildRequires: glib-devel kernel-source kernel-syms
Summary: Distributed Replicated Block Device
Version: 0.7.17
-Release: 6
+Release: 7
Source: %{name}-%{version}.tar.gz
# Source: drbd-SVN.tar.bz2
Source1: drbd-Makefile.module
Source2: drbd-modprobe.d
Patch0: drbd-optflags.patch
Patch1: drbd-post-0.7.17.patch
+Patch2: convert-MODULE_PARM.diff
License: GPL
Group: Productivity/Clustering/HA
Provides: drbdsetup drbd-control
@@ -60,6 +61,7 @@
%setup -n drbd-%{version}
%patch0 -p1
%patch1 -p2
+%patch2 -p1
mkdir source
cp -a drbd/. source/. || :
cp %{SOURCE1} source/Makefile
@@ -139,6 +141,9 @@
%doc scripts/drbd.conf
%changelog -n drbd
+* Sun Apr 02 2006 - agruen@suse.de
+- convert-MODULE_PARM.diff: Convert from the obsolete MODULE_PARM
+ to the new module_param.
* Mon Mar 27 2006 - lmb@suse.de
- Fix memory allocation flags for the activity log (GFP_KERNEL ->
GFP_NOIO) to avoid possible deadlock.
++++++ convert-MODULE_PARM.diff ++++++
Index: drbd-0.7.17/drbd/drbd_main.c
===================================================================
--- drbd-0.7.17.orig/drbd/drbd_main.c
+++ drbd-0.7.17/drbd/drbd_main.c
@@ -112,8 +112,8 @@ MODULE_PARM_DESC(use_nbd_major, "DEPRECA
"instead of the default " __stringify(LANANA_DRBD_MAJOR) );
MODULE_PARM_DESC(minor_count, "Maximum number of drbd devices (1-255)");
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
-MODULE_PARM(use_nbd_major,"i");
-MODULE_PARM(minor_count,"i");
+module_param(use_nbd_major, int, 0);
+module_param(minor_count, int, 0);
#else
#include