projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
WIP Changes to tests
[yaffs2.git]
/
linux-tests
/
verifybigsparse.c
diff --git
a/linux-tests/verifybigsparse.c
b/linux-tests/verifybigsparse.c
index 84ff53b690bec4ebd10f20cc1b36902c4221f3d7..7a13dbcd8f12a7b3b514bf092115795ce276635b 100644
(file)
--- a/
linux-tests/verifybigsparse.c
+++ b/
linux-tests/verifybigsparse.c
@@
-8,8
+8,8
@@
#include <string.h>
#include <string.h>
-#define N_WRITES
2000
-#define STRIDE 2000
+#define N_WRITES
16
+#define STRIDE 2
50
000
#define BUFFER_N 1100
unsigned xxbuffer[BUFFER_N];
#define BUFFER_N 1100
unsigned xxbuffer[BUFFER_N];
@@
-43,7
+43,7
@@
void verify_big_sparse_file(int h)
check_type = "buffer";
set_buffer(i/STRIDE);
}
check_type = "buffer";
set_buffer(i/STRIDE);
}
- printf("%s checking %lld\n", check_type, offset);
+
//
printf("%s checking %lld\n", check_type, offset);
pos = lseek64(h, offset, SEEK_SET);
if(pos != offset) {
printf("mismatched seek pos %lld offset %lld\n",
pos = lseek64(h, offset, SEEK_SET);
if(pos != offset) {
printf("mismatched seek pos %lld offset %lld\n",
@@
-96,7
+96,7
@@
int main(int argc, char *argv[])
exit(1);
}
exit(1);
}
- handle = open(argv[1], O_
CREAT | O_RDWR | O_TRUNC, S_IREAD | S_IWRITE
);
+ handle = open(argv[1], O_
RDONLY
);
if(handle < 0) {
perror("opening file");
if(handle < 0) {
perror("opening file");