Update dirent last pos and update first comment

The last valid pos for us is now a full u64 because we're storing
entries at an increasing counter instead of at a hahs of the entry name.

And might as well add a clarifying comment to the first pos while we're
here.

Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
Zach Brown
2017-02-10 09:56:45 -08:00
parent 00fed84c68
commit 6bcdca3cf9
+3 -2
View File
@@ -483,9 +483,10 @@ struct scoutfs_dirent {
#define SCOUTFS_DIRENT_OFF_BITS 31
#define SCOUTFS_DIRENT_OFF_MASK ((1U << SCOUTFS_DIRENT_OFF_BITS) - 1)
/* getdents returns next pos with an entry, no entry at (f_pos)~0 */
/* entries begin after . and .. */
#define SCOUTFS_DIRENT_FIRST_POS 2
#define SCOUTFS_DIRENT_LAST_POS (INT_MAX - 1)
/* getdents returns next pos with an entry, no entry at (f_pos)~0 */
#define SCOUTFS_DIRENT_LAST_POS (U64_MAX - 1)
enum {
SCOUTFS_DT_FIFO = 0,