Skip to content

Commit df40286

Browse files
jwrdegoedegregkh
authored andcommitted
staging: Add VirtualBox guest shared folder (vboxsf) support
VirtualBox hosts can share folders with guests, this commit adds a VFS driver implementing the Linux-guest side of this, allowing folders exported by the host to be mounted under Linux. This driver depends on the guest <-> host IPC functions exported by the vboxguest driver. Signed-off-by: Hans de Goede <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent d6d5df1 commit df40286

File tree

13 files changed

+3278
-0
lines changed

13 files changed

+3278
-0
lines changed

MAINTAINERS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17335,6 +17335,12 @@ F: include/linux/vbox_utils.h
1733517335
F: include/uapi/linux/vbox*.h
1733617336
F: drivers/virt/vboxguest/
1733717337

17338+
VIRTUAL BOX SHARED FOLDER VFS DRIVER:
17339+
M: Hans de Goede <[email protected]>
17340+
17341+
S: Maintained
17342+
F: drivers/staging/vboxsf/*
17343+
1733817344
VIRTUAL SERIO DEVICE DRIVER
1733917345
M: Stephen Chandler Paul <[email protected]>
1734017346
S: Maintained

drivers/staging/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,4 +125,6 @@ source "drivers/staging/exfat/Kconfig"
125125

126126
source "drivers/staging/qlge/Kconfig"
127127

128+
source "drivers/staging/vboxsf/Kconfig"
129+
128130
endif # STAGING

drivers/staging/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,4 @@ obj-$(CONFIG_UWB) += uwb/
5353
obj-$(CONFIG_USB_WUSB) += wusbcore/
5454
obj-$(CONFIG_EXFAT_FS) += exfat/
5555
obj-$(CONFIG_QLGE) += qlge/
56+
obj-$(CONFIG_VBOXSF_FS) += vboxsf/

drivers/staging/vboxsf/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
config VBOXSF_FS
2+
tristate "VirtualBox guest shared folder (vboxsf) support"
3+
depends on X86 && VBOXGUEST
4+
select NLS
5+
help
6+
VirtualBox hosts can share folders with guests, this driver
7+
implements the Linux-guest side of this allowing folders exported
8+
by the host to be mounted under Linux.
9+
10+
If you want to use shared folders in VirtualBox guests, answer Y or M.

drivers/staging/vboxsf/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# SPDX-License-Identifier: MIT
2+
3+
obj-$(CONFIG_VBOXSF_FS) += vboxsf.o
4+
5+
vboxsf-y := dir.o file.o utils.o vboxsf_wrappers.o super.o

drivers/staging/vboxsf/TODO

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
TODO:
2+
- Find a file-system developer to review this and give their Reviewed-By
3+
- Address any items coming up during review
4+
- Move to fs/vboxfs
5+
6+
Please send any patches to Greg Kroah-Hartman <[email protected]>
7+
and Hans de Goede <[email protected]>

0 commit comments

Comments
 (0)