Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
Robert Fowler wrote: > 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 I am also a newbie but I have done some patching. The way I do it is as follows. cd into the source directory of drbd.0.6.13 Then type the command "patch -p1 --dry-run < patch.file" That was just a test to see if everything works. There should be no fails. If all is well then do "patch -p1 < patch.file" The p1 is to remove the directory path. Please read "man patch". P.V.Anthony