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:
ba69671
)
Branch b1_6
author
vitaly
<vitaly>
Wed, 22 Apr 2009 14:08:09 +0000
(14:08 +0000)
committer
vitaly
<vitaly>
Wed, 22 Apr 2009 14:08:09 +0000
(14:08 +0000)
b=<bug>
i=deen
i=vs
lctl dk should zero the file before writing the debug log into,
otherwise, if a file was long enough and is not completely overwritten
we get a mix of several logs.
lnet/utils/debug.c
patch
|
blob
|
history
diff --git
a/lnet/utils/debug.c
b/lnet/utils/debug.c
index
e0128a3
..
973cac0
100644
(file)
--- a/
lnet/utils/debug.c
+++ b/
lnet/utils/debug.c
@@
-631,7
+631,7
@@
int jt_dbg_debug_kernel(int argc, char **argv)
return 1;
}
if (argc > 1) {
- fdout = open(argv[1], O_WRONLY | O_CREAT);
+ fdout = open(argv[1], O_WRONLY | O_CREAT
| O_TRUNC
);
if (fdout < 0) {
fprintf(stderr, "fopen(%s) failed: %s\n", argv[1],
strerror(errno));