summaryrefslogtreecommitdiffstats
path: root/stat.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2018-11-01 21:46:50 -0400
committerTavian Barnes <tavianator@tavianator.com>2018-11-01 21:46:50 -0400
commit8c3b9aaaab11be9d0fe24a72ebb16e171ca22125 (patch)
tree1eceebe2763cec5a010a193d48b50edef5fb78a2 /stat.h
parentb74261ac825ec2b9c02d73e36f7b44b64c9d184c (diff)
downloadbfs-8c3b9aaaab11be9d0fe24a72ebb16e171ca22125.tar.xz
Print device major/minor numbers for -ls
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;