]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/gnu/fs/xfs/FreeBSD/xfs_dmistubs.c
This commit was generated by cvs2svn to compensate for changes in r155131,
[FreeBSD/FreeBSD.git] / sys / gnu / fs / xfs / FreeBSD / xfs_dmistubs.c
1 /*
2  * Copyright (c) 2000 Silicon Graphics, Inc.  All Rights Reserved.
3  *
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.
7  *
8  * WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10  *
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.
17  *
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.
21  *
22  * Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
23  * Mountain View, CA  94043, or:
24  *
25  * http://www.sgi.com
26  *
27  * For further information regarding this notice, see:
28  *
29  * http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
30  */
31
32 #include "xfs.h"
33
34 #include "xfs_macros.h"
35 #include "xfs_types.h"
36 #include "xfs_inum.h"
37 #include "xfs_log.h"
38 #include "xfs_trans.h"
39 #include "xfs_sb.h"
40 #include "xfs_ag.h"
41 #include "xfs_dir.h"
42 #include "xfs_dir2.h"
43 #include "xfs_dmapi.h"
44 #include "xfs_mount.h"
45
46 static int nopkg(void);
47
48 static __inline int
49 nopkg()
50 {
51         return (ENOSYS);
52 }
53
54 int
55 dmapi_init (void)
56 {
57         return (0);
58 }
59
60 void
61 dmapi_uninit (void)
62 {
63 }
64
65 int dm_data_event(void);
66 int
67 dm_data_event (void)
68 {
69         return nopkg();
70 }
71
72 int dm_namesp_event(void);
73 int
74 dm_namesp_event (void)
75 {
76         return nopkg();
77 }
78
79 /*      The following stubs are for routines needed for the X/Open
80  *      version of DMAPI.
81  */
82 int xfs_dm_mount(xfs_vfs_t *, xfs_vnode_t *, char *, char *); 
83 int
84 xfs_dm_mount(
85         xfs_vfs_t       *vfsp,
86         xfs_vnode_t     *mvp,
87         char            *dir_name,
88         char            *fsname)
89 {
90         return nopkg();
91 }
92
93 int
94 dm_send_destroy_event(bhv_desc_t *bdp, dm_right_t vp_right);
95 int
96 dm_send_destroy_event(bhv_desc_t *bdp, dm_right_t vp_right)
97 {
98         return nopkg();
99 }
100
101 int
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);
105 int
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)
109 {
110         return nopkg();
111 }
112
113
114 int
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);
118 int
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)
122 {
123         return nopkg();
124 }
125
126
127 void
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);
130 void
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)
133 {
134 }
135
136
137 int
138 dm_vp_to_handle (xfs_vnode_t *vp, xfs_handle_t *handlep);
139 int
140 dm_vp_to_handle (xfs_vnode_t *vp, xfs_handle_t *handlep)
141 {
142         return nopkg();
143 }