xfs
[Top] [All Lists]

[PATCH] hack to test create + ea

To: xfs@xxxxxxxxxxx
Subject: [PATCH] hack to test create + ea
From: Niv Sardi <xaiki@xxxxxxx>
Date: Fri, 11 Jul 2008 15:38:15 +1000
Cc: Niv Sardi <xaiki@xxxxxxx>
In-reply-to: <1215754695-6958-1-git-send-email-xaiki@xxxxxxx>
References: <1215675545-2707-5-git-send-email-xaiki@xxxxxxx> <1215754695-6958-1-git-send-email-xaiki@xxxxxxx>
Sender: xfs-bounce@xxxxxxxxxxx
---
 fs/xfs/xfs_vnodeops.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/fs/xfs/xfs_vnodeops.c b/fs/xfs/xfs_vnodeops.c
index e475e37..48df96b 100644
--- a/fs/xfs/xfs_vnodeops.c
+++ b/fs/xfs/xfs_vnodeops.c
@@ -1789,6 +1789,9 @@ xfs_create(
         */
        XFS_QM_DQVOPCREATE(mp, tp, ip, udqp, gdqp);
 
+       /* hack to test create + ea */
+       xfs_attr_set_int_trans(&tp, ip, name, "TEST", strlen("TEST"), 
ATTR_ROOT);
+
        /*
         * xfs_trans_commit normally decrements the vnode ref count
         * when it unlocks the inode. Since we want to return the
-- 
1.5.6.2


<Prev in Thread] Current Thread [Next in Thread>