From c42df00cd7e237d18077f970ffbe1ef0e57d554c Mon Sep 17 00:00:00 2001 From: adilger Date: Tue, 12 Mar 2002 23:08:32 +0000 Subject: [PATCH] Add comment about direct access to fs-internal data struct - it works for 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/lustre/mds/mds_reint.c b/lustre/mds/mds_reint.c index 7bf85ea..ee22076 100644 --- 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)); } -- 1.8.3.1