From: Sam Hartman Date: Fri, 30 Mar 2001 00:12:38 +0000 (+0000) Subject: fix-readdir-hint-20010329 X-Git-Tag: openafs-stable-1_1_0~246 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=57815fd837f5e55612ef781991ec0a5f1c91f4a3;p=packages%2Fo%2Fopenafs.git fix-readdir-hint-20010329 "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." --- diff --git a/src/afs/LINUX/osi_vnodeops.c b/src/afs/LINUX/osi_vnodeops.c index f6d680fa4..2da94cb79 100644 --- a/src/afs/LINUX/osi_vnodeops.c +++ b/src/afs/LINUX/osi_vnodeops.c @@ -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