Whamcloud - gitweb
LU-9123 test: correct setstripe options in layout test 71/25471/4
authorJohn L. Hammond <john.hammond@intel.com>
Wed, 15 Feb 2017 16:07:11 +0000 (10:07 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 18 Feb 2017 23:51:37 +0000 (23:51 +0000)
In llapi_layout_test.c use '-S' instead of the now removed '-s'
option to lfs setstripe

Test-Parameters: trivial

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I74f020f29b1a274e6fe63aac29685b88e541e649
Reviewed-on: https://review.whamcloud.com/25471
Tested-by: Jenkins
Reviewed-by: James Nunez <james.a.nunez@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/tests/llapi_layout_test.c

index 3d6311e..5989ce1 100644 (file)
@@ -242,7 +242,7 @@ void test4(void)
        rc = unlink(path);
        ASSERTF(rc == 0 || errno == ENOENT, "errno = %d", errno);
 
-       snprintf(cmd, sizeof(cmd), "%s setstripe %s %s -c %d -s %d %s", lfs,
+       snprintf(cmd, sizeof(cmd), "%s setstripe %s %s -c %d -S %d %s", lfs,
                 strlen(poolname) > 0 ? "-p" : "", poolname, T4_STRIPE_COUNT,
                 T4_STRIPE_SIZE, path);
        rc = system(cmd);
@@ -1085,7 +1085,7 @@ void test26(void)
        if (lfs == NULL)
                lfs = "/usr/bin/lfs";
 
-       snprintf(cmd, sizeof(cmd), "%s setstripe -s %d %s", lfs,
+       snprintf(cmd, sizeof(cmd), "%s setstripe -S %d %s", lfs,
                 T26_STRIPE_SIZE, dir);
        rc = system(cmd);
        ASSERTF(rc == 0, "system(%s): exit status %d", cmd, WEXITSTATUS(rc));
@@ -1136,7 +1136,7 @@ void test27(void)
        if (lfs == NULL)
                lfs = "/usr/bin/lfs";
 
-       snprintf(cmd, sizeof(cmd), "%s setstripe -s %d %s", lfs,
+       snprintf(cmd, sizeof(cmd), "%s setstripe -S %d %s", lfs,
                 T27_STRIPE_SIZE, dirpath);
        rc = system(cmd);
        ASSERTF(rc == 0, "system(%s): exit status %d", cmd, WEXITSTATUS(rc));