]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
fix-readdir-hint-20010329
authorSam Hartman <hartmans@mit.edu>
Fri, 30 Mar 2001 00:12:38 +0000 (00:12 +0000)
committerDerrick Brashear <shadow@dementia.org>
Fri, 30 Mar 2001 00:12:38 +0000 (00:12 +0000)
"Under 2.4.x kernels, there is a file type in the result of readdir to
help applications optimize directory traversal.  With usfficiently new
libc compiled against sufficiently new kernel headers, this is exported to
applications.

Several applications, including fileutils use this information.  AFS
asserts that all files are directories.  This sucks, because among
other things it causes rm -rf not to work."

src/afs/LINUX/osi_vnodeops.c

index f6d680fa4e0ab4ed2644f2401f3256f7745c0c4d..2da94cb79fcbb0c333748f6d6f0879a2bf4121a7 100644 (file)
@@ -231,7 +231,7 @@ tagain:
 
        /* filldir returns -EINVAL when the buffer is full. */
 #ifdef AFS_LINUX24_ENV
-       code = (*filldir)(dirbuf, de->name, len, offset, ino, DT_DIR);
+       code = (*filldir)(dirbuf, de->name, len, offset, ino, DT_UNKNOWN);
 #else
        code = (*filldir)(dirbuf, de->name, len, offset, ino); 
 #endif