I have two questions relating to autofs4 and
autofs4-2.4.18-20020609.patch (direct maps and ghosting support).

1. When applying the patch to standard 2.4.18 kernel, the file
   fs/autofs4/root.c doesn't get properly patched. The rejection occurs when
   patch cannot find "struct file_operations autofs4_dir_operations = {" in
   root.c The line reads "struct file_operations autofs4_root_operations = {"
   instead. Is that a buggy patch file?

2. I manually applied the rejected hunk inside the struct
"autofs4_root_operations"
   instead of "autofs4_dir_operations" and compiled the kernel. When running
   "make SUBDIRS=fs/autofs4 modules" I get the following:

   "...
   inode.c: In function 'autofs4_get_inode':
   inode.c:319: 'dcache_dir_ops' undeclared (first use in this function)
   inode.c:319: (Each undeclared identifier is reported only once
   inode.c:319: for each function it appears in.)
   ..."

   Line 319 reads:
   "inode->i_fop = &dcache_dir_ops;"

   Since "dcache_dir_ops" is not defined anywhere, I changed it to
   "inode->i_fop = &autofs4_root_operations". But now gcc complains that
   "dcache_dir_open" and in genereal "dcache_dir_*" are not defined.

I arrived at a dead end. Does anyone have any suggestion/ideas?

Thanks,
Vsevolod


_______________________________________________
autofs mailing list
[EMAIL PROTECTED]
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to