Whamcloud - gitweb
Add comment about direct access to fs-internal data struct - it works for
authoradilger <adilger>
Tue, 12 Mar 2002 23:08:32 +0000 (23:08 +0000)
committeradilger <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

index 7bf85ea..ee22076 100644 (file)
@@ -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));
 }