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

zeroed param upon every mount point

lustre/utils/lfs.c

index 845da41..6d51e85 100644 (file)
@@ -747,7 +747,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;
 
@@ -761,9 +760,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) {
+                        memset(&param, 0, sizeof(param));
                         if (llapi_is_lustre_mnt(mnt)) {
                                 rc = llapi_getstripe(mnt->mnt_dir, &param);
                                 if (rc)