Deleted Added
full compact
hpfs_vfsops.c (60041) hpfs_vfsops.c (66615)
1/*-
2 * Copyright (c) 1998, 1999 Semen Ustimenko (semenu@FreeBSD.org)
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 1998, 1999 Semen Ustimenko (semenu@FreeBSD.org)
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/sys/fs/hpfs/hpfs_vfsops.c 60041 2000-05-05 09:59:14Z phk $
26 * $FreeBSD: head/sys/fs/hpfs/hpfs_vfsops.c 66615 2000-10-04 01:29:17Z jasone $
27 */
28
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/namei.h>
33#include <sys/conf.h>
34#include <sys/proc.h>

--- 47 unchanged lines hidden (view full) ---

82 struct proc *));
83#endif
84
85#if defined(__FreeBSD__)
86struct sockaddr;
87static int hpfs_mount __P((struct mount *, char *, caddr_t,
88 struct nameidata *, struct proc *));
89static int hpfs_init __P((struct vfsconf *));
27 */
28
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/namei.h>
33#include <sys/conf.h>
34#include <sys/proc.h>

--- 47 unchanged lines hidden (view full) ---

82 struct proc *));
83#endif
84
85#if defined(__FreeBSD__)
86struct sockaddr;
87static int hpfs_mount __P((struct mount *, char *, caddr_t,
88 struct nameidata *, struct proc *));
89static int hpfs_init __P((struct vfsconf *));
90static int hpfs_uninit __P((struct vfsconf *));
90static int hpfs_checkexp __P((struct mount *, struct sockaddr *,
91 int *, struct ucred **));
92#else /* defined(__NetBSD__) */
93static int hpfs_mount __P((struct mount *, const char *, void *,
94 struct nameidata *, struct proc *));
95static void hpfs_init __P((void));
96static int hpfs_mountroot __P((void));
97static int hpfs_sysctl __P((int *, u_int, void *, size_t *, void *,

--- 66 unchanged lines hidden (view full) ---

164 dprintf(("hpfs_init():\n"));
165
166 hpfs_hphashinit();
167#if defined(__FreeBSD__)
168 return 0;
169#endif
170}
171
91static int hpfs_checkexp __P((struct mount *, struct sockaddr *,
92 int *, struct ucred **));
93#else /* defined(__NetBSD__) */
94static int hpfs_mount __P((struct mount *, const char *, void *,
95 struct nameidata *, struct proc *));
96static void hpfs_init __P((void));
97static int hpfs_mountroot __P((void));
98static int hpfs_sysctl __P((int *, u_int, void *, size_t *, void *,

--- 66 unchanged lines hidden (view full) ---

165 dprintf(("hpfs_init():\n"));
166
167 hpfs_hphashinit();
168#if defined(__FreeBSD__)
169 return 0;
170#endif
171}
172
173#if defined(__FreeBSD__)
172static int
174static int
175hpfs_uninit (vfsp)
176 struct vfsconf *vfsp;
177{
178 hpfs_hphashdestroy();
179 return 0;;
180}
181#endif
182
183static int
173hpfs_mount (
174 struct mount *mp,
175#if defined(__FreeBSD__)
176 char *path,
177 caddr_t data,
178#else /* defined(__NetBSD__) */
179 const char *path,
180 void *data,

--- 551 unchanged lines hidden (view full) ---

732 vfs_stdquotactl,
733 hpfs_statfs,
734 vfs_stdsync,
735 hpfs_vget,
736 hpfs_fhtovp,
737 hpfs_checkexp,
738 hpfs_vptofh,
739 hpfs_init,
184hpfs_mount (
185 struct mount *mp,
186#if defined(__FreeBSD__)
187 char *path,
188 caddr_t data,
189#else /* defined(__NetBSD__) */
190 const char *path,
191 void *data,

--- 551 unchanged lines hidden (view full) ---

743 vfs_stdquotactl,
744 hpfs_statfs,
745 vfs_stdsync,
746 hpfs_vget,
747 hpfs_fhtovp,
748 hpfs_checkexp,
749 hpfs_vptofh,
750 hpfs_init,
740 vfs_stduninit,
751 hpfs_uninit,
741 vfs_stdextattrctl,
742};
743VFS_SET(hpfs_vfsops, hpfs, 0);
744#else /* defined(__NetBSD__) */
745extern struct vnodeopv_desc hpfs_vnodeop_opv_desc;
746
747struct vnodeopv_desc *hpfs_vnodeopv_descs[] = {
748 &hpfs_vnodeop_opv_desc,

--- 22 unchanged lines hidden ---
752 vfs_stdextattrctl,
753};
754VFS_SET(hpfs_vfsops, hpfs, 0);
755#else /* defined(__NetBSD__) */
756extern struct vnodeopv_desc hpfs_vnodeop_opv_desc;
757
758struct vnodeopv_desc *hpfs_vnodeopv_descs[] = {
759 &hpfs_vnodeop_opv_desc,

--- 22 unchanged lines hidden ---