From: braam Date: Thu, 22 Aug 2002 19:08:27 +0000 (+0000) Subject: - more fixes..things work again. X-Git-Tag: 0.5.5~81 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=d4022b763f7b5f9a32ece910cabe7e53aa469271;p=fs%2Flustre-release.git - more fixes..things work again. --- diff --git a/lustre/lov/lov_obd.c b/lustre/lov/lov_obd.c index 55d14f6..a776398 100644 --- a/lustre/lov/lov_obd.c +++ b/lustre/lov/lov_obd.c @@ -322,7 +322,7 @@ static int lov_getattr(struct lustre_handle *conn, struct obdo *oa, tmp.o_id = md->lmd_oinfo[i].loi_id; rc = obd_getattr(&lov->tgts[i].conn, &tmp, NULL); - if (!rc) { + if (rc) { CERROR("Error getattr object %Ld on %d\n", tmp.o_id, i); } @@ -361,7 +361,7 @@ static int lov_setattr(struct lustre_handle *conn, struct obdo *oa, for (i = 0; i < md->lmd_stripe_count; i++) { /* create data objects with "parent" OA */ memcpy(&tmp, oa, sizeof(tmp)); - oa->o_id = md->lmd_oinfo[i].loi_id; + tmp.o_id = md->lmd_oinfo[i].loi_id; rc = obd_setattr(&lov->tgts[i].conn, &tmp, NULL); if (!rc) { @@ -517,7 +517,7 @@ static int lov_punch(struct lustre_handle *conn, struct obdo *oa, continue; /* create data objects with "parent" OA */ memcpy(&tmp, oa, sizeof(tmp)); - oa->o_id = md->lmd_oinfo[i].loi_id; + tmp.o_id = md->lmd_oinfo[i].loi_id; rc = obd_punch(&lov->tgts[i].conn, &tmp, NULL, starti, endi);