mirror of
https://github.com/versity/scoutfs.git
synced 2026-08-21 22:56:50 +00:00
scoutfs-utils: add total m/d blocks to statfs
Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
@@ -369,6 +369,8 @@ struct scoutfs_ioctl_statfs_more {
|
||||
__u64 fsid;
|
||||
__u64 rid;
|
||||
__u64 committed_seq;
|
||||
__u64 total_meta_blocks;
|
||||
__u64 total_data_blocks;
|
||||
} __packed;
|
||||
|
||||
#define SCOUTFS_IOC_STATFS_MORE _IOR(SCOUTFS_IOCTL_MAGIC, 10, \
|
||||
|
||||
@@ -68,6 +68,8 @@ static struct stat_more_field fs_fields[] = {
|
||||
FS_FIELD(fsid),
|
||||
FS_FIELD(rid),
|
||||
FS_FIELD(committed_seq),
|
||||
FS_FIELD(total_meta_blocks),
|
||||
FS_FIELD(total_data_blocks),
|
||||
{ NULL, }
|
||||
};
|
||||
|
||||
@@ -85,6 +87,12 @@ static void print_fs_field(void *st, size_t off)
|
||||
case FS_FIELD_OFF(committed_seq):
|
||||
printf("%llu", sfm->committed_seq);
|
||||
break;
|
||||
case FS_FIELD_OFF(total_meta_blocks):
|
||||
printf("%llu", sfm->total_meta_blocks);
|
||||
break;
|
||||
case FS_FIELD_OFF(total_data_blocks):
|
||||
printf("%llu", sfm->total_data_blocks);
|
||||
break;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user