From aa405d13574f38f42362897ca776b43b2600a486 Mon Sep 17 00:00:00 2001 From: wangdi Date: Sun, 26 Nov 2006 04:41:20 +0000 Subject: [PATCH] Branch:b_new_cmd if ost failed is detected in lfs find, only return 0 to make tranverse continue for cmd3-test18 --- lustre/utils/liblustreapi.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/lustre/utils/liblustreapi.c b/lustre/utils/liblustreapi.c index 263e126..ebe4f67 100644 --- a/lustre/utils/liblustreapi.c +++ b/lustre/utils/liblustreapi.c @@ -819,9 +819,21 @@ static int cb_find_init(char *path, DIR *parent, DIR *dir, void *data) } if (ret) { - fprintf(stderr, "%s: IOC_LOV_GETINFO on %s failed: " - "%s.\n", __FUNCTION__, path, strerror(errno)); - return -EINVAL; + if (errno == EIO) { + /* Totally for cmd3 verification test XXX. since + * test criterion required list all the objects + * affected by the failed the OST. so it return + * 0 to let traverse continue. This should be + * removed after cmd3 verfication XXX*/ + fprintf(stderr, "%s: IOC_LOV_GETINFO on %s failed: " + "%s." "obd_uuid: %s failed \n",__FUNCTION__, + path, strerror(errno), param->obduuid->uuid); + return 0; + } else { + fprintf(stderr, "%s: IOC_LOV_GETINFO on %s failed: " + "%s.\n", __FUNCTION__, path, strerror(errno)); + return -EINVAL; + } } /* Check the time on osc. */ -- 1.8.3.1