2 * Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved.
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of version 2 of the GNU General Public License as
6 * published by the Free Software Foundation.
8 * WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11 * Further, this software is distributed without any warranty that it is
12 * free of the rightful claim of any third person regarding infringement
13 * or the like. Any license provided herein, whether implied or
14 * otherwise, applies only to this software file. Patent licenses, if
15 * any, provided herein do not apply to combinations of this program with
16 * other software, or any other product whatsoever.
18 * You should have received a copy of the GNU General Public License along
19 * with this program; if not, write the Free Software Foundation, Inc., 59
20 * Temple Place - Suite 330, Boston MA 02111-1307, USA.
22 * Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
23 * Mountain View, CA 94043, or:
27 * For further information regarding this notice, see:
29 * http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
34 #include "xfs_types.h"
37 #include "xfs_trans.h"
42 #include "xfs_dmapi.h"
43 #include "xfs_mount.h"
45 static int nopkg(void);
60 void dmapi_uninit(void);
66 int dm_data_event(void);
73 int dm_namesp_event(void);
75 dm_namesp_event (void)
80 /* The following stubs are for routines needed for the X/Open
83 int xfs_dm_mount(xfs_vfs_t *, xfs_vnode_t *, char *, char *);
95 dm_send_destroy_event(bhv_desc_t *bdp, dm_right_t vp_right);
97 dm_send_destroy_event(bhv_desc_t *bdp, dm_right_t vp_right)
103 dm_send_mount_event(xfs_vfs_t *vfsp, dm_right_t vfsp_right, bhv_desc_t *bdp,
104 dm_right_t vp_right, bhv_desc_t *rootbdp, dm_right_t rootvp_right,
105 char *name1, char *name2);
107 dm_send_mount_event(xfs_vfs_t *vfsp, dm_right_t vfsp_right, bhv_desc_t *bdp,
108 dm_right_t vp_right, bhv_desc_t *rootbdp, dm_right_t rootvp_right,
109 char *name1, char *name2)
116 dm_send_namesp_event(dm_eventtype_t event, bhv_desc_t *bdp1,
117 dm_right_t vp1_right, bhv_desc_t *bdp2, dm_right_t vp2_right,
118 char *name1, char *name2, mode_t mode, int retcode, int flags);
120 dm_send_namesp_event(dm_eventtype_t event, bhv_desc_t *bdp1,
121 dm_right_t vp1_right, bhv_desc_t *bdp2, dm_right_t vp2_right,
122 char *name1, char *name2, mode_t mode, int retcode, int flags)
129 dm_send_unmount_event(xfs_vfs_t *vfsp, xfs_vnode_t *vp, dm_right_t vfsp_right,
130 mode_t mode, int retcode, int flags);
132 dm_send_unmount_event(xfs_vfs_t *vfsp, xfs_vnode_t *vp, dm_right_t vfsp_right,
133 mode_t mode, int retcode, int flags)
139 dm_vp_to_handle (xfs_vnode_t *vp, xfs_handle_t *handlep);
141 dm_vp_to_handle (xfs_vnode_t *vp, xfs_handle_t *handlep)