mirror of
https://github.com/versity/scoutfs.git
synced 2026-07-19 22:42:40 +00:00
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:
+3
-2
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user