1 | /* $Id: vboxvfs.h 93115 2022-01-01 11:31:46Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * Description.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2010-2022 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 GA_INCLUDED_SRC_freebsd_vboxvfs_vboxvfs_h
|
---|
19 | #define GA_INCLUDED_SRC_freebsd_vboxvfs_vboxvfs_h
|
---|
20 | #ifndef RT_WITHOUT_PRAGMA_ONCE
|
---|
21 | # pragma once
|
---|
22 | #endif
|
---|
23 |
|
---|
24 | #define VBOXVFS_VFSNAME "vboxvfs"
|
---|
25 | #define VBOXVFS_VERSION 1
|
---|
26 |
|
---|
27 | #define MAX_HOST_NAME 256
|
---|
28 | #define MAX_NLS_NAME 32
|
---|
29 |
|
---|
30 | struct vboxvfs_mount_info {
|
---|
31 | char name[MAX_HOST_NAME];
|
---|
32 | char nls_name[MAX_NLS_NAME];
|
---|
33 | int uid;
|
---|
34 | int gid;
|
---|
35 | int ttl;
|
---|
36 | };
|
---|
37 |
|
---|
38 | #ifdef _KERNEL
|
---|
39 |
|
---|
40 | #include <VBox/VBoxGuestLibSharedFolders.h>
|
---|
41 | #include <sys/mount.h>
|
---|
42 | #include <sys/vnode.h>
|
---|
43 |
|
---|
44 | struct vboxvfsmount {
|
---|
45 | uid_t uid;
|
---|
46 | gid_t gid;
|
---|
47 | mode_t file_mode;
|
---|
48 | mode_t dir_mode;
|
---|
49 | struct mount *mp;
|
---|
50 | struct ucred *owner;
|
---|
51 | u_int flags;
|
---|
52 | long nextino;
|
---|
53 | int caseopt;
|
---|
54 | int didrele;
|
---|
55 | };
|
---|
56 |
|
---|
57 | /* structs - stolen from the linux shared module code */
|
---|
58 | struct sf_glob_info {
|
---|
59 | VBGLSFMAP map;
|
---|
60 | /* struct nls_table *nls;*/
|
---|
61 | int ttl;
|
---|
62 | int uid;
|
---|
63 | int gid;
|
---|
64 | struct vnode *vnode_root;
|
---|
65 | };
|
---|
66 |
|
---|
67 | struct sf_inode_info {
|
---|
68 | SHFLSTRING *path;
|
---|
69 | int force_restat;
|
---|
70 | };
|
---|
71 |
|
---|
72 | #if 0
|
---|
73 | struct sf_dir_info {
|
---|
74 | struct list_head info_list;
|
---|
75 | };
|
---|
76 | #endif
|
---|
77 |
|
---|
78 | struct sf_dir_buf {
|
---|
79 | size_t nb_entries;
|
---|
80 | size_t free_bytes;
|
---|
81 | size_t used_bytes;
|
---|
82 | void *buf;
|
---|
83 | #if 0
|
---|
84 | struct list_head head;
|
---|
85 | #endif
|
---|
86 | };
|
---|
87 |
|
---|
88 | struct sf_reg_info {
|
---|
89 | SHFLHANDLE handle;
|
---|
90 | };
|
---|
91 |
|
---|
92 | #endif /* KERNEL */
|
---|
93 |
|
---|
94 | #endif /* !GA_INCLUDED_SRC_freebsd_vboxvfs_vboxvfs_h */
|
---|
95 |
|
---|