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_macros.h"
35 #include "xfs_types.h"
38 #include "xfs_trans.h"
43 #include "xfs_dmapi.h"
44 #include "xfs_mount.h"
46 static int nopkg(void);
65 int dm_data_event(void);
72 int dm_namesp_event(void);
74 dm_namesp_event (void)
79 /* The following stubs are for routines needed for the X/Open
82 int xfs_dm_mount(xfs_vfs_t *, xfs_vnode_t *, char *, char *);
94 dm_send_destroy_event(bhv_desc_t *bdp, dm_right_t vp_right);
96 dm_send_destroy_event(bhv_desc_t *bdp, dm_right_t vp_right)
102 dm_send_mount_event(xfs_vfs_t *vfsp, dm_right_t vfsp_right, bhv_desc_t *bdp,
103 dm_right_t vp_right, bhv_desc_t *rootbdp, dm_right_t rootvp_right,
104 char *name1, char *name2);
106 dm_send_mount_event(xfs_vfs_t *vfsp, dm_right_t vfsp_right, bhv_desc_t *bdp,
107 dm_right_t vp_right, bhv_desc_t *rootbdp, dm_right_t rootvp_right,
108 char *name1, char *name2)
115 dm_send_namesp_event(dm_eventtype_t event, bhv_desc_t *bdp1,
116 dm_right_t vp1_right, bhv_desc_t *bdp2, dm_right_t vp2_right,
117 char *name1, char *name2, mode_t mode, int retcode, int flags);
119 dm_send_namesp_event(dm_eventtype_t event, bhv_desc_t *bdp1,
120 dm_right_t vp1_right, bhv_desc_t *bdp2, dm_right_t vp2_right,
121 char *name1, char *name2, mode_t mode, int retcode, int flags)
128 dm_send_unmount_event(xfs_vfs_t *vfsp, xfs_vnode_t *vp, dm_right_t vfsp_right,
129 mode_t mode, int retcode, int flags);
131 dm_send_unmount_event(xfs_vfs_t *vfsp, xfs_vnode_t *vp, dm_right_t vfsp_right,
132 mode_t mode, int retcode, int flags)
138 dm_vp_to_handle (xfs_vnode_t *vp, xfs_handle_t *handlep);
140 dm_vp_to_handle (xfs_vnode_t *vp, xfs_handle_t *handlep)