Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
b=22766 cascading_rw: take lmm_stripe_count returned by ioctl(LL_IOC_LOV_SETSTRIPE)
[fs/lustre-release.git]
/
lustre
/
tests
/
mpi
/
cascading_rw.c
diff --git
a/lustre/tests/mpi/cascading_rw.c
b/lustre/tests/mpi/cascading_rw.c
index
fe91c20
..
08b48e8
100644
(file)
--- a/
lustre/tests/mpi/cascading_rw.c
+++ b/
lustre/tests/mpi/cascading_rw.c
@@
-68,7
+68,6
@@
char *testdir = NULL;
void rw_file(char *name, long stride, unsigned int seed)
{
char filename[MAX_FILENAME_LEN];
void rw_file(char *name, long stride, unsigned int seed)
{
char filename[MAX_FILENAME_LEN];
- char path[MAX_FILENAME_LEN];
char errmsg[MAX_FILENAME_LEN+20];
char *buf, *o_buf;
struct lov_user_md lum = {0};
char errmsg[MAX_FILENAME_LEN+20];
char *buf, *o_buf;
struct lov_user_md lum = {0};
@@
-103,13
+102,6
@@
void rw_file(char *name, long stride, unsigned int seed)
sprintf(errmsg, "close of file %s", filename);
FAIL(errmsg);
}
sprintf(errmsg, "close of file %s", filename);
FAIL(errmsg);
}
-
- strncpy(path, filename, MAX_FILENAME_LEN);
- rc = llapi_file_get_stripe(path, &lum);
- if (rc == -1) {
- sprintf(errmsg, "get stripe of file %s", filename);
- FAIL(errmsg);
- }
}
MPI_Barrier(MPI_COMM_WORLD);
}
MPI_Barrier(MPI_COMM_WORLD);