Re: OT: DRBD compile error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>> Yup, that's right. Alternatively, you could replace the line that
>> starts with the '-' sign and replace it with the one that starts with
>> the '+' sign.
>>
>> -justinb
>
> Thanks, that worked.
>
> Chris

Just in case something like this comes up again in the future, how would I
accomplish the same task using the patch command?  This was an easy one
since it was just replacing one line, so the patch command wasn't
necessary.  I tried copying the patch into a text file called 'patchfile'
and placed it in the drbd source tree and ran the following...

[root@node1 drbd-0.6.8.test]# patch -p0 < patchfile
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- drbd_syncer.c       Wed Oct 16 06:19:17 2002
|+++ drbd_syncer.c.orig  Wed Oct 16 06:18:27 2002
--------------------------
File to patch: ./drbd/drbd_syncer.c
patching file ./drbd/drbd_syncer.c
patch: **** malformed patch at line 9: /* this should work for the O(1)
scheduler */

What did I do wrong here?

Thanks,
Chris



-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux