]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - sys/gnu/fs/xfs/FreeBSD/xfs_dmistubs.c
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.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_types.h"
35 #include "xfs_inum.h"
36 #include "xfs_log.h"
37 #include "xfs_trans.h"
38 #include "xfs_sb.h"
39 #include "xfs_ag.h"
40 #include "xfs_dir.h"
41 #include "xfs_dir2.h"
42 #include "xfs_dmapi.h"
43 #include "xfs_mount.h"
44
45 static int nopkg(void);
46
47 static __inline int
48 nopkg()
49 {
50         return (ENOSYS);
51 }
52
53 int dmapi_init(void);
54 int
55 dmapi_init (void)
56 {
57         return (0);
58 }
59
60 void dmapi_uninit(void);
61 void
62 dmapi_uninit (void)
63 {
64 }
65
66 int dm_data_event(void);
67 int
68 dm_data_event (void)
69 {
70         return nopkg();
71 }
72
73 int dm_namesp_event(void);
74 int
75 dm_namesp_event (void)
76 {
77         return nopkg();
78 }
79
80 /*      The following stubs are for routines needed for the X/Open
81  *      version of DMAPI.
82  */
83 int xfs_dm_mount(xfs_vfs_t *, xfs_vnode_t *, char *, char *); 
84 int
85 xfs_dm_mount(
86         xfs_vfs_t       *vfsp,
87         xfs_vnode_t     *mvp,
88         char            *dir_name,
89         char            *fsname)
90 {
91         return nopkg();
92 }
93
94 int
95 dm_send_destroy_event(bhv_desc_t *bdp, dm_right_t vp_right);
96 int
97 dm_send_destroy_event(bhv_desc_t *bdp, dm_right_t vp_right)
98 {
99         return nopkg();
100 }
101
102 int
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);
106 int
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)
110 {
111         return nopkg();
112 }
113
114
115 int
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);
119 int
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)
123 {
124         return nopkg();
125 }
126
127
128 void
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);
131 void
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)
134 {
135 }
136
137
138 int
139 dm_vp_to_handle (xfs_vnode_t *vp, xfs_handle_t *handlep);
140 int
141 dm_vp_to_handle (xfs_vnode_t *vp, xfs_handle_t *handlep)
142 {
143         return nopkg();
144 }