Thanks for using the TrueNAS Community Edition issue tracker! TrueNAS Enterprise users receive direct support for their reports from our support portal.
Samba CLI utilities don't properly tear down messaging contexts
Description
cmdline_messaging_context() creates a lock directory in the msg.lock (which is on tmpfs). The lock directory is supposed to be removed by the destuctor for the returned messaging context. cmdline_messaging_context() is a wrapper around global_messaging_context(), which allocates under a NULL talloc context. This means that the calls to TALLOC_FREE() for the talloc stackframe used in CLI utilities doesn't remove the lock dir. This results in a slowly increasing amount of consumption of space on the underlying tmpfs filesystem.
cmdline_messaging_context() creates a lock directory in the msg.lock (which is on tmpfs). The lock directory is supposed to be removed by the destuctor for the returned messaging context. cmdline_messaging_context() is a wrapper around global_messaging_context(), which allocates under a NULL talloc context. This means that the calls to TALLOC_FREE() for the talloc stackframe used in CLI utilities doesn't remove the lock dir. This results in a slowly increasing amount of consumption of space on the underlying tmpfs filesystem.