summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-09-10 13:51:57 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:18:13 -0500
commit3dc237eb28e9254eabf9a1eab08f858ca4830fbe (patch)
tree30588914c1bef5e9935319ff45086c1c43a25a43
parent06bc06cf08e0d36a7ca4a01beed5909920cd69d6 (diff)
downloadsamba-3dc237eb28e9254eabf9a1eab08f858ca4830fbe.tar.gz
samba-3dc237eb28e9254eabf9a1eab08f858ca4830fbe.tar.bz2
samba-3dc237eb28e9254eabf9a1eab08f858ca4830fbe.zip
r18342: a bit more explanation of these strange values
(This used to be commit e191f84f24e017d90c49d779a04a5306d96848a5)
-rw-r--r--source4/ntvfs/posix/pvfs_dirlist.c4
1 files changed, 4 insertions, 0 deletions
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