VirtualBox

source: vbox/trunk/src/VBox/Additions/linux/sharedfolders/vbsfmount.h@ 29655

Last change on this file since 29655 was 28998, checked in by vboxsync, 15 years ago

Linux Additions: rename the vboxvfs module to vboxsf to make it load by demand of the Linux kernel

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.0 KB
Line 
1/** @file
2 * vboxsf -- VirtualBox Guest Additions for Linux: mount(2) parameter structure.
3 */
4
5/*
6 * Copyright (C) 2006-2007 Oracle Corporation
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
17#ifndef VBFS_MOUNT_H
18#define VBFS_MOUNT_H
19
20#define MAX_HOST_NAME 256
21#define MAX_NLS_NAME 32
22
23/* Linux constraints the size of data mount argument to PAGE_SIZE - 1 */
24struct vbsf_mount_info_old
25{
26 char name[MAX_HOST_NAME];
27 char nls_name[MAX_NLS_NAME];
28 int uid;
29 int gid;
30 int ttl;
31};
32
33#define VBSF_MOUNT_SIGNATURE_BYTE_0 '\377'
34#define VBSF_MOUNT_SIGNATURE_BYTE_1 '\376'
35#define VBSF_MOUNT_SIGNATURE_BYTE_2 '\375'
36
37struct vbsf_mount_info_new
38{
39 char nullchar; /* name cannot be '\0' -- we use this field
40 to distinguish between the old structure
41 and the new structure */
42 char signature[3]; /* signature */
43 int length; /* length of the whole structure */
44 char name[MAX_HOST_NAME]; /* share name */
45 char nls_name[MAX_NLS_NAME];/* name of an I/O charset */
46 int uid; /* user ID for all entries, default 0=root */
47 int gid; /* group ID for all entries, default 0=root */
48 int ttl; /* time to live */
49 int dmode; /* mode for directories if != 0xffffffff */
50 int fmode; /* mode for regular files if != 0xffffffff */
51 int dmask; /* umask applied to directories */
52 int fmask; /* umask applied to regular files */
53};
54
55#endif /* vbsfmount.h */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette