From: lkestel@csugrad.cs.vt.edu (Lawrence Kesteloot) Subject: .99p7 bug in minix/namei.c? Major patching problems... Date: 14 Mar 1993 19:38:39 GMT
I've been having major problems patching my kernel. I started with
TAMU .99p4, and upgraded to p5 and p6 with no problems, except that
all of the files meant for the zBoot directory ended up in /usr/src.
Patching to p7 was event worse and I ended up with all of the files
meant for fs/ext2 and fs/xiafs in /usr/src (even though I had
created the directories before patching). Am I patching wrong?
I did the following: I moved the patch file to /usr/src, then
cd /usr/src and patch <linux-0.99.patch7. What I got was lots
of failed hunks and all of the files that didn't already exist
in the tree ended up in /usr/src. Worse, if, say, symlink.c from
ext2 didn't exist yet, then it got put into /usr/src, and
then the NEXT patch to another symlink.c (say minix/symlink.c)
got done to the one in /usr/src! It took me two hours to undo all
of that changes that were done since I had to do them by hand.
And I don't even know what patches were not done. (I know that
at least some patches were not done and were simply ignored
because the compile failed, but I don't know about the minor
patches.)
Also, there seems to be a bug in minix/namei.c in the function
empty_dir() where the variable "bh" might be referenced without
being initialized. I looked at the patches and the bad code
had just been added by patch 7.
Sorry if these are common problems, but our news feed has been
bad for the last two weeks and I even missed the 99p7 announcement.
Thanks,
Lawrence