add lustre
authorChristos Zoulas <christos@zoulas.com>
Thu, 15 Dec 2011 21:44:07 +0000 (16:44 -0500)
committerChristos Zoulas <christos@zoulas.com>
Thu, 15 Dec 2011 21:44:07 +0000 (16:44 -0500)
conf/mount/mount_linux.c

index 8870d2f23cca08e8926fa432110fada5c21494ad..63eeddb679605b5d2459167b6e3353f73e26d871 100644 (file)
@@ -205,6 +205,12 @@ parse_opts(char *type, const char *optstr, int *flags, char **xopts, int *noauto
       goto do_opts;
     }
 #endif /* MOUNT_TYPE_LOFS */
+#ifdef MOUNT_TYPE_LUSTRE
+    if (STREQ(type, MOUNT_TYPE_LUSTRE)) {
+      dev_opts = null_opts;
+      goto do_opts;
+    }
+#endif /* MOUNT_TYPE_LUSTRE */
     plog(XLOG_FATAL, "linux mount: unknown fs-type: %s\n", type);
     XFREE(xoptstr);
     XFREE(*xopts);
@@ -486,6 +492,15 @@ mount_linux_nonfs(MTYPE_TYPE type, mntent_t *mnt, int flags, caddr_t data)
   } else /* end of "if type is LOFS" */
 #endif /* MOUNT_TYPE_LOFS */
 
+#ifdef MOUNT_TYPE_LUSTRE
+  if (STREQ(type, MOUNT_TYPE_LUSTRE)) {
+    if (*extra_opts)
+      extra_opts = str3cat(extra_opts, ",device=", mnt->mnt_fsname, "");
+    else
+      extra_opts = str3cat(extra_opts, "device=", mnt->mnt_fsname, "");
+  }
+#endif /* MOUNT_TYPE_LOFS */
+
   {
 #ifdef HAVE_LOOP_DEVICE
     /*