]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - libbcachefs/sysfs.h
check if fs is mounted before running fsck
[bcachefs-tools-debian] / libbcachefs / sysfs.h
index a4825056f01ea169111afe853fb6414cbffaf519..1ba759fd6e8cfbcfe042b1d643aafb56feebfba5 100644 (file)
@@ -20,6 +20,8 @@ extern struct sysfs_ops bch2_fs_opts_dir_sysfs_ops;
 extern struct sysfs_ops bch2_fs_time_stats_sysfs_ops;
 extern struct sysfs_ops bch2_dev_sysfs_ops;
 
+int bch2_opts_create_sysfs_files(struct kobject *);
+
 #else
 
 static struct attribute *bch2_fs_files[] = {};
@@ -34,6 +36,8 @@ static const struct sysfs_ops bch2_fs_opts_dir_sysfs_ops;
 static const struct sysfs_ops bch2_fs_time_stats_sysfs_ops;
 static const struct sysfs_ops bch2_dev_sysfs_ops;
 
+static inline int bch2_opts_create_sysfs_files(struct kobject *kobj) { return 0; }
+
 #endif /* NO_BCACHEFS_SYSFS */
 
 #endif  /* _BCACHEFS_SYSFS_H_ */