[DRBD-user] applying patch how to

Robert Fowler Robert.Fowler at ward.ie
Wed Sep 22 12:14:53 CEST 2004

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


I am trying to install drbd 0.6.13 and use the linux redhat 2.4.9 kernel

Q: Compiling fails with "structure has no member named `nice'" from on
the drbd_syncer.c?


On the drbd website it states to apply the patch below.  However as I am
new to linux ho do you apply this patch, typing it out doest work ????
Thanks


--- drbd_syncer.c       Wed Oct 16 06:19:17 2002
+++ drbd_syncer.c.orig  Wed Oct 16 06:18:27 2002
@@ -311,7 +311,7 @@
 #define SPEED_MIN (mdev->conf.sync_rate_min)
 #define SYNC_MARKS      10
 #define SYNC_MARK_STEP  (3*HZ)
-#if defined(MAX_RT_PRIO) || defined(CONFIG_MAX_RT_PRIO)
+#if 1
/* this should work for the O(1) scheduler */
 #define drbd_set_user_nice(current,x) set_user_nice(current,(x))
 #else
**************************************************************************************************
The contents of this email and any attachments are confidential.
It is intended for the named recipient(s) only.
If you have received this email in error please notify the system manager or  the 
sender immediately and do not disclose the contents to anyone or make copies.

** eSafe scanned this email for viruses, vandals and malicious content **
**************************************************************************************************



More information about the drbd-user mailing list