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:
f76e4ef
)
be carefull about short read.
author
shadow
<shadow>
Tue, 16 Sep 2008 12:53:22 +0000
(12:53 +0000)
committer
shadow
<shadow>
Tue, 16 Sep 2008 12:53:22 +0000
(12:53 +0000)
Branch b1_6
b=16679
i=tappro
i=umka
lustre/obdclass/llog_lvfs.c
patch
|
blob
|
history
diff --git
a/lustre/obdclass/llog_lvfs.c
b/lustre/obdclass/llog_lvfs.c
index
dfcf144
..
4627507
100644
(file)
--- a/
lustre/obdclass/llog_lvfs.c
+++ b/
lustre/obdclass/llog_lvfs.c
@@
-795,11
+795,10
@@
int llog_get_cat_list(struct obd_device *obd, struct obd_device *disk_obd,
CDEBUG(D_CONFIG, "cat list: disk size=%d, read=%d\n",
(int)i_size_read(file->f_dentry->d_inode), size);
+ memset(idarray, 0, size);
/* read for new ost index or for empty file */
- if (i_size_read(file->f_dentry->d_inode) < off) {
- memset(idarray, 0, size);
+ if (i_size_read(file->f_dentry->d_inode) < off)
GOTO(out, rc = 0);
- }
rc = fsfilt_read_record(disk_obd, file, idarray, size, &off);
if (rc) {