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