Commit 50671786 authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet

bcachefs: Specify filesystem options

We've got three types of options now - filesystem, device and inode, and
a given option may belong to more than one of those types.

This patch changes the options to specify explicitly when they're a
filesystem option - in the future we'll probably be adding more device
options.
Signed-off-by: default avatarKent Overstreet <kent.overstreet@gmail.com>
parent 47b15c57
This diff is collapsed.
......@@ -685,7 +685,7 @@ int bch2_opts_create_sysfs_files(struct kobject *kobj)
for (i = bch2_opt_table;
i < bch2_opt_table + bch2_opts_nr;
i++) {
if (!(i->mode & (OPT_FORMAT|OPT_MOUNT|OPT_RUNTIME)))
if (!(i->mode & OPT_FS))
continue;
ret = sysfs_create_file(kobj, &i->attr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment