fsrvp: prune shadow copies if associated path doesn't exist
authorNoel Power <noel.power@suse.com>
Thu, 13 Nov 2014 11:13:35 +0000 (11:13 +0000)
committerJeremy Allison <jra@samba.org>
Tue, 31 Mar 2015 16:40:25 +0000 (18:40 +0200)
commit7a38f148acbaa5d1d773e5609492e4ade1f456aa
tree89829320cea75bf53176a174e95dcc4a712a6897
parentb6e034069f2a61d622c9fcacd30ff63e2fb59f92
fsrvp: prune shadow copies if associated path doesn't exist

This patch implements some simple FSRVP server housekeeping. On startup
the server scans the cached entries, any entries where the underlying
system paths associated with shadow copies no longer exist are removed
from the cache and from the registry.

This behaviour is disabled by default, but can be enabled via the new
"fss: prune stale" smb.conf parameter.

Signed-off-by: Noel Power <noel.power@suse.com>
Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/rpc_server/fss/srv_fss_agent.c
source3/rpc_server/fss/srv_fss_agent.h
source3/rpc_server/fssd.c