]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE10-fix-readdir-hint-20010423
authorSam Hartman <hartmans@mit.edu>
Mon, 23 Apr 2001 07:37:05 +0000 (07:37 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 23 Apr 2001 07:37:05 +0000 (07:37 +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