DIRFS(5)

NAME
dirfs - pseudo-filesystem for vkernel

SYNOPSIS
To compile this driver into the vkernel, place the following line in your vkernel configuration file:

options DIRFS

Actually this driver does not provide a loadable module.

In fstab(5):
    /usr/src     /mnt dirfs rw 0 0

DESCRIPTION
dirfs was born from the idea of providing an easy way for vkernel(7) to access host's directories without any sort of configuration as it would be needed by NFS for example.

It runs directly in the vkernel's VFS(9) code, as any other regular filesystem but it uses syscalls to retrieve the information needed for every operation requested.

It should be noted that when the vkernel is run by a regular user, the operations dirfs can perform on the mounted host directory are bound to the permissions of the aforementioned user.

Multiple dirfs mounts are allowed.

EXAMPLES
To mount a dirfs memory file system:

    mount -t dirfs /usr/src /mnt

SEE ALSO
fstab(5), mount_dirfs(8)

HISTORY
The dirfs driver first appeared in DragonFly 3.5.

AUTHORS
-nosplit The dirfs vkernel implementation was written from the scratch by Antonio Huete Jimenez <tuxillo@quantumachine.net>

Numerous fixes and pointers by Matthew Dillon <dillon@apollo.backplane.com>

This manual page was written by Antonio Huete Jimenez <tuxillo@quantumachine.net>

BUGS
Currently there is no locking on file descriptors between the host and the vkernel. This means that there might be problems with concurrent accesses to the same file.

There is no support for hardlinks in dirfs yet.