svn commit: samba r18342 - in
branches/SAMBA_4_0/source/ntvfs/posix: .
tridge at samba.org
tridge at samba.org
Sun Sep 10 13:51:58 GMT 2006
Author: tridge
Date: 2006-09-10 13:51:57 +0000 (Sun, 10 Sep 2006)
New Revision: 18342
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18342
Log:
a bit more explanation of these strange values
Modified:
branches/SAMBA_4_0/source/ntvfs/posix/pvfs_dirlist.c
Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_dirlist.c
===================================================================
--- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_dirlist.c 2006-09-10 13:48:42 UTC (rev 18341)
+++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_dirlist.c 2006-09-10 13:51:57 UTC (rev 18342)
@@ -49,6 +49,10 @@
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
More information about the samba-cvs
mailing list