HAMMER 60I/Many: Mirroring
[dragonfly.git] / sys / vfs / nwfs / nwfs_mount.h
blob2b3da9098a8a9fccfd8a06270b3a5fac5d5d9b3e
1 /*
2 * Copyright (c) 1999, Boris Popov
3 * All rights reserved.
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 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 * 3. All advertising materials mentioning features or use of this software
14 * must display the following acknowledgement:
15 * This product includes software developed by Boris Popov.
16 * 4. Neither the name of the author nor the names of any co-contributors
17 * may be used to endorse or promote products derived from this software
18 * without specific prior written permission.
20 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
21 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
32 * $FreeBSD: src/sys/nwfs/nwfs_mount.h,v 1.5.2.1 2000/04/17 08:34:19 bp Exp $
33 * $DragonFly: src/sys/vfs/nwfs/nwfs_mount.h,v 1.3 2003/08/07 21:54:35 dillon Exp $
35 #ifndef _NWFS_MOUNT_H_
36 #define _NWFS_MOUNT_H_
38 #ifndef _NCP_NCP_NLS_H_
39 #include <netproto/ncp/ncp_nls.h>
40 #endif
42 #define NWFS_VERMAJ 1
43 #define NWFS_VERMIN 3400
44 #define NWFS_VERSION (NWFS_VERMAJ*100000 + NWFS_VERMIN)
46 /* Values for flags */
47 #define NWFS_MOUNT_SOFT 0x0001
48 #define WNFS_MOUNT_INTR 0x0002
49 #define NWFS_MOUNT_STRONG 0x0004
50 #define NWFS_MOUNT_NO_OS2 0x0008
51 #define NWFS_MOUNT_NO_NFS 0x0010
52 #define NWFS_MOUNT_NO_LONG 0x0020
53 #define NWFS_MOUNT_GET_SYSENT 0x0040 /* special case, look to vfsops :) */
54 #define NWFS_MOUNT_HAVE_NLS 0x0080
56 #define NWFS_VOLNAME_LEN 48
59 /* Layout of the mount control block for a netware file system. */
60 struct nwfs_args {
61 int connRef; /* connection reference */
62 char mount_point[MAXPATHLEN];
63 u_int flags;
64 u_char mounted_vol[NWFS_VOLNAME_LEN + 1];
65 u_char root_path[512+1];
66 int version;
67 uid_t uid;
68 gid_t gid;
69 mode_t file_mode;
70 mode_t dir_mode;
71 struct ncp_nlstables nls;
72 int tz;
75 #ifdef _KERNEL
77 #ifdef MALLOC_DECLARE
78 MALLOC_DECLARE(M_NWFSMNT);
79 #endif
81 #endif
82 #endif /* !_NWFS_MOUNT_H_ */