From: rread Date: Thu, 24 Apr 2003 01:37:46 +0000 (+0000) Subject: b=1075 X-Git-Tag: v1_7_100~1^368~115 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=33d86ec17b3665899b18a5ac9e88ac41b65c38e0;p=fs%2Flustre-release.git b=1075 * added --failover option to lconf and lctl cleanup * failover flag added to obd_disconnect and obd_cleanup * if failover ==1, then MDS and OST will not update the client state in last_rcvd. * Also changes to lconf to add the --group support to MDS. --- diff --git a/lustre/cobd/cache_obd.c b/lustre/cobd/cache_obd.c index 5b27a28..3fb635d 100644 --- a/lustre/cobd/cache_obd.c +++ b/lustre/cobd/cache_obd.c @@ -82,12 +82,12 @@ cobd_setup (struct obd_device *dev, obd_count len, void *buf) return (0); fail_0: - obd_disconnect (&cobd->cobd_target); + obd_disconnect (&cobd->cobd_target, 0 ); return (rc); } static int -cobd_cleanup (struct obd_device *dev, int force) +cobd_cleanup (struct obd_device *dev, int force, int failover) { struct cache_obd *cobd = &dev->u.cobd; int rc; @@ -95,11 +95,11 @@ cobd_cleanup (struct obd_device *dev, int force) if (!list_empty (&dev->obd_exports)) return (-EBUSY); - rc = obd_disconnect (&cobd->cobd_cache); + rc = obd_disconnect (&cobd->cobd_cache, failover); if (rc != 0) CERROR ("error %d disconnecting cache\n", rc); - rc = obd_disconnect (&cobd->cobd_target); + rc = obd_disconnect (&cobd->cobd_target, failover); if (rc != 0) CERROR ("error %d disconnecting target\n", rc); @@ -117,9 +117,9 @@ cobd_connect (struct lustre_handle *conn, struct obd_device *obd, } static int -cobd_disconnect (struct lustre_handle *conn) +cobd_disconnect (struct lustre_handle *conn, int failover) { - int rc = class_disconnect (conn); + int rc = class_disconnect (conn, failover); CERROR ("rc %d\n", rc); return (rc);