Uploaded image for project: 'TrueNAS'
  1. TrueNAS
  2. NAS-108801

Samba CLI utilities don't properly tear down messaging contexts

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done (View Workflow)
    • Priority: Low
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 12.0-U2
    • Component/s: SMB
    • Labels:
      None

      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.

        Attachments

          Attachments

            JEditor

              Issue Links

                Activity

                  People

                  Assignee:
                  awalker Andrew Walker
                  Reporter:
                  awalker Andrew Walker
                  Watchers:
                  Andrew Walker, Bug Clerk
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved: