Whamcloud - gitweb
add mount option --nosvc: continue to call server_fill_super_common
authorhuanghua <huanghua>
Wed, 7 Dec 2005 04:55:06 +0000 (04:55 +0000)
committerhuanghua <huanghua>
Wed, 7 Dec 2005 04:55:06 +0000 (04:55 +0000)
lustre/obdclass/obd_mount.c

index 9349122..cd74c9e 100644 (file)
@@ -1155,11 +1155,10 @@ static int server_fill_super(struct super_block *sb)
 
         /*Only start MGS/MGC on servers, no other services, even not
          *actually mount the filesystem. */
-        if (lsi->lsi_lmd->lmd_flags & LMD_FLG_NOSVC)
-                RETURN(0);
 
         /* Set up all obd devices for service */
-        if (IS_OST(lsi->lsi_ldd) || IS_MDT(lsi->lsi_ldd)) {
+        if (!(lmd->lmd_flags & LMD_FLG_NOSVC) && 
+                (IS_OST(lsi->lsi_ldd) || IS_MDT(lsi->lsi_ldd))) {
                 rc = server_start_targets(sb, mnt);
                 if (rc < 0) {
                         CERROR("Unable to start targets: %d\n", rc);