From ee4f2abbda32c4712d0cbc0be171c31d1559a263 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 4 Apr 2012 14:49:21 +0200 Subject: s3: Add "notify-cleanup" to smbcontrol This triggers a notify cleanup run which would normally only run periodically --- source3/utils/smbcontrol.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'source3/utils') 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 } }; -- cgit