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:
7db658e
)
Add comment about direct access to fs-internal data struct - it works for
author
adilger
<adilger>
Tue, 12 Mar 2002 23:08:32 +0000
(23:08 +0000)
committer
adilger
<adilger>
Tue, 12 Mar 2002 23:08:32 +0000
(23:08 +0000)
ext2 and ext3 (they happen to have the same layout) but it is dangerous.
Since it falls under the "hack - to be fixed with EA support" I didn't fix.
lustre/mds/mds_reint.c
patch
|
blob
|
history
diff --git
a/lustre/mds/mds_reint.c
b/lustre/mds/mds_reint.c
index
7bf85ea
..
ee22076
100644
(file)
--- a/
lustre/mds/mds_reint.c
+++ b/
lustre/mds/mds_reint.c
@@
-85,6
+85,7
@@
static int mds_reint_setattr(struct mds_update_record *rec, struct ptlrpc_reques
*/
static inline void mds_store_objid(struct inode *inode, __u64 *id)
{
+ /* FIXME: it is only by luck that this works on ext3 */
memcpy(&inode->u.ext2_i.i_data, id, sizeof(*id));
}