Skip to content

Commit 0fd1695

Browse files
jwrdegoedeAl Viro
authored andcommitted
fs: 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. Acked-by: Christoph Hellwig <[email protected]> Signed-off-by: Hans de Goede <[email protected]> Signed-off-by: Al Viro <[email protected]>
1 parent f35aa2b commit 0fd1695

File tree

12 files changed

+3280
-0
lines changed

12 files changed

+3280
-0
lines changed

MAINTAINERS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17610,6 +17610,12 @@ F: include/linux/vbox_utils.h
1761017610
F: include/uapi/linux/vbox*.h
1761117611
F: drivers/virt/vboxguest/
1761217612

17613+
VIRTUAL BOX SHARED FOLDER VFS DRIVER:
17614+
M: Hans de Goede <[email protected]>
17615+
17616+
S: Maintained
17617+
F: fs/vboxsf/*
17618+
1761317619
VIRTUAL SERIO DEVICE DRIVER
1761417620
M: Stephen Chandler Paul <[email protected]>
1761517621
S: Maintained

fs/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ source "fs/pstore/Kconfig"
264264
source "fs/sysv/Kconfig"
265265
source "fs/ufs/Kconfig"
266266
source "fs/erofs/Kconfig"
267+
source "fs/vboxsf/Kconfig"
267268

268269
endif # MISC_FILESYSTEMS
269270

fs/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,3 +133,4 @@ obj-$(CONFIG_CEPH_FS) += ceph/
133133
obj-$(CONFIG_PSTORE) += pstore/
134134
obj-$(CONFIG_EFIVAR_FS) += efivarfs/
135135
obj-$(CONFIG_EROFS_FS) += erofs/
136+
obj-$(CONFIG_VBOXSF_FS) += vboxsf/

fs/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.

fs/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

0 commit comments

Comments
 (0)