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:
2c7bcb6
)
- put fill fid in a punch request
author
alex
<alex>
Tue, 9 Aug 2005 10:55:17 +0000
(10:55 +0000)
committer
alex
<alex>
Tue, 9 Aug 2005 10:55:17 +0000
(10:55 +0000)
lustre/llite/rw.c
patch
|
blob
|
history
diff --git
a/lustre/llite/rw.c
b/lustre/llite/rw.c
index
7535447
..
8375fc6
100644
(file)
--- a/
lustre/llite/rw.c
+++ b/
lustre/llite/rw.c
@@
-156,9
+156,10
@@
void ll_truncate(struct inode *inode)
oa->o_id = lsm->lsm_object_id;
oa->o_gr = lsm->lsm_object_gr;
oa->o_id = lsm->lsm_object_id;
oa->o_gr = lsm->lsm_object_gr;
- oa->o_valid = OBD_MD_FLID | OBD_MD_FLGROUP;
+ oa->o_valid = OBD_MD_FLID | OBD_MD_FLGROUP
| OBD_MD_FLIFID
;
obdo_from_inode(oa, inode, OBD_MD_FLTYPE | OBD_MD_FLMODE |
OBD_MD_FLATIME | OBD_MD_FLMTIME | OBD_MD_FLCTIME);
obdo_from_inode(oa, inode, OBD_MD_FLTYPE | OBD_MD_FLMODE |
OBD_MD_FLATIME | OBD_MD_FLMTIME | OBD_MD_FLCTIME);
+ memcpy(obdo_id(oa), &lli->lli_id, sizeof(lli->lli_id));
obd_adjust_kms(ll_i2dtexp(inode), lsm, inode->i_size, 1);
obd_adjust_kms(ll_i2dtexp(inode), lsm, inode->i_size, 1);