Whamcloud - gitweb
Branch b1_8
authorbwzhou <bwzhou>
Tue, 1 Jul 2008 08:39:33 +0000 (08:39 +0000)
committerbwzhou <bwzhou>
Tue, 1 Jul 2008 08:39:33 +0000 (08:39 +0000)
b=11990
r=johann, bobijam

zeroed param upon every mount point

lustre/utils/lfs.c

index 4e904b1..b8732c7 100644 (file)
@@ -736,7 +736,6 @@ static int lfs_osts(int argc, char **argv)
 {
         FILE *fp;
         struct mntent *mnt = NULL;
-        struct obd_uuid *obduuid = NULL;
         struct find_param param;
         int rc=0;
 
@@ -750,10 +749,8 @@ static int lfs_osts(int argc, char **argv)
                         strerror (errno));
         } else {
                 mnt = getmntent(fp);
-                memset(&param, 0, sizeof(param));
-                param.obduuid = obduuid;
                 while (feof(fp) == 0 && ferror(fp) ==0) {
-                        fprintf(stderr, "%s:\n", mnt->mnt_dir);
+                        memset(&param, 0, sizeof(param));
                         if (llapi_is_lustre_mnt(mnt)) {
                                 rc = llapi_getstripe(mnt->mnt_dir, &param);
                                 if (rc)