Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29eac22
)
Branch: b1_4
author
adilger
<adilger>
Sat, 10 Sep 2005 09:09:48 +0000
(09:09 +0000)
committer
adilger
<adilger>
Sat, 10 Sep 2005 09:09:48 +0000
(09:09 +0000)
Don't allocate zero'd memory so we write non-zero'd data to disk in test 23.
b=7279
lustre/liblustre/tests/sanity.c
patch
|
blob
|
history
diff --git
a/lustre/liblustre/tests/sanity.c
b/lustre/liblustre/tests/sanity.c
index
6f496e8
..
7a569cb
100644
(file)
--- a/
lustre/liblustre/tests/sanity.c
+++ b/
lustre/liblustre/tests/sanity.c
@@
-812,6
+812,8
@@
static int pages_io(int xfer, loff_t pos)
snprintf(path, MAX_PATH_LENGTH, "%s/test_t50", lustre_path);
+ memset(buf_alloc, 0, buf_size);
+
/* create sample data */
for (i = 0, buf = buf_alloc; i < _npages; i++) {
for (j = 0; j < PAGE_SIZE/sizeof(int); j++, buf++) {
@@
-1006,7
+1008,7
@@
int main(int argc, char * const argv[])
__liblustre_setup_();
buf_size = _npages * PAGE_SIZE;
- buf_alloc =
calloc(_npages, PAGE_SIZE
);
+ buf_alloc =
malloc(buf_size
);
for (test = testlist; test->test != NULL; test++) {
int run = 1, i;