[stgt] [PATCH] bs_sheepdog.c: support various VDI options in --backing-store option
FUJITA Tomonori
fujita.tomonori at lab.ntt.co.jp
Fri Oct 11 05:27:16 CEST 2013
On Tue, 8 Oct 2013 17:39:21 +0900
Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp> wrote:
> Current bs_sheepdog.c only supports connections to sheep process which
> listen on localhost:7000 (tcp). This patch makes the address, port,
> and protocol specifiable via --backing-store option of tgtadm. In
> addition, snapshots of VDIs can be logical units when tag or snapshot
> ID is passed to the option.
>
> The form of --backing-store option:
> - unix:<path_of_unix_domain_socket>:<vdi>
> - unix:<path_of_unix_domain_socket>:<vdi>:<tag>
> - unix:<path_of_unix_domain_socket>:<vdi>:<snapid>
> - tcp:<host>:<port>:<vdi>
> - tcp:<host>:<port>:<vdi>:<tag>
> - tcp:<host>:<port>:<vdi>:<snapid>
> - tcp:<port>:<vdi>
> - tcp:<port>:<vdi>:<tag>
> - tcp:<port>:<vdi>:<snapid>
>
> Example of the option: -b unix:/sheep_store/sock:tgt0:1
> (connect via unix domain socket, the path of socket is
> /sheep_store/sock, VDI name is tgt0, use snapshot of ID 1)
>
> Signed-off-by: Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp>
> ---
> usr/bs_sheepdog.c | 214 +++++++++++++++++++++++++++++++++++++++++++++++++----
> 1 file changed, 199 insertions(+), 15 deletions(-)
Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
More information about the stgt
mailing list