Hi,

> patch -p <raid0145-20000110-2.2.14.patch (while being cd'ed into
> /usr/src doesn't run smooth). patch stops at every file 
> saying it cannot find the file. Sorry if this may be a
> basic question but things are so different und Linux.


Hmmm... "-p" what? there is supposed to follow a  number (at least patch on
                   DEC OSF4.0 want's one).

 patch [-bflsvNRS] [-c | -e | -n] [-B prefix] [-d directory] [-D define]
       [-F][number] [-i patchfile] [-o outfile] [-p number] [-r rejectfile]
       [original_file] [patchfile] [+] [flags] [original_file]


-p 1 will cause patch to strip one leading directory name at the front. 

So if the patchfile was done from /usr/src all path will start with
linux/....

if you cd in /usr/src/linux you would use:
patch -p 1 < patchfile

so it can find all the files. 

If the patch is not clean (i.e. rejects) you probably had a kernel patched
with the old style md-raid. The patch is probably against a clean kernel
source.

Either get a clean kernel or a patch against your kernel version (could be
difficult).


BTW: option --dry-run will cause patch to test every patch but not actually
doing them.This way you won't end up with a messed up kernel source.

K.-H.





------------------------------------------------------------------------
E-Mail: Karl-Heinz Herrmann <[EMAIL PROTECTED]> 
http://www.kfa-juelich.de/icg/icg7/FestFluGre/transport/khh/general.html
Sent: 10-Aug-00, 13:33:24
------------------------------------------------------------------------

Reply via email to