Whamcloud - gitweb
LU-8314 utils: revert lfs_getdirstripe to non-recursive mode
[fs/lustre-release.git] / lustre / utils / lfs.c
index 3c5aefa..6969373 100644 (file)
@@ -1775,7 +1775,6 @@ static int lfs_getstripe_internal(int argc, char **argv,
        };
        int c, rc;
 
-       param->fp_max_depth = 1;
        while ((c = getopt_long(argc, argv, "cdDghiLMoO:pqrRsSv",
                                long_opts, NULL)) != -1) {
                switch (c) {
@@ -1936,6 +1935,8 @@ static int lfs_tgts(int argc, char **argv)
 static int lfs_getstripe(int argc, char **argv)
 {
        struct find_param param = { 0 };
+
+       param.fp_max_depth = 1;
        return lfs_getstripe_internal(argc, argv, &param);
 }