xfs
[Top] [All Lists]

Re: DMAPI dm_set_region

To: "Francis Qu" <francis@xxxxxxxxxxxx>
Subject: Re: DMAPI dm_set_region
From: Dean Roehrich <roehrich@xxxxxxx>
Date: Thu, 21 Mar 2002 14:03:07 -0600
Cc: linux-xfs@xxxxxxxxxxx
Sender: owner-linux-xfs@xxxxxxxxxxx
>From:  "Francis Qu" <francis@xxxxxxxxxxxx>
>When DMAPI application tries to do dm_set_region on a file which is opened for
> write, both DMAPI application and the user application doing the write operat
>ion are blocked. The DMAPI application won't come back from dm_set_region util
>l the user cancels the write job.

What are you using to hold the file open?  It is just an open(O_RDWR), or are
you also currently in a write(2) or do you currently have it mmaped?  If
mmapped, is it private or shared?

Can you give me a small C test program to hold the file open in a way which
allows this behavior to be seen?

> Is it the way DMAPI works?

Doesn't sound like desirable behavior :)

Dean


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