diff options
author | Damien Le Moal <damien.lemoal@opensource.wdc.com> | 2022-04-12 16:25:34 +0900 |
---|---|---|
committer | Damien Le Moal <damien.lemoal@opensource.wdc.com> | 2022-04-21 08:37:51 +0900 |
commit | 9277a6d4fbd4aaa668b19b819015f87f0da53a38 (patch) | |
tree | 8cc9063a2d760878e18b7077b1f86f3a08933dcb /fs/zonefs/Makefile | |
parent | 7d6dfbe03bd3bef51ead25d129dabebd8bae1ec4 (diff) |
zonefs: Export open zone resource information through sysfs
To allow applications to easily check the current usage status of the
open zone resources of the mounted device, export through sysfs the
counter of write open sequential files s_wro_seq_files field of
struct zonefs_sb_info. The attribute is named nr_wro_seq_files and is
read only.
The maximum number of write open sequential files (zones) indicated by
the s_max_wro_seq_files field of struct zonefs_sb_info is also exported
as the read only attribute max_wro_seq_files.
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Hans Holmberg <hans.holmberg@wdc.com>
Diffstat (limited to 'fs/zonefs/Makefile')
-rw-r--r-- | fs/zonefs/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/zonefs/Makefile b/fs/zonefs/Makefile index 33c1a4f1132e..9fe54f5319f2 100644 --- a/fs/zonefs/Makefile +++ b/fs/zonefs/Makefile @@ -3,4 +3,4 @@ ccflags-y += -I$(src) obj-$(CONFIG_ZONEFS_FS) += zonefs.o -zonefs-y := super.o +zonefs-y := super.o sysfs.o |