xfs
[Top] [All Lists]

Re: DMAPI Managed Region

To: "Francis Qu" <francis@xxxxxxxxxxxx>
Subject: Re: DMAPI Managed Region
From: Dean Roehrich <roehrich@xxxxxxx>
Date: Tue, 26 Mar 2002 13:11:59 -0600
Cc: "Linux XFS" <linux-xfs@xxxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
>From:  "Francis Qu" <francis@xxxxxxxxxxxx>
>I set DM_REGION_WRITE | DM_REGION_TRUNC on a file. When I use vi to edit the
>file, the write event is not generated as expected. The program is still
>waiting and nothing happens. But the managed regions are cleared. Any ideas
>on what happened in XFS?

I think vi doesn't work that way.  It doesn't write to that same file, it
replaces the file.  Compare the before-and-after inode numbers, or the
before-and-after filehandles.  I bet you'll get a destroy event, if you
register for it.

(still haven't looked at your set_region problem)

Dean


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