-int ldiskfs_write_ldd(struct mkfs_opts *mop);
-int ldiskfs_read_ldd(char *dev, struct lustre_disk_data *ldd);
-int ldiskfs_is_lustre(char *dev, unsigned *mount_type);
-int ldiskfs_make_lustre(struct mkfs_opts *mop);
-int ldiskfs_prepare_lustre(struct mkfs_opts *mop,
- char *default_mountopts, int default_len,
- char *always_mountopts, int always_len);
-int ldiskfs_tune_lustre(char *dev, struct mount_opts *mop);
-int ldiskfs_label_lustre(struct mount_opts *mop);
-int ldiskfs_enable_quota(struct mkfs_opts *mop);
-int ldiskfs_init(void);
-void ldiskfs_fini(void);
+struct module_backfs_ops {
+ int (*init)(void);
+ void (*fini)(void);
+ int (*read_ldd)(char *ds, struct lustre_disk_data *ldd);
+ int (*write_ldd)(struct mkfs_opts *mop);
+ int (*erase_ldd)(struct mkfs_opts *mop, char *param);
+ void (*print_ldd_params)(struct mkfs_opts *mop);
+ int (*is_lustre)(char *dev, enum ldd_mount_type *mount_type);
+ int (*make_lustre)(struct mkfs_opts *mop);
+ int (*prepare_lustre)(struct mkfs_opts *mop,
+ char *wanted_mountopts, size_t len);
+ int (*fix_mountopts)(struct mkfs_opts *mop,
+ char *mountopts, size_t len);
+ int (*tune_lustre)(char *dev, struct mount_opts *mop);
+ int (*label_lustre)(struct mount_opts *mop);
+ int (*enable_quota)(struct mkfs_opts *mop);
+ int (*rename_fsname)(struct mkfs_opts *mop, const char *oldname);
+ void *dl_handle;
+};