diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-07-13 16:31:40 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2021-07-14 20:31:38 -0400 |
commit | 86bd5c622c93509e204b6fb5de6910879fc87a70 (patch) | |
tree | 5fea647ae71ccfe276da6de85d70e6b70c1af45a /libbcachefs/sysfs.c | |
parent | 700d013b5280b72a1fb3830d8f70ecce5decb0ab (diff) |
Update bcachefs sources to 787de128a5 bcachefs: Improvements to fsck check_dirents()
Diffstat (limited to 'libbcachefs/sysfs.c')
-rw-r--r-- | libbcachefs/sysfs.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libbcachefs/sysfs.c b/libbcachefs/sysfs.c index 84a7acb0..9b1ffbf9 100644 --- a/libbcachefs/sysfs.c +++ b/libbcachefs/sysfs.c @@ -171,6 +171,7 @@ read_attribute(btree_cache); read_attribute(btree_key_cache); read_attribute(btree_transactions); read_attribute(stripes_heap); +read_attribute(open_buckets); read_attribute(internal_uuid); @@ -409,6 +410,11 @@ SHOW(bch2_fs) return out.pos - buf; } + if (attr == &sysfs_open_buckets) { + bch2_open_buckets_to_text(&out, c); + return out.pos - buf; + } + if (attr == &sysfs_compression_stats) { bch2_compression_stats_to_text(&out, c); return out.pos - buf; @@ -567,6 +573,7 @@ struct attribute *bch2_fs_internal_files[] = { &sysfs_btree_key_cache, &sysfs_btree_transactions, &sysfs_stripes_heap, + &sysfs_open_buckets, &sysfs_read_realloc_races, &sysfs_extent_migrate_done, |