summaryrefslogtreecommitdiff
path: root/source3/utils/smbcontrol.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-04-04 14:49:21 +0200
committerVolker Lendecke <vl@samba.org>2012-04-17 10:21:03 +0200
commitee4f2abbda32c4712d0cbc0be171c31d1559a263 (patch)
treee254cba953c99c598ae77c92dde6bdadbc7a4a6b /source3/utils/smbcontrol.c
parent843432d56f9114a4d0d3021a772953dc5a1193dd (diff)
downloadsamba-ee4f2abbda32c4712d0cbc0be171c31d1559a263.tar.gz
samba-ee4f2abbda32c4712d0cbc0be171c31d1559a263.tar.bz2
samba-ee4f2abbda32c4712d0cbc0be171c31d1559a263.zip
s3: Add "notify-cleanup" to smbcontrol
This triggers a notify cleanup run which would normally only run periodically
Diffstat (limited to 'source3/utils/smbcontrol.c')
-rw-r--r--source3/utils/smbcontrol.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/source3/utils/smbcontrol.c b/source3/utils/smbcontrol.c
index 7d7eb1275a..95c56b03c8 100644
--- a/source3/utils/smbcontrol.c
+++ b/source3/utils/smbcontrol.c
@@ -1254,6 +1254,18 @@ static bool do_nodestatus(struct tevent_context *ev_ctx,
return send_message(msg_ctx, pid, MSG_SEND_PACKET, &p, sizeof(p));
}
+static bool do_notify_cleanup(struct tevent_context *ev_ctx,
+ struct messaging_context *msg_ctx,
+ const struct server_id pid,
+ const int argc, const char **argv)
+{
+ if (argc != 1) {
+ fprintf(stderr, "Usage: smbcontrol smbd notify-cleanup\n");
+ return false;
+ }
+ return send_message(msg_ctx, pid, MSG_SMB_NOTIFY_CLEANUP, NULL, 0);
+}
+
/* A list of message type supported */
static const struct {
@@ -1296,6 +1308,7 @@ static const struct {
{ "validate-cache" , do_winbind_validate_cache,
"Validate winbind's credential cache" },
{ "dump-domain-list", do_winbind_dump_domain_list, "Dump winbind domain list"},
+ { "notify-cleanup", do_notify_cleanup },
{ "noop", do_noop, "Do nothing" },
{ NULL }
};