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:
600b41c
)
Allow specifying > 4GB sizes for truncate via strtoull().
author
adilger
<adilger>
Sun, 23 Jun 2002 03:16:32 +0000
(
03:16
+0000)
committer
adilger
<adilger>
Sun, 23 Jun 2002 03:16:32 +0000
(
03:16
+0000)
lustre/tests/truncate.c
patch
|
blob
|
history
diff --git
a/lustre/tests/truncate.c
b/lustre/tests/truncate.c
index
3c3ad94
..
f21bf9d
100644
(file)
--- a/
lustre/tests/truncate.c
+++ b/
lustre/tests/truncate.c
@@
-9,15
+9,15
@@
int main(int argc, char **argv)
unsigned long long off;
int err;
- if (argc != 3) {
- printf("usage %s file bytes\n", argv[0]);
+ if (argc != 3) {
+ printf("usage %s file bytes\n", argv[0]);
return 1;
}
- off = strtoul(argv[2], NULL, 0);
- err = truncate64(argv[1], off);
- if ( err )
{
+ off = strtoul
l
(argv[2], NULL, 0);
+ err = truncate64(argv[1], off);
+ if ( err )
printf("Error truncating %s: %s\n", argv[1], strerror(errno));
- }
+
return err;
}