Whamcloud - gitweb
LU-1581 utils: introduce osd_is_lustre() wrapper
[fs/lustre-release.git] / lustre / utils / mount_utils.h
index 01a7795..cd74d89 100644 (file)
@@ -97,4 +97,15 @@ int loop_format(struct mkfs_opts *mop);
 int loop_setup(struct mkfs_opts *mop);
 int loop_cleanup(struct mkfs_opts *mop);
 
+/* generic target support */
+int osd_is_lustre(char *dev, unsigned *mount_type);
+int osd_prepare_lustre(struct mkfs_opts *mop,
+                      char *default_mountopts, int default_len,
+                      char *always_mountopts, int always_len);
+
+int ldiskfs_is_lustre(char *dev, unsigned *mount_type);
+int ldiskfs_prepare_lustre(struct mkfs_opts *mop,
+                          char *default_mountopts, int default_len,
+                          char *always_mountopts, int always_len);
+
 #endif