Accepting request 22102 from Base:System
Copy from Base:System/drbd based on submit request 22102 from user coolo OBS-URL: https://build.opensuse.org/request/show/22102 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/drbd?expand=0&rev=21
This commit is contained in:
parent
84b91368c6
commit
e6120ecd85
27
build-fix.diff
Normal file
27
build-fix.diff
Normal file
@ -0,0 +1,27 @@
|
||||
--- drbd/drbd_req.c 2009-10-07 21:29:57.964277921 +0200
|
||||
+++ drbd/drbd_req.c 2009-10-07 21:55:32.817152584 +0200
|
||||
@@ -61,7 +61,7 @@
|
||||
part_stat_inc(cpu, &mdev->vdisk->part0, ios[rw]);
|
||||
part_stat_add(cpu, &mdev->vdisk->part0, sectors[rw], bio_sectors(bio));
|
||||
part_stat_unlock();
|
||||
- mdev->vdisk->part0.in_flight++;
|
||||
+ mdev->vdisk->part0.in_flight[rw]++;
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -77,13 +77,13 @@
|
||||
#ifdef __disk_stat_add
|
||||
__disk_stat_add(mdev->vdisk, ticks[rw], duration);
|
||||
disk_round_stats(mdev->vdisk);
|
||||
- mdev->vdisk->in_flight--;
|
||||
+ mdev->vdisk->in_flight[rw]--;
|
||||
#else
|
||||
cpu = part_stat_lock();
|
||||
part_stat_add(cpu, &mdev->vdisk->part0, ticks[rw], duration);
|
||||
part_round_stats(cpu, &mdev->vdisk->part0);
|
||||
part_stat_unlock();
|
||||
- mdev->vdisk->part0.in_flight--;
|
||||
+ mdev->vdisk->part0.in_flight[rw]--;
|
||||
#endif
|
||||
}
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0485b708e4d141b13a326b59f98a51902fde2981f351d3777bc91c88052af468
|
||||
size 322524
|
3
drbd-8.3.4.tar.bz2
Normal file
3
drbd-8.3.4.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c106b7df233dee2265fbf60526fccf74a3433e1641073f56664013695de600cf
|
||||
size 331346
|
@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 7 19:16:37 UTC 2009 - aj@suse.de
|
||||
|
||||
- update to 8.3.4:
|
||||
* Support kernel 2.6.31
|
||||
* Numerous bug fixes
|
||||
* Support for Infiniband via SDP (sockets direct protocol)
|
||||
- Add build fix from upstream.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jul 19 21:51:40 CEST 2009 - coolo@novell.com
|
||||
|
||||
|
12
drbd.spec
12
drbd.spec
@ -1,5 +1,5 @@
|
||||
#
|
||||
# spec file for package drbd (Version 8.3.2)
|
||||
# spec file for package drbd (Version 8.3.4)
|
||||
#
|
||||
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
@ -20,9 +20,10 @@
|
||||
Name: drbd
|
||||
BuildRequires: bison flex glib-devel kernel-source kernel-syms module-init-tools
|
||||
Summary: Distributed Replicated Block Device
|
||||
Version: 8.3.2
|
||||
Release: 2
|
||||
Version: 8.3.4
|
||||
Release: 1
|
||||
Source: %{name}-%{version}.tar.bz2
|
||||
Patch1: build-fix.diff
|
||||
License: GPL v2 or later
|
||||
Group: Productivity/Clustering/HA
|
||||
Provides: drbdsetup drbd-control
|
||||
@ -62,6 +63,7 @@ Authors:
|
||||
|
||||
%prep
|
||||
%setup -n %{name}-%{version}
|
||||
%patch1 -p0
|
||||
mkdir source
|
||||
cp -a drbd/. source/. || :
|
||||
cp source/Makefile-2.6 source/Makefile
|
||||
@ -87,8 +89,6 @@ export RPM_BUILD_ROOT
|
||||
export CONFIG_BLK_DEV_DRBD=m
|
||||
export DIST=suselike
|
||||
make PREFIX=%{buildroot}/ install-tools
|
||||
mkdir $RPM_BUILD_ROOT/etc/bash_completion.d
|
||||
cp scripts/drbdadm.bash_completion $RPM_BUILD_ROOT/etc/bash_completion.d/drbdadm.sh
|
||||
cp scripts/drbd.rules $RPM_BUILD_ROOT/etc/udev/rules.d/65-drbd.rules
|
||||
# these files look like wrong installed documentation
|
||||
rm $RPM_BUILD_ROOT/etc/udev/rules.d/65-drbd.rules.disabled
|
||||
@ -131,7 +131,7 @@ rm -rf "$RPM_BUILD_ROOT"
|
||||
%files -n drbd
|
||||
%defattr(644, root, root)
|
||||
%config(noreplace) /etc/drbd.conf
|
||||
/etc/bash_completion.d/drbdadm.sh
|
||||
/etc/bash_completion.d/drbdadm
|
||||
%defattr(755, root, root)
|
||||
/sbin/drbdadm
|
||||
/sbin/drbdsetup
|
||||
|
Loading…
Reference in New Issue
Block a user