ide.disk.c : patch for 2.6.6

From: fred (fredantispam_at_free.fr)
Date: 05/26/04


Date: 26 May 2004 18:53:43 +0200


Hi,

I have a Maxtor HD and a lot of warning message such as

  hdb: Write Cache FAILED Flushing!

R. Herman has posted a patch for kernel 2.6.6 in linux.kernel
(<40A7E788.7080008@keyaccess.nl>)

I have kernel source (linux-2.6.6) from kernel.org.

When I want to apply the patch, I get this :

marsu[pts/0]:~//tmp/{104}/> patch -p0 < patch-2.6.6.linux.kernel
patching file linux-2.6.6.orig/drivers/ide/ide-disk.c
Hunk #1 succeeded at 740 with fuzz 1.
Hunk #2 FAILED at 1357.
Hunk #3 FAILED at 1388.
Hunk #4 FAILED at 1518.
Hunk #5 FAILED at 1683.
Hunk #6 FAILED at 1696.
Hunk #7 FAILED at 1723.
Hunk #8 FAILED at 1762.
Hunk #9 FAILED at 1779.
Hunk #10 FAILED at 1859.
9 out of 10 hunks FAILED -- saving rejects to file linux-2.6.6.orig/drivers/ide/ide-disk.c.rej
patching file linux-2.6.6.orig/include/linux/kernel.h
Hunk #1 FAILED at 109.
1 out of 1 hunk FAILED -- saving rejects to file linux-2.6.6.orig/include/linux/kernel.h.rej
patching file linux-2.6.6.orig/init/main.c
Hunk #1 FAILED at 95.
1 out of 1 hunk FAILED -- saving rejects to file linux-2.6.6.orig/init/main.c.rej
patching file linux-2.6.6.orig/kernel/sys.c
Hunk #1 FAILED at 447.
Hunk #2 FAILED at 463.
Hunk #3 FAILED at 473.
patch unexpectedly ends in middle of line
Hunk #4 FAILED at 489.
4 out of 4 hunks FAILED -- saving rejects to file linux-2.6.6.orig/kernel/sys.c.rej

What's wrong ?

Is it the right source for the kernel or do I need kernel already
patched with patches provided on kernel.org (linux-2.6.6rc3) ?

Thanks in advance.

Cheers.

-- 
Fred.


Relevant Pages

  • Re: Booting from usb hard disk
    ... The following patch should work. ... Patching file kern/vfs_mount.c using Plan A... ... Hunk #1 succeeded at 1353. ... GEOM_LABEL: Label for provider ad0 is ufsid/49adccdba5f8e304. ...
    (freebsd-current)
  • Upgrade succeded from 3.8 to 3.9
    ... and restored data again. ... The next patch looks like a unified diff to me... ... Patching file etc/lynx.cfg using Plan A... ... Hunk #1 succeeded at 5. ...
    (comp.unix.bsd.openbsd.misc)
  • Applying kernel patches
    ... in the kernel source directory. ... patching file arch/i386/kernel/i386_ksyms.c ... Hunk #2 FAILED at 196. ... Reversed patch detected! ...
    (Fedora)
  • Re: 2.6.20-rt8 patch tweaked for 2.6.20.5
    ... patching file arch/ia64/kernel/iosapic.c ... Hunk #3 succeeded at 469 with fuzz 2. ... when the 'patch' utility didnt find the 'context' of the ...
    (Linux-Kernel)
  • Re: Upgrade succeded from 3.8 to 3.9
    ... The next patch looks like a unified diff to me... ... Patching file etc/lynx.cfg using Plan A... ... Hunk #1 succeeded at 5. ...
    (comp.unix.bsd.openbsd.misc)