* Problem patching kernel in Rhel-4
@ 2006-11-09 17:10 Dana Wellen
2006-11-09 18:12 ` Ian Kent
0 siblings, 1 reply; 2+ messages in thread
From: Dana Wellen @ 2006-11-09 17:10 UTC (permalink / raw)
To: autofs
Hello,
I am really glad to see that autofs is finally being updated to one
that works in a multi-OS environment. Autofs
has long been a weak link into the standard Unix environment and this
version fixes many of the issues I have had
with v4 and getting the company to switch to Linux because Linux wasn't
plug and play with the Solaris automounter.
I am getting a error patching the kernel in Rhel-4.
The kernel being used is 2.6.9-5.ELsmp, I have installed the
corresponding source rpm and unpacked the kernel.
A transcript of the error is:
patching file fs/namei.c
Hunk #4 FAILED at 635.
Hunk #5 succeeded at 752 (offset 6 lines).
1 out of 6 hunks FAILED -- saving rejects to file fs/namei.c.rej
All of the other files used in the patch are patched correctly. The
namei.c file is the only one
that doesn't patch.
This is the error file made by patch.
cat namei.c.rej
***************
*** 654,665 ****
goto done;
need_revalidate:
- dentry = do_revalidate(dentry, nd);
- if (!dentry)
- goto need_lookup;
- if (IS_ERR(dentry))
- goto fail;
- goto done;
fail:
return PTR_ERR(dentry);
--- 635,646 ----
goto done;
need_revalidate:
+ if (dentry->d_op->d_revalidate(dentry, nd))
+ goto done;
+ if (d_invalidate(dentry))
+ goto done;
+ dput(dentry);
+ goto need_lookup;
fail:
return PTR_ERR(dentry);
Also, I couldn't find any information on what the flock patches are for
in the documentation.
I have been able to build the kernel and autofs using Suse 10.1 and
Sled 10 but not Rhel-4.
--
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: Problem patching kernel in Rhel-4
2006-11-09 17:10 Problem patching kernel in Rhel-4 Dana Wellen
@ 2006-11-09 18:12 ` Ian Kent
0 siblings, 0 replies; 2+ messages in thread
From: Ian Kent @ 2006-11-09 18:12 UTC (permalink / raw)
To: Dana Wellen; +Cc: autofs
On Thu, 2006-11-09 at 12:10 -0500, Dana Wellen wrote:
> Hello,
>
> I am really glad to see that autofs is finally being updated to one
> that works in a multi-OS environment. Autofs
> has long been a weak link into the standard Unix environment and this
> version fixes many of the issues I have had
> with v4 and getting the company to switch to Linux because Linux wasn't
> plug and play with the Solaris automounter.
Bold, trying to patch an already heavily patched kernel.
>
> I am getting a error patching the kernel in Rhel-4.
>
> The kernel being used is 2.6.9-5.ELsmp, I have installed the
> corresponding source rpm and unpacked the kernel.
>
> A transcript of the error is:
>
> patching file fs/namei.c
> Hunk #4 FAILED at 635.
> Hunk #5 succeeded at 752 (offset 6 lines).
> 1 out of 6 hunks FAILED -- saving rejects to file fs/namei.c.rej
>
> All of the other files used in the patch are patched correctly. The
> namei.c file is the only one
> that doesn't patch.
I'm aware of this.
But I think there may be a couple of other problems with the patches in
the tarball (but mostly for older kernels, I can't remember the
versions).
I have a patch set that should work for a RHEL4 kernel but I strongly
recommend you update to the latest distributed kernel before testing
(something like 2.6.9-42.EL I think).
The patch set should be ok but hasn't seen much testing yet.
If you want to try the patches I'll put them on kernel.org.
It will take a little while.
What version of autofs 5 will you be using for your testing?
snip ..
>
> Also, I couldn't find any information on what the flock patches are for
> in the documentation.
Just use the patches as a reference to check that mount(8):fstab.c (I
think) has the close(2) call moved out of the loop. The RedHat patch to
resolve this is more sophisticated than the one you see in the tar.
You should be ok with RHEL4, but if your packages are as old as the
kernel perhaps you should update util-linux also.
>
> I have been able to build the kernel and autofs using Suse 10.1 and
> Sled 10 but not Rhel-4.
Sorry, I think you will need updated patches, but you may be ok for most
things. I'm trying to get around to doing this.
Ian
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-11-09 18:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-09 17:10 Problem patching kernel in Rhel-4 Dana Wellen
2006-11-09 18:12 ` Ian Kent
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.