summaryrefslogtreecommitdiffstats
path: root/stat.h
diff options
context:
space:
mode:
Diffstat (limited to 'stat.h')
-rw-r--r--stat.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/stat.h b/stat.h
index 95c61ec..2519ff3 100644
--- a/stat.h
+++ b/stat.h
@@ -35,10 +35,11 @@ enum bfs_stat_field {
BFS_STAT_UID = 1 << 6,
BFS_STAT_SIZE = 1 << 7,
BFS_STAT_BLOCKS = 1 << 8,
- BFS_STAT_ATIME = 1 << 9,
- BFS_STAT_BTIME = 1 << 10,
- BFS_STAT_CTIME = 1 << 11,
- BFS_STAT_MTIME = 1 << 12,
+ BFS_STAT_RDEV = 1 << 9,
+ BFS_STAT_ATIME = 1 << 10,
+ BFS_STAT_BTIME = 1 << 11,
+ BFS_STAT_CTIME = 1 << 12,
+ BFS_STAT_MTIME = 1 << 13,
};
/**
@@ -80,6 +81,8 @@ struct bfs_stat {
off_t size;
/** Number of disk blocks allocated (of size BFS_STAT_BLKSIZE). */
blkcnt_t blocks;
+ /** The device ID represented by this file. */
+ dev_t rdev;
/** Access time. */
struct timespec atime;