From 16f27db52c1f599592afab1837f78975a5d834b0 Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 23 Jun 2006 18:22:00 +0000 Subject: [PATCH] Branch b1_5 b=8007 some better comments --- lustre/lov/lov_obd.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lustre/lov/lov_obd.c b/lustre/lov/lov_obd.c index 2076e3f..b54a431 100644 --- a/lustre/lov/lov_obd.c +++ b/lustre/lov/lov_obd.c @@ -202,6 +202,8 @@ static int lov_connect(struct lustre_handle *conn, struct obd_device *obd, int rc; ENTRY; + /* Store the connect data for connecting each of the oscs. + If the data was NULL, remember that as well. */ lov->lov_ocd.ocd_connect_flags = OBD_CONNECT_EMPTY; if (data) lov->lov_ocd = *data; @@ -496,7 +498,8 @@ static int lov_add_target(struct obd_device *obd, struct obd_uuid *uuidp, } if (lov->lov_ocd.ocd_connect_flags != OBD_CONNECT_EMPTY) { - /* Keep the original connect flags pristine */ + /* Make a copy of the lov connect data for the osc_connect, + which may modify the flags. */ OBD_ALLOC_PTR(ocd); if (!ocd) RETURN(-ENOMEM); -- 1.8.3.1