diff options
-rw-r--r-- | include/sqfs/dir_entry.h | 5 | ||||
-rw-r--r-- | lib/sqfs/src/io/dir_unix.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/sqfs/dir_entry.h b/include/sqfs/dir_entry.h index cb13f4f..4db13cf 100644 --- a/include/sqfs/dir_entry.h +++ b/include/sqfs/dir_entry.h @@ -69,6 +69,11 @@ struct sqfs_dir_entry_t { sqfs_u64 rdev; /** + * @brief Device and filesystem specific inode number. + */ + sqfs_u64 inode; + + /** * @brief ID of the user that owns the entry. */ sqfs_u64 uid; diff --git a/lib/sqfs/src/io/dir_unix.c b/lib/sqfs/src/io/dir_unix.c index 83127ec..efc9a2a 100644 --- a/lib/sqfs/src/io/dir_unix.c +++ b/lib/sqfs/src/io/dir_unix.c @@ -114,6 +114,7 @@ static int dir_next(sqfs_dir_iterator_t *base, sqfs_dir_entry_t **out) (*out)->rdev = it->sb.st_rdev; (*out)->uid = it->sb.st_uid; (*out)->gid = it->sb.st_gid; + (*out)->inode = it->sb.st_ino; if (S_ISREG(it->sb.st_mode)) (*out)->size = it->sb.st_size; |