Using ZFS Case insensitive filesystems with Samba

Jeremy Allison jra at
Tue Feb 25 14:08:18 MST 2014

Here's something I learned when working with the FreeNAS folks :

ZFS can be configured to be case insensitive when
you create the filesystem (NOTE - cannot be altered
*after* the filesystem is created).

zfs create -o casesensitivity=insensitive filesystem

Once you've done this set the following in the
share definition in your smb.conf :

	path = /foo
	case sensitive = true

and Samba will go *much* faster for
directories with large numbers of files
(we don't have to scan the directory on
every cache miss) !

This should also work with ZFS on Linux:


More information about the samba-technical mailing list