diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-12-31 17:06:29 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:21 -0400 |
commit | 528b18e6d1c67ccf4ab01cdee94299f3ac61e1ec (patch) | |
tree | d049e73bbff26298b6d4d159e8f65c80308c0031 /fs/bcachefs/opts.c | |
parent | fb64f3fdac7171d1b2c62239d512b749dec9582a (diff) | |
download | linux-528b18e6d1c67ccf4ab01cdee94299f3ac61e1ec.tar.gz linux-528b18e6d1c67ccf4ab01cdee94299f3ac61e1ec.tar.bz2 linux-528b18e6d1c67ccf4ab01cdee94299f3ac61e1ec.zip |
bcachefs: bch2_journal_entry_to_text()
This adds a _to_text() pretty printer for journal entries - including
every subtype - which will shortly be used by the 'bcachefs
list_journal' subcommand.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/opts.c')
-rw-r--r-- | fs/bcachefs/opts.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/fs/bcachefs/opts.c b/fs/bcachefs/opts.c index d9ca69f2ecde..71bf26eb13d5 100644 --- a/fs/bcachefs/opts.c +++ b/fs/bcachefs/opts.c @@ -71,6 +71,16 @@ const char * const bch2_member_states[] = { NULL }; +const char * const bch2_jset_entry_types[] = { + BCH_JSET_ENTRY_TYPES() + NULL +}; + +const char * const bch2_fs_usage_types[] = { + BCH_FS_USAGE_TYPES() + NULL +}; + #undef x const char * const bch2_d_types[BCH_DT_MAX] = { |