--- Net2/sys/mount.h 2018/04/24 18:03:58 1.1 +++ Net2/sys/mount.h 2018/04/24 18:16:46 1.1.1.3 @@ -30,9 +30,13 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * @(#)mount.h 7.22 (Berkeley) 6/3/91 + * from: @(#)mount.h 7.22 (Berkeley) 6/3/91 + * mount.h,v 1.11.2.1 1993/08/05 02:37:35 cgd Exp */ +#ifndef _SYS_MOUNT_H_ +#define _SYS_MOUNT_H_ + typedef quad fsid_t; /* file system id type */ /* @@ -73,11 +77,16 @@ struct statfs { * File system types. */ #define MOUNT_NONE 0 -#define MOUNT_UFS 1 -#define MOUNT_NFS 2 -#define MOUNT_MFS 3 -#define MOUNT_PC 4 -#define MOUNT_MAXTYPE 4 +#define MOUNT_UFS 1 /* UNIX "Fast" Filesystem */ +#define MOUNT_NFS 2 /* Network Filesystem */ +#define MOUNT_MFS 3 /* Memory Filesystem */ +#define MOUNT_MSDOS 4 /* MSDOS Filesystem */ +#define MOUNT_ISOFS 5 /* iso9660 cdrom */ +#define MOUNT_FDESC 6 /* /dev/fd filesystem */ +#define MOUNT_KERNFS 7 /* kernel variable filesystem */ +#define MOUNT_DEVFS 8 /* device node filesystem */ +#define MOUNT_AFS 9 /* AFS 3.x */ +#define MOUNT_MAXTYPE MOUNT_AFS /* * Structure per mounted file system. @@ -105,6 +114,10 @@ struct mount { #define MNT_NOEXEC 0x00000004 /* can't exec from filesystem */ #define MNT_NOSUID 0x00000008 /* don't honor setuid bits on fs */ #define MNT_NODEV 0x00000010 /* don't interpret special files */ +#define MNT_UNION 0x00000020 /* union with underlying filesysem */ +#ifdef ISOFS +#define ISOFSMNT_NORRIP 0x00000040 /* disable Rock Ridge Ext.*/ +#endif /* * exported mount flags. @@ -217,7 +230,7 @@ struct mfs_args { }; #endif MFS -#ifdef NFS +#if defined(NFSSERVER) || defined(NFSCLIENT) /* * File Handle (32 bytes for version 2), variable up to 1024 for version 3 */ @@ -258,7 +271,18 @@ struct nfs_args { #define NFSMNT_SPONGY 0x0400 /* spongy mount (soft for stat and lookup) */ #define NFSMNT_COMPRESS 0x0800 /* Compress nfs rpc xdr */ #define NFSMNT_LOCKBITS (NFSMNT_SCKLOCK | NFSMNT_WANTSCK) -#endif NFS +#endif /* defined(NFSSERVER || defined(NFSCLIENT) */ + +#ifdef MSDOSFS +/* + * Arguments to mount MSDOS filesystems. + */ +struct pcfs_args { + char *fspec; /* blocks special holding the fs to mount */ + int exflags; /* mount flags */ + uid_t exroot; /* mapping for root uid */ +}; +#endif /* MSDOSFS */ #ifdef KERNEL /* @@ -286,3 +310,5 @@ int unmount __P((const char *, int)); __END_DECLS #endif /* KERNEL */ + +#endif /* !_SYS_MOUNT_H_ */