diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2018-11-01 21:46:50 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2018-11-01 21:46:50 -0400 |
commit | 8c3b9aaaab11be9d0fe24a72ebb16e171ca22125 (patch) | |
tree | 1eceebe2763cec5a010a193d48b50edef5fb78a2 /stat.h | |
parent | b74261ac825ec2b9c02d73e36f7b44b64c9d184c (diff) | |
download | bfs-8c3b9aaaab11be9d0fe24a72ebb16e171ca22125.tar.xz |
Print device major/minor numbers for -ls
Diffstat (limited to 'stat.h')
-rw-r--r-- | stat.h | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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; |