From 3dc237eb28e9254eabf9a1eab08f858ca4830fbe Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 10 Sep 2006 13:51:57 +0000 Subject: r18342: a bit more explanation of these strange values (This used to be commit e191f84f24e017d90c49d779a04a5306d96848a5) --- source4/ntvfs/posix/pvfs_dirlist.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source4') diff --git a/source4/ntvfs/posix/pvfs_dirlist.c b/source4/ntvfs/posix/pvfs_dirlist.c index c29f70209f..7efc091c42 100644 --- a/source4/ntvfs/posix/pvfs_dirlist.c +++ b/source4/ntvfs/posix/pvfs_dirlist.c @@ -49,6 +49,10 @@ struct pvfs_dir { interaction with the OS value for 'end of directory'. On IRIX telldir() returns 0xFFFFFFFF at the end of a directory, and that caused an infinite loop with the original values of 0,1,2 + + On XFS on linux telldir returns 0x7FFFFFFF at the end of a + directory. Thus the change from 0x80000002, as otherwise + 0x7FFFFFFF+0x80000002==1==DIR_OFFSET_DOTDOT */ #define DIR_OFFSET_DOT 0 #define DIR_OFFSET_DOTDOT 1 -- cgit