1153323Srodrigc/*
2153323Srodrigc * Copyright (c) 2000 Silicon Graphics, Inc.  All Rights Reserved.
3153323Srodrigc *
4153323Srodrigc * This program is free software; you can redistribute it and/or modify it
5153323Srodrigc * under the terms of version 2 of the GNU General Public License as
6153323Srodrigc * published by the Free Software Foundation.
7153323Srodrigc *
8153323Srodrigc * WITHOUT ANY WARRANTY; without even the implied warranty of
9153323Srodrigc * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10153323Srodrigc *
11153323Srodrigc * Further, this software is distributed without any warranty that it is
12153323Srodrigc * free of the rightful claim of any third person regarding infringement
13153323Srodrigc * or the like.  Any license provided herein, whether implied or
14153323Srodrigc * otherwise, applies only to this software file.  Patent licenses, if
15153323Srodrigc * any, provided herein do not apply to combinations of this program with
16153323Srodrigc * other software, or any other product whatsoever.
17153323Srodrigc *
18153323Srodrigc * You should have received a copy of the GNU General Public License along
19153323Srodrigc * with this program; if not, write the Free Software Foundation, Inc., 59
20153323Srodrigc * Temple Place - Suite 330, Boston MA 02111-1307, USA.
21153323Srodrigc *
22153323Srodrigc * Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
23153323Srodrigc * Mountain View, CA  94043, or:
24153323Srodrigc *
25153323Srodrigc * http://www.sgi.com
26153323Srodrigc *
27153323Srodrigc * For further information regarding this notice, see:
28153323Srodrigc *
29153323Srodrigc * http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
30153323Srodrigc */
31153323Srodrigc
32153323Srodrigc#include "xfs.h"
33153323Srodrigc
34153323Srodrigc#include "xfs_types.h"
35153323Srodrigc#include "xfs_inum.h"
36153323Srodrigc#include "xfs_log.h"
37153323Srodrigc#include "xfs_trans.h"
38153323Srodrigc#include "xfs_sb.h"
39153323Srodrigc#include "xfs_ag.h"
40153323Srodrigc#include "xfs_dir.h"
41153323Srodrigc#include "xfs_dir2.h"
42153323Srodrigc#include "xfs_dmapi.h"
43153323Srodrigc#include "xfs_mount.h"
44153323Srodrigc
45153323Srodrigcstatic int nopkg(void);
46153323Srodrigc
47153323Srodrigcstatic __inline int
48153323Srodrigcnopkg()
49153323Srodrigc{
50153323Srodrigc	return (ENOSYS);
51153323Srodrigc}
52153323Srodrigc
53159451Srodrigcint dmapi_init(void);
54153323Srodrigcint
55153323Srodrigcdmapi_init (void)
56153323Srodrigc{
57153323Srodrigc	return (0);
58153323Srodrigc}
59153323Srodrigc
60159451Srodrigcvoid dmapi_uninit(void);
61153323Srodrigcvoid
62153323Srodrigcdmapi_uninit (void)
63153323Srodrigc{
64153323Srodrigc}
65153323Srodrigc
66153323Srodrigcint dm_data_event(void);
67153323Srodrigcint
68153323Srodrigcdm_data_event (void)
69153323Srodrigc{
70153323Srodrigc	return nopkg();
71153323Srodrigc}
72153323Srodrigc
73153323Srodrigcint dm_namesp_event(void);
74153323Srodrigcint
75153323Srodrigcdm_namesp_event (void)
76153323Srodrigc{
77153323Srodrigc	return nopkg();
78153323Srodrigc}
79153323Srodrigc
80153323Srodrigc/*	The following stubs are for routines needed for the X/Open
81153323Srodrigc *	version of DMAPI.
82153323Srodrigc */
83153323Srodrigcint xfs_dm_mount(xfs_vfs_t *, xfs_vnode_t *, char *, char *);
84153323Srodrigcint
85153323Srodrigcxfs_dm_mount(
86153323Srodrigc	xfs_vfs_t	*vfsp,
87153323Srodrigc	xfs_vnode_t	*mvp,
88153323Srodrigc	char		*dir_name,
89153323Srodrigc	char		*fsname)
90153323Srodrigc{
91153323Srodrigc	return nopkg();
92153323Srodrigc}
93153323Srodrigc
94153323Srodrigcint
95153323Srodrigcdm_send_destroy_event(bhv_desc_t *bdp, dm_right_t vp_right);
96153323Srodrigcint
97153323Srodrigcdm_send_destroy_event(bhv_desc_t *bdp, dm_right_t vp_right)
98153323Srodrigc{
99153323Srodrigc	return nopkg();
100153323Srodrigc}
101153323Srodrigc
102153323Srodrigcint
103153323Srodrigcdm_send_mount_event(xfs_vfs_t *vfsp, dm_right_t vfsp_right, bhv_desc_t *bdp,
104153323Srodrigc	dm_right_t vp_right, bhv_desc_t *rootbdp, dm_right_t rootvp_right,
105153323Srodrigc	char *name1, char *name2);
106153323Srodrigcint
107153323Srodrigcdm_send_mount_event(xfs_vfs_t *vfsp, dm_right_t vfsp_right, bhv_desc_t *bdp,
108153323Srodrigc	dm_right_t vp_right, bhv_desc_t *rootbdp, dm_right_t rootvp_right,
109153323Srodrigc	char *name1, char *name2)
110153323Srodrigc{
111153323Srodrigc	return nopkg();
112153323Srodrigc}
113153323Srodrigc
114153323Srodrigc
115153323Srodrigcint
116153323Srodrigcdm_send_namesp_event(dm_eventtype_t event, bhv_desc_t *bdp1,
117153323Srodrigc	dm_right_t vp1_right, bhv_desc_t *bdp2, dm_right_t vp2_right,
118153323Srodrigc	char *name1, char *name2, mode_t mode, int retcode, int flags);
119153323Srodrigcint
120153323Srodrigcdm_send_namesp_event(dm_eventtype_t event, bhv_desc_t *bdp1,
121153323Srodrigc	dm_right_t vp1_right, bhv_desc_t *bdp2, dm_right_t vp2_right,
122153323Srodrigc	char *name1, char *name2, mode_t mode, int retcode, int flags)
123153323Srodrigc{
124153323Srodrigc	return nopkg();
125153323Srodrigc}
126153323Srodrigc
127153323Srodrigc
128153323Srodrigcvoid
129153323Srodrigcdm_send_unmount_event(xfs_vfs_t *vfsp, xfs_vnode_t *vp, dm_right_t vfsp_right,
130153323Srodrigc	mode_t mode, int retcode, int flags);
131153323Srodrigcvoid
132153323Srodrigcdm_send_unmount_event(xfs_vfs_t *vfsp, xfs_vnode_t *vp, dm_right_t vfsp_right,
133153323Srodrigc	mode_t mode, int retcode, int flags)
134153323Srodrigc{
135153323Srodrigc}
136153323Srodrigc
137153323Srodrigc
138153323Srodrigcint
139153323Srodrigcdm_vp_to_handle (xfs_vnode_t *vp, xfs_handle_t *handlep);
140153323Srodrigcint
141153323Srodrigcdm_vp_to_handle (xfs_vnode_t *vp, xfs_handle_t *handlep)
142153323Srodrigc{
143153323Srodrigc	return nopkg();
144153323Srodrigc}
145