If you want to skip the potentially expensive process_exists calls when
enumerating millions of files, set
srvsvc : file enum check stale = false
in your [global] section of your smb.conf
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Xavi Hernandez <xhernandez@redhat.com>
Reviewed-by: Shweta Sodani <ssodani@redhat.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Anoop C S <anoopcs@samba.org>
/* If the pid was not found delete the entry from connections.tdb */
- if ( !process_exists(e->pid) ) {
+ if (lp_parm_bool(-1, "srvsvc", "file enum check stale", true) &&
+ !process_exists(e->pid) ) {
return 0;
}