[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: DMAPI Attribute Event and Append
>From: "Francis Qu" <francis@raidzone.com>
>Hi Dean,
>
>When appending data to the end of a file, the file modification time and
>change time are updated. But this operation cannot be caught as an attribute
>event. Do you have any idea about it?
My guess is that we're getting out early in xfs_setattr(), before the
DM_EVENT_ATTRIBUTE is generated.
At the end of xfs_setattr() you'll find a dm_send_namesp_event() and its
corresponding if-wrapper. Put a copy of that if-block earlier in
xfs_setattr(), inside the "if (mask & AT_UPDTIMES)" conditional.
Let me know if that has anything to do with what you're seeing.
Dean