From 92280def16dc5e307b197a3d528a13cdd6041a29 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 13 Dec 2011 09:20:20 +0100 Subject: s3:smbcontrol: remove unused "samsync" and "samrepl" commands metze --- docs-xml/manpages-3/smbcontrol.1.xml | 12 ------------ source3/utils/smbcontrol.c | 30 ------------------------------ 2 files changed, 42 deletions(-) diff --git a/docs-xml/manpages-3/smbcontrol.1.xml b/docs-xml/manpages-3/smbcontrol.1.xml index 31c3537a65..f83376bbd4 100644 --- a/docs-xml/manpages-3/smbcontrol.1.xml +++ b/docs-xml/manpages-3/smbcontrol.1.xml @@ -222,18 +222,6 @@ - - samsync - Order smbd to synchronise sam database from PDC (being BDC). Can only be sent to smbd. - Not working at the moment - - - - - samrepl - Send sam replication message, with specified serial. Can only be sent to smbd. Should not be used manually. - - dmalloc-mark Set a mark for dmalloc. Can be sent to both smbd and nmbd. Only available if samba is built with dmalloc support. diff --git a/source3/utils/smbcontrol.c b/source3/utils/smbcontrol.c index 747c35ceba..f0eafa08ee 100644 --- a/source3/utils/smbcontrol.c +++ b/source3/utils/smbcontrol.c @@ -822,34 +822,6 @@ static bool do_brl_revalidate(struct messaging_context *msg_ctx, return send_message(msg_ctx, pid, MSG_SMB_BRL_VALIDATE, NULL, 0); } -/* Force a SAM synchronisation */ - -static bool do_samsync(struct messaging_context *msg_ctx, - const struct server_id pid, - const int argc, const char **argv) -{ - if (argc != 1) { - fprintf(stderr, "Usage: smbcontrol samsync\n"); - return False; - } - - return send_message(msg_ctx, pid, MSG_SMB_SAM_SYNC, NULL, 0); -} - -/* Force a SAM replication */ - -static bool do_samrepl(struct messaging_context *msg_ctx, - const struct server_id pid, - const int argc, const char **argv) -{ - if (argc != 1) { - fprintf(stderr, "Usage: smbcontrol samrepl\n"); - return False; - } - - return send_message(msg_ctx, pid, MSG_SMB_SAM_REPL, NULL, 0); -} - /* Display talloc pool usage */ static bool do_poolusage(struct messaging_context *msg_ctx, @@ -1268,8 +1240,6 @@ static const struct { { "ip-dropped", do_ip_dropped, "Tell winbind that an IP got dropped" }, { "lockretry", do_lockretry, "Force a blocking lock retry" }, { "brl-revalidate", do_brl_revalidate, "Revalidate all brl entries" }, - { "samsync", do_samsync, "Initiate SAM synchronisation" }, - { "samrepl", do_samrepl, "Initiate SAM replication" }, { "pool-usage", do_poolusage, "Display talloc memory usage" }, { "dmalloc-mark", do_dmalloc_mark, "" }, { "dmalloc-log-changed", do_dmalloc_changed, "" }, -- cgit