1139776Simp/*- 2206361Sjoel * Copyright (c) 1999 Boris Popov 351852Sbp * All rights reserved. 451852Sbp * 551852Sbp * Redistribution and use in source and binary forms, with or without 651852Sbp * modification, are permitted provided that the following conditions 751852Sbp * are met: 851852Sbp * 1. Redistributions of source code must retain the above copyright 951852Sbp * notice, this list of conditions and the following disclaimer. 1051852Sbp * 2. Redistributions in binary form must reproduce the above copyright 1151852Sbp * notice, this list of conditions and the following disclaimer in the 1251852Sbp * documentation and/or other materials provided with the distribution. 1351852Sbp * 1451852Sbp * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1551852Sbp * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1651852Sbp * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1751852Sbp * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 1851852Sbp * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1951852Sbp * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2051852Sbp * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2151852Sbp * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2251852Sbp * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2351852Sbp * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2451852Sbp * SUCH DAMAGE. 2551852Sbp * 2651852Sbp * $FreeBSD$ 2751852Sbp */ 2851852Sbp#ifndef _NWFS_MOUNT_H_ 2951852Sbp#define _NWFS_MOUNT_H_ 3051852Sbp 3151852Sbp#ifndef _NCP_NCP_NLS_H_ 3251852Sbp#include <netncp/ncp_nls.h> 3351852Sbp#endif 3451852Sbp 3551852Sbp#define NWFS_VERMAJ 1 3654479Sbp#define NWFS_VERMIN 3400 3751852Sbp#define NWFS_VERSION (NWFS_VERMAJ*100000 + NWFS_VERMIN) 3851852Sbp 3951852Sbp/* Values for flags */ 4051852Sbp#define NWFS_MOUNT_SOFT 0x0001 4151852Sbp#define WNFS_MOUNT_INTR 0x0002 4251852Sbp#define NWFS_MOUNT_STRONG 0x0004 4351852Sbp#define NWFS_MOUNT_NO_OS2 0x0008 4451852Sbp#define NWFS_MOUNT_NO_NFS 0x0010 4551852Sbp#define NWFS_MOUNT_NO_LONG 0x0020 4651852Sbp#define NWFS_MOUNT_GET_SYSENT 0x0040 /* special case, look to vfsops :) */ 4751852Sbp#define NWFS_MOUNT_HAVE_NLS 0x0080 4851852Sbp 4952229Sbp#define NWFS_VOLNAME_LEN 48 5051852Sbp 5152229Sbp 5296755Strhodes/* Layout of the mount control block for a netware filesystem. */ 5351852Sbpstruct nwfs_args { 5451852Sbp int connRef; /* connection reference */ 5551852Sbp char mount_point[MAXPATHLEN]; 5651852Sbp u_int flags; 5752229Sbp u_char mounted_vol[NWFS_VOLNAME_LEN + 1]; 5851852Sbp u_char root_path[512+1]; 5951852Sbp int version; 6051852Sbp uid_t uid; 6151852Sbp gid_t gid; 6251852Sbp mode_t file_mode; 6351852Sbp mode_t dir_mode; 6451852Sbp struct ncp_nlstables nls; 6559034Sbp int tz; 6651852Sbp}; 6751852Sbp 6855206Speter#ifdef _KERNEL 6951852Sbp 7051852Sbp#ifdef MALLOC_DECLARE 7151852SbpMALLOC_DECLARE(M_NWFSMNT); 7251852Sbp#endif 7351852Sbp 7455206Speter#endif 7551852Sbp#endif /* !_NWFS_MOUNT_H_ */ 76