From: huanghua Date: Wed, 7 Dec 2005 04:55:06 +0000 (+0000) Subject: add mount option --nosvc: continue to call server_fill_super_common X-Git-Tag: v1_8_0_110~486^4~107 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=54f3389fce3fa3df95f7659ff959353aa4085340;p=fs%2Flustre-release.git add mount option --nosvc: continue to call server_fill_super_common --- 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);