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
LU-1757 brw: added OBDO short io flag
[fs/lustre-release.git]
/
lustre
/
tests
/
createtest.c
diff --git
a/lustre/tests/createtest.c
b/lustre/tests/createtest.c
index
4406fea
..
643a14e
100644
(file)
--- a/
lustre/tests/createtest.c
+++ b/
lustre/tests/createtest.c
@@
-1,6
+1,4
@@
-/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
- * vim:expandtab:shiftwidth=8:tabstop=8:
- *
+/*
* GPL HEADER START
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* GPL HEADER START
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@
-26,7
+24,7
@@
* GPL HEADER END
*/
/*
* GPL HEADER END
*/
/*
- * Copyright
2008 Sun Microsystems, Inc. All rights reserved
+ * Copyright
(c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
/*
* Use is subject to license terms.
*/
/*
@@
-67,7
+65,7
@@
int main(int argc, char *argv[])
int mode = i | 0644;
int rc;
int mode = i | 0644;
int rc;
- s
printf(name
, "%s-mknod%07o", argv[1], mode);
+ s
nprintf(name, sizeof(name)
, "%s-mknod%07o", argv[1], mode);
rc = mknod(name, mode, 0x1234);
switch (i) {
case 0:
rc = mknod(name, mode, 0x1234);
switch (i) {
case 0:
@@
-96,8
+94,9
@@
int main(int argc, char *argv[])
if (i == S_IFCHR || i == S_IFBLK) {
if (st.st_rdev != 0x1234) {
fprintf(stderr, "%s: ERROR rdev %s: "
if (i == S_IFCHR || i == S_IFBLK) {
if (st.st_rdev != 0x1234) {
fprintf(stderr, "%s: ERROR rdev %s: "
- "%lu != 0x1234",
- argv[0], name, st.st_rdev);
+ "%llu != 0x1234",
+ argv[0], name,
+ (unsigned long long)st.st_rdev);
exit(13);
}
}
exit(13);
}
}
@@
-124,7
+123,7
@@
int main(int argc, char *argv[])
int rc;
mode = i | 0644;
int rc;
mode = i | 0644;
- s
printf(name
, "%s-creat%07o", argv[1], mode);
+ s
nprintf(name, sizeof(name)
, "%s-creat%07o", argv[1], mode);
fd = open(name, O_CREAT|O_RDONLY, mode);
if (fd < 0) {
fprintf(stderr, "%s: ERROR creat %s: %s\n",
fd = open(name, O_CREAT|O_RDONLY, mode);
if (fd < 0) {
fprintf(stderr, "%s: ERROR creat %s: %s\n",
@@
-155,7
+154,7
@@
int main(int argc, char *argv[])
struct stat st;
int rc;
struct stat st;
int rc;
- s
printf(name
, "%s-mkdir%06o", argv[1], i | 0644);
+ s
nprintf(name, sizeof(name)
, "%s-mkdir%06o", argv[1], i | 0644);
rc = mkdir(name, i | 0664);
if (rc < 0) {
fprintf(stderr, "%s: ERROR mkdir %s: %s\n",
rc = mkdir(name, i | 0664);
if (rc < 0) {
fprintf(stderr, "%s: ERROR mkdir %s: %s\n",