1 | /** @file
|
---|
2 | * vboxvfs -- VirtualBox Guest Additions for Linux: mount(2) parameter structure.
|
---|
3 | */
|
---|
4 |
|
---|
5 | /*
|
---|
6 | * Copyright (C) 2006-2007 Sun Microsystems, Inc.
|
---|
7 | *
|
---|
8 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
9 | * available from http://www.virtualbox.org. This file is free software;
|
---|
10 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
11 | * General Public License (GPL) as published by the Free Software
|
---|
12 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
13 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
14 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
15 | *
|
---|
16 | * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
|
---|
17 | * Clara, CA 95054 USA or visit http://www.sun.com if you need
|
---|
18 | * additional information or have any questions.
|
---|
19 | */
|
---|
20 |
|
---|
21 | #ifndef VBFS_MOUNT_H
|
---|
22 | #define VBFS_MOUNT_H
|
---|
23 |
|
---|
24 | #define MAX_HOST_NAME 256
|
---|
25 | #define MAX_NLS_NAME 32
|
---|
26 |
|
---|
27 | /* Linux constraints the size of data mount argument to PAGE_SIZE - 1 */
|
---|
28 | struct vbsf_mount_info_old
|
---|
29 | {
|
---|
30 | char name[MAX_HOST_NAME];
|
---|
31 | char nls_name[MAX_NLS_NAME];
|
---|
32 | int uid;
|
---|
33 | int gid;
|
---|
34 | int ttl;
|
---|
35 | };
|
---|
36 |
|
---|
37 | #define VBSF_MOUNT_SIGNATURE_BYTE_0 '\377'
|
---|
38 | #define VBSF_MOUNT_SIGNATURE_BYTE_1 '\376'
|
---|
39 | #define VBSF_MOUNT_SIGNATURE_BYTE_2 '\375'
|
---|
40 |
|
---|
41 | struct vbsf_mount_info_new
|
---|
42 | {
|
---|
43 | char nullchar; /* name cannot be '\0' -- we use this field
|
---|
44 | to distinguish between the old structure
|
---|
45 | and the new structure */
|
---|
46 | char signature[3]; /* signature */
|
---|
47 | int length; /* length of the whole structure */
|
---|
48 | char name[MAX_HOST_NAME]; /* share name */
|
---|
49 | char nls_name[MAX_NLS_NAME];/* name of an I/O charset */
|
---|
50 | int uid; /* user ID for all entries, default 0=root */
|
---|
51 | int gid; /* group ID for all entries, default 0=root */
|
---|
52 | int ttl; /* time to live */
|
---|
53 | int dmode; /* mode for directories if != 0xffffffff */
|
---|
54 | int fmode; /* mode for regular files if != 0xffffffff */
|
---|
55 | int dmask; /* umask applied to directories */
|
---|
56 | int fmask; /* umask applied to regular files */
|
---|
57 | };
|
---|
58 |
|
---|
59 | #endif /* vbsfmount.h */
|
---|