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:
c4eda80
)
Branch b_release_1_4_6
author
adilger
<adilger>
Wed, 25 Jan 2006 12:01:33 +0000
(12:01 +0000)
committer
adilger
<adilger>
Wed, 25 Jan 2006 12:01:33 +0000
(12:01 +0000)
Check return value from fstat(). (COV:629)
b=10098
lustre/tests/fsx.c
patch
|
blob
|
history
diff --git
a/lustre/tests/fsx.c
b/lustre/tests/fsx.c
index
a0f4c39
..
6cf43ee
100644
(file)
--- a/
lustre/tests/fsx.c
+++ b/
lustre/tests/fsx.c
@@
-531,7
+531,10
@@
check_trunc_hack(void)
ftruncate(fd, (off_t)0);
ftruncate(fd, (off_t)100000);
- fstat(fd, &statbuf);
+ if (fstat(fd, &statbuf)) {
+ prterr("trunc_hack: fstat");
+ statbuf.st_size = -1;
+ }
if (statbuf.st_size != (off_t)100000) {
prt("no extend on truncate! not posix!\n");
exit(130);