Skip to main content
Version: 5.11.0

Mount options

leil-mount is the native LeilFS client. It uses FUSE3 to present the filesystem as a standard POSIX directory. This page lists its options; for a first mount see Mounting the client.

note

sfsmount is deprecated and will be removed in a future release, but is still the current client. Confirm the option set on your version with man sfsmount.


Basic mounting

# Mount, giving the master host explicitly
sudo leil-mount /mnt/client -H 192.168.10.10

# Prompt for a password (export protected with password=)
sudo leil-mount /mnt/client -H 192.168.10.10 -p

# Mount a subdirectory of the namespace
sudo leil-mount /mnt/client -H 192.168.10.10 -S /projects/teamA
FlagMeaning
-H HOSTMaster host to connect to
-P PORTMaster port (default 9421)
-S PATHMount this subdirectory of the LeilFS namespace
-pPrompt for the export password interactively

-o options

OptionMeaningDefault
sfsmaster=HOSTMaster host (alternative to -H)
sfsport=PORTMaster port (alternative to -P)9421
sfsbind=HOSTLocal address to bind the client socket to
sfssubfolder=PATHMount this subdirectory (alternative to -S)/
sfspassword=PASSExport password (non‑interactive)
sfsmd5pass=MD5Export password as an MD5 hash
sfsdonotrememberpasswordDo not cache the password in memory
sfsdelayedinitConnect to the master in the background
sfscachemode=MODEData cache mode: NO, YES, AUTOAUTO
sfsattrcacheto=SECAttribute cache timeout (seconds)1.0
sfsentrycacheto=SECEntry cache timeout (seconds)0.0
sfsdirentrycacheto=SECDirectory‑entry cache timeout (seconds)1.0
cacheexpirationtime=MSECRead‑cache validity window (ms)1000
symlinkcachetimeout=SECSymlink cache timeout (seconds)3600
sfswritecachesize=MIBWrite cache size (MiB, range 16–2048)128
readaheadmaxwindowsize=KBPer‑descriptor readahead (KiB)16384
readcachemaxsizepercentage=PRead cache as % of system memory60
sudo leil-mount /mnt/client -H 192.168.10.10 \
-o sfssubfolder=/projects,sfswritecachesize=512,sfscachemode=AUTO

See Performance tuning for which of these to change and when.


Mounting at boot with /etc/fstab

Add a line so the client mounts automatically. Use _netdev so the mount waits for the network:

# <master>:<subfolder>   <mountpoint>   <type>   <options>   0 0
sfsmount#192.168.10.10:/ /mnt/client fuse _netdev,defaults 0 0
caution

The exact fstab syntax (filesystem type and master/subfolder field) depends on your package version. Verify the format for your install against man sfsmount before relying on an fstab entry, and test with mount /mnt/client before rebooting.