using READDIRPLUS3 we get some extra fields for the direentry structure for free...
[deb_libnfs.git] / include / libnfs.h
index 0676efa787c58e83aba834986be3363919b0e3b2..3a8304a00f9187f782d951d1fa0ae9996d2c9e0e 100644 (file)
@@ -582,6 +582,14 @@ struct nfsdirent  {
        struct nfsdirent *next;
        char *name;
        uint64_t inode;
+
+       /* some extra fields we get for free through the READDIRPLUS3 call. You need libnfs-raw-nfs.h for these */
+       uint32_t type; /* NF3REG, NF3DIR, NF3BLK, ... */
+       uint32_t mode;
+       uint64_t size;
+       struct timeval atime;
+       struct timeval mtime;
+       struct timeval ctime;
 };
 /*
  * nfs_readdir() never blocks, so no special sync/async versions are available