Lines 9-15
Link Here
|
9 |
/* |
9 |
/* |
10 |
* Copyright (C) 2010-2020 Oracle Corporation |
10 |
* Copyright (C) 2010-2020 Oracle Corporation |
11 |
* |
11 |
* |
12 |
@@ -24,72 +19,371 @@ |
12 |
@@ -24,72 +19,377 @@ |
13 |
#define VBOXVFS_VFSNAME "vboxvfs" |
13 |
#define VBOXVFS_VFSNAME "vboxvfs" |
14 |
#define VBOXVFS_VERSION 1 |
14 |
#define VBOXVFS_VERSION 1 |
15 |
|
15 |
|
Lines 134-139
Link Here
|
134 |
- int didrele; |
134 |
- int didrele; |
135 |
+#include <VBox/VBoxGuestLibSharedFolders.h> |
135 |
+#include <VBox/VBoxGuestLibSharedFolders.h> |
136 |
+ |
136 |
+ |
|
|
137 |
+#if __FreeBSD_version >= 1400093 |
138 |
+typedef __enum_uint8(vtype) enum_vtype_t; |
139 |
+#else |
140 |
+typedef enum vtype enum_vtype_t; |
141 |
+#endif |
142 |
+ |
137 |
+#define VBOXVFS_DEBUG(lvl, ...) do { \ |
143 |
+#define VBOXVFS_DEBUG(lvl, ...) do { \ |
138 |
+ if (vboxvfs_debug >= (lvl)) { \ |
144 |
+ if (vboxvfs_debug >= (lvl)) { \ |
139 |
+ printf("VBOXVFS[%u]: ", lvl); \ |
145 |
+ printf("VBOXVFS[%u]: ", lvl); \ |
Lines 323-329
Link Here
|
323 |
+void vboxfs_free_vp(struct vnode *); |
329 |
+void vboxfs_free_vp(struct vnode *); |
324 |
+ |
330 |
+ |
325 |
+int vboxfs_alloc_node(struct mount *, struct vboxfs_mnt *, const char*, |
331 |
+int vboxfs_alloc_node(struct mount *, struct vboxfs_mnt *, const char*, |
326 |
+ enum vtype, uid_t, gid_t, mode_t, struct vboxfs_node *, |
332 |
+ enum_vtype_t, uid_t, gid_t, mode_t, struct vboxfs_node *, |
327 |
+ struct vboxfs_node **); |
333 |
+ struct vboxfs_node **); |
328 |
+void vboxfs_free_node(struct vboxfs_mnt *, struct vboxfs_node *); |
334 |
+void vboxfs_free_node(struct vboxfs_mnt *, struct vboxfs_node *); |
329 |
+ |
335 |
+ |