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 45static int nopkg(void); 46 47static __inline int 48nopkg() 49{ 50 return (ENOSYS); 51} 52 53int dmapi_init(void); 54int 55dmapi_init (void) 56{ 57 return (0); 58} 59 60void dmapi_uninit(void); 61void 62dmapi_uninit (void) 63{ 64} 65 66int dm_data_event(void); 67int 68dm_data_event (void) 69{ 70 return nopkg(); 71} 72 73int dm_namesp_event(void); 74int 75dm_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 */ 83int xfs_dm_mount(xfs_vfs_t *, xfs_vnode_t *, char *, char *); 84int 85xfs_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 94int 95dm_send_destroy_event(bhv_desc_t *bdp, dm_right_t vp_right); 96int 97dm_send_destroy_event(bhv_desc_t *bdp, dm_right_t vp_right) 98{ 99 return nopkg(); 100} 101 102int 103dm_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); 106int 107dm_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 115int 116dm_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); 119int 120dm_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 128void 129dm_send_unmount_event(xfs_vfs_t *vfsp, xfs_vnode_t *vp, dm_right_t vfsp_right, 130 mode_t mode, int retcode, int flags); 131void 132dm_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 138int 139dm_vp_to_handle (xfs_vnode_t *vp, xfs_handle_t *handlep); 140int 141dm_vp_to_handle (xfs_vnode_t *vp, xfs_handle_t *handlep) 142{ 143 return nopkg(); 144} 145