Last change
on this file since 58196 was 58196, checked in by vboxsync, 9 years ago |
VBoxGuestR0LibSharedFolders: VBSFMAP -> VBGLSFMAP; VBSFCLIENT -> VBGLSFCLIENT
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Id
|
File size:
1.9 KB
|
Line | |
---|
1 | /* $Id: vboxvfs.h 58196 2015-10-12 15:18:51Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * Description.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2010 Oracle Corporation
|
---|
8 | *
|
---|
9 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | * available from http://www.virtualbox.org. This file is free software;
|
---|
11 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | * General Public License (GPL) as published by the Free Software
|
---|
13 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | */
|
---|
17 |
|
---|
18 | #ifndef ___VBOXVFS_H___
|
---|
19 | #define ___VBOXVFS_H___
|
---|
20 |
|
---|
21 | #define VBOXVFS_VFSNAME "vboxvfs"
|
---|
22 | #define VBOXVFS_VERSION 1
|
---|
23 |
|
---|
24 | #define MAX_HOST_NAME 256
|
---|
25 | #define MAX_NLS_NAME 32
|
---|
26 |
|
---|
27 | struct vboxvfs_mount_info {
|
---|
28 | char name[MAX_HOST_NAME];
|
---|
29 | char nls_name[MAX_NLS_NAME];
|
---|
30 | int uid;
|
---|
31 | int gid;
|
---|
32 | int ttl;
|
---|
33 | };
|
---|
34 |
|
---|
35 | #ifdef _KERNEL
|
---|
36 |
|
---|
37 | #include "../../common/VBoxGuestLib/VBoxGuestR0LibSharedFolders.h"
|
---|
38 | #include <sys/mount.h>
|
---|
39 | #include <sys/vnode.h>
|
---|
40 |
|
---|
41 | struct vboxvfsmount {
|
---|
42 | uid_t uid;
|
---|
43 | gid_t gid;
|
---|
44 | mode_t file_mode;
|
---|
45 | mode_t dir_mode;
|
---|
46 | struct mount *mp;
|
---|
47 | struct ucred *owner;
|
---|
48 | u_int flags;
|
---|
49 | long nextino;
|
---|
50 | int caseopt;
|
---|
51 | int didrele;
|
---|
52 | };
|
---|
53 |
|
---|
54 | /* structs - stolen from the linux shared module code */
|
---|
55 | struct sf_glob_info {
|
---|
56 | VBGLSFMAP map;
|
---|
57 | /* struct nls_table *nls;*/
|
---|
58 | int ttl;
|
---|
59 | int uid;
|
---|
60 | int gid;
|
---|
61 | struct vnode *vnode_root;
|
---|
62 | };
|
---|
63 |
|
---|
64 | struct sf_inode_info {
|
---|
65 | SHFLSTRING *path;
|
---|
66 | int force_restat;
|
---|
67 | };
|
---|
68 |
|
---|
69 | #if 0
|
---|
70 | struct sf_dir_info {
|
---|
71 | struct list_head info_list;
|
---|
72 | };
|
---|
73 | #endif
|
---|
74 |
|
---|
75 | struct sf_dir_buf {
|
---|
76 | size_t nb_entries;
|
---|
77 | size_t free_bytes;
|
---|
78 | size_t used_bytes;
|
---|
79 | void *buf;
|
---|
80 | #if 0
|
---|
81 | struct list_head head;
|
---|
82 | #endif
|
---|
83 | };
|
---|
84 |
|
---|
85 | struct sf_reg_info {
|
---|
86 | SHFLHANDLE handle;
|
---|
87 | };
|
---|
88 |
|
---|
89 | #endif /* KERNEL */
|
---|
90 |
|
---|
91 | #endif /* !___VBOXVFS_H___ */
|
---|
92 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.