* GPL HEADER END
*/
/*
- * Copyright 2008 Sun Microsystems, Inc. All rights reserved
+ * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
/*
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};
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);
int main(int argc, char *argv[])
{
- int i, iterations = 16;
- char c;
+ int i, iterations = 16, c;
long stride = -1;
unsigned int seed = 0;