smbfs Filesystem
SMB file sharing can work both ways. Samba allows you to set up your FreeBSD machine as an SMB server only, but there is a way to set it up as a client and mount a remote SMB share like any other filesystem. This is smbfs, available in the ports at /usr/ports/net/smbfs.
An smbfs implementation has existed for Linux for some time; the FreeBSD implementation is new and native to the platform because as a filesystem, it has to be integrated into the kernel—and the kernels are the least compatible parts of any two operating systems. The smbfs port for FreeBSD creates an smbfs.ko kernel module in /modules and a mount_smbfs tool in /sbin that works like all the other mount_* tools that we saw in Chapter 9, “The FreeBSD Filesystem.” ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access