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:
b0b73aa
)
pack lustre id to oss in setattr on open
author
niu
<niu>
Fri, 19 Aug 2005 08:50:23 +0000
(08:50 +0000)
committer
niu
<niu>
Fri, 19 Aug 2005 08:50:23 +0000
(08:50 +0000)
lustre/mds/mds_open.c
patch
|
blob
|
history
diff --git
a/lustre/mds/mds_open.c
b/lustre/mds/mds_open.c
index
a26d148
..
e854a45
100644
(file)
--- a/
lustre/mds/mds_open.c
+++ b/
lustre/mds/mds_open.c
@@
-441,6
+441,10
@@
mds_create_objects(struct obd_device *obd, struct ptlrpc_request *req,
obdo_from_inode(oa, inode, OBD_MD_FLTYPE | OBD_MD_FLATIME |
OBD_MD_FLMTIME | OBD_MD_FLCTIME | OBD_MD_FLSIZE);
+ /* pack lustre id to oss */
+ *(obdo_id(oa)) = body->id1;
+ oa->o_valid |= OBD_MD_FLIFID;
+
rc = obd_setattr(mds->mds_dt_exp, oa, lsm, &oti, NULL);
if (rc) {
CERROR("error setting attrs for inode %lu: rc %d\n",