From 54f3389fce3fa3df95f7659ff959353aa4085340 Mon Sep 17 00:00:00 2001 From: huanghua Date: Wed, 7 Dec 2005 04:55:06 +0000 Subject: [PATCH] add mount option --nosvc: continue to call server_fill_super_common --- lustre/obdclass/obd_mount.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lustre/obdclass/obd_mount.c b/lustre/obdclass/obd_mount.c index 9349122..cd74c9e 100644 --- a/lustre/obdclass/obd_mount.c +++ b/lustre/obdclass/obd_mount.c @@ -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); -- 1.8.3.1