Skip to content

Commit

Permalink
fs: Add VirtualBox guest shared folder (vboxsf) support
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
jwrdegoede authored and Al Viro committed Feb 8, 2020
1 parent f35aa2b commit 0fd1695
Show file tree
Hide file tree
Showing 12 changed files with 3,280 additions and 0 deletions.
6 changes: 6 additions & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -17610,6 +17610,12 @@ F: include/linux/vbox_utils.h
F: include/uapi/linux/vbox*.h
F: drivers/virt/vboxguest/

VIRTUAL BOX SHARED FOLDER VFS DRIVER:
M: Hans de Goede <[email protected]>
L: [email protected]
S: Maintained
F: fs/vboxsf/*

VIRTUAL SERIO DEVICE DRIVER
M: Stephen Chandler Paul <[email protected]>
S: Maintained
Expand Down
1 change: 1 addition & 0 deletions fs/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ source "fs/pstore/Kconfig"
source "fs/sysv/Kconfig"
source "fs/ufs/Kconfig"
source "fs/erofs/Kconfig"
source "fs/vboxsf/Kconfig"

endif # MISC_FILESYSTEMS

Expand Down
1 change: 1 addition & 0 deletions fs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,4 @@ obj-$(CONFIG_CEPH_FS) += ceph/
obj-$(CONFIG_PSTORE) += pstore/
obj-$(CONFIG_EFIVAR_FS) += efivarfs/
obj-$(CONFIG_EROFS_FS) += erofs/
obj-$(CONFIG_VBOXSF_FS) += vboxsf/
10 changes: 10 additions & 0 deletions fs/vboxsf/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
config VBOXSF_FS
tristate "VirtualBox guest shared folder (vboxsf) support"
depends on X86 && VBOXGUEST
select NLS
help
VirtualBox hosts can share folders with guests, this driver
implements the Linux-guest side of this allowing folders exported
by the host to be mounted under Linux.

If you want to use shared folders in VirtualBox guests, answer Y or M.
5 changes: 5 additions & 0 deletions fs/vboxsf/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# SPDX-License-Identifier: MIT

obj-$(CONFIG_VBOXSF_FS) += vboxsf.o

vboxsf-y := dir.o file.o utils.o vboxsf_wrappers.o super.o
Loading

0 comments on commit 0fd1695

Please sign in to comment.