Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id g0LN66417093 for linux-xfs-outgoing; Mon, 21 Jan 2002 15:06:06 -0800 Received: from e31.co.us.ibm.com (e31.co.us.ibm.com [32.97.110.129]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id g0LN61P17071 for ; Mon, 21 Jan 2002 15:06:01 -0800 Received: from westrelay01.boulder.ibm.com (westrelay01.boulder.ibm.com [9.99.140.22]) by e31.co.us.ibm.com (8.9.3/8.9.3) with ESMTP id RAA21090 for ; Mon, 21 Jan 2002 17:02:56 -0500 Received: from d03nm800.boulder.ibm.com (avpilot.boulder.ibm.com [9.17.188.135]) by westrelay01.boulder.ibm.com (8.11.1m3/NCO v5.01) with ESMTP id g0LM5wO38754 for ; Mon, 21 Jan 2002 15:05:58 -0700 Subject: DMAPI and dm_set_return_on_destroy To: linux-xfs@oss.sgi.com X-Mailer: Lotus Notes Release 5.0.7 March 21, 2001 Message-ID: From: "James A Goodwin" Date: Mon, 21 Jan 2002 16:05:55 -0600 X-MIMETrack: Serialize by Router on D03NM800/03/M/IBM(Release 5.0.9 |November 16, 2001) at 01/21/2002 03:05:57 PM MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii Sender: owner-linux-xfs@oss.sgi.com Precedence: bulk Status: O Content-Length: 1209 Lines: 31 Hello, I'm still porting a DMAPI application from a DFS environment. Currently, we store some information in a special DM attribute on every file, and when that file is destroyed the attribute is returned with the destroy event. This is set up when the mount event comes in for the file system. Before replying to the event, we use dm_set_return_on_destroy() to tell DMAPI we want that DM attribute returned when objects are destroyed in the file system. However, with XFS I'm getting an EBADF (9). The DMAPI spec says that this indicates that the DM handle "does not refer to an existing or accessible object," but I know the handle is good. I'm using DM_NO_TOKEN as the token, so I tried using the token passed in the mount event and I get an EACCES, which is even worse. I even tried simply using DM_RIGHT_EXCL, but then I get an ESRCH. I find all this confusing especially since rights are supposedly not implemented by the XFS version of DMAPI. Can anyone give me a clue as to what's going on and what I can do to get this call to work properly? Thanks, -James Goodwin Software Engineer IBM Global Services - Federal jagoodwi@us.ibm.com Phone: (281) 336 2578 Fax: (281) 335 4231 T/L 260-2578