[Samba] /etc/msg.sock folder questions regarding nvram/wear leveling.

Rowland penny rpenny at samba.org
Fri Mar 11 12:24:16 UTC 2016


On 11/03/16 12:08, Andy Walsh wrote:
> Hi,
>
> i try to create a openWRT Samba 4.3 package and stumbled across the fact
> that samba 4.3 will create those message socks inside the private-dir. That
> results in creating entries inside /etc/samba/msg.sock.
>
> On openWRT /var is a tempFS in ram, so anything there is not a problem
> regarding nvram and wear leveling. Yet the root uses a jffs2 overlay. So
> while those message socks have no size, jffs2 still needs to write the dir
> table, since they survive a reboot.
>
> I'm now wondering how frequently those sock entries are created/deleted
> while running samba? In my tests the msg.sock folder kept growing over time
> from 3-4 entries to 8/12 ?
>
> Maybe its reasonable to allow /etc/msg.sock to also reside inside the /var
> folder, with some extra "dir-xy" configure option or/and smb.conf?
>
> bye
> Andy
>
>

You can choose a different directory, you don't have to use '/var'. I 
take it you are compiling Samba yourself, so try running './configure 
--help' inside the tarballs base directory.

Rowland




More information about the samba mailing list