From ac7b60a17bd4c4dbfaa2d9bb9e1d246800940928 Mon Sep 17 00:00:00 2001 From: David Disseldorp Date: Mon, 26 Mar 2012 17:34:52 +0200 Subject: s3-rpcclient: add fsrvp commands fss_create_expose connects to an FSRVP server and negotiates the creation and exposure of a share shadow-copy. shadow-copies of multiple shares can be requested with a single fss_create_expose request. ddiss@plati:~> bin/rpcclient -k -U 'LURCH\administrator%password' \ ncacn_np:lutze[sign] rpcclient $> fss_create_expose backup ro hyper 381884f2-b578-45ea-b8d2-cf82491f4011: shadow-copy set created ... share hyper@{B6137E21-9CBB-4547-A21D-E7AD40D0874B} exposed as a snapshot of \\lutze\hyper fss_delete removes the shadow-copy share: rpcclient $> fss_delete hyper 381884f2-b578-45ea-b8d2-cf82491f4011 \ b6137e21-9cbb-4547-a21d-e7ad40d0874 Shadow-copies can be created read-write or read-only. Experimenting with Windows Server "8" beta, a recovery complete call is required after creating a read-write (ATTR_AUTO_RECOVERY) shadow copy. Otherwise subsequent creation requests fail with FSRVP_E_SHADOW_COPY_SET_IN_PROGRESS. --- source3/librpc/rpc/rpc_common.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3/librpc') diff --git a/source3/librpc/rpc/rpc_common.c b/source3/librpc/rpc/rpc_common.c index 65e3205f62..1219b2d7a4 100644 --- a/source3/librpc/rpc/rpc_common.c +++ b/source3/librpc/rpc/rpc_common.c @@ -35,6 +35,7 @@ #include "../librpc/gen_ndr/ndr_ntsvcs.h" #include "../librpc/gen_ndr/ndr_epmapper.h" #include "../librpc/gen_ndr/ndr_drsuapi.h" +#include "../librpc/gen_ndr/ndr_fsrvp.h" static const char *get_pipe_name_from_iface( TALLOC_CTX *mem_ctx, const struct ndr_interface_table *interface) @@ -140,6 +141,9 @@ static bool initialize_interfaces(void) if (!smb_register_ndr_interface(&ndr_table_drsuapi)) { return false; } + if (!smb_register_ndr_interface(&ndr_table_FileServerVssAgent)) { + return false; + } return true; } -- cgit