stgt.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Takashi Menjo" <menjo.takashi@lab.ntt.co.jp>
To: stgt@vger.kernel.org
Cc: ishizaki.teruaki@lab.ntt.co.jp, mitake.hitoshi@lab.ntt.co.jp,
	'FUJITA Tomonori' <fujita.tomonori@lab.ntt.co.jp>
Subject: RE: [PATCH] sheepdog: reject snapshot as a LUN to avoid deleting working VDI
Date: Thu, 13 Oct 2016 18:51:02 +0900	[thread overview]
Message-ID: <001901d22537$4f1e23d0$ed5a6b70$@lab.ntt.co.jp> (raw)
In-Reply-To: <20161013.181513.1568838937885757326.fujita.tomonori@lab.ntt.co.jp>

Dear Tomonori,

> Hmm, why my Signed-off-by is here?
> 
> Anyway, I'll wait for an ACK from one of the guys listed above.

I'm very sorry but it seems I made a mistake when copy-and-paste addresses
from other commit log. I'll fix the commit log then resend the patch as v2.

Best regards,
Takashi


> -----Original Message-----
> From: FUJITA Tomonori [mailto:fujita.tomonori@lab.ntt.co.jp]
> Sent: Thursday, October 13, 2016 6:15 PM
> To: menjo.takashi@lab.ntt.co.jp
> Cc: stgt@vger.kernel.org; ishizaki.teruaki@lab.ntt.co.jp;
> mitake.hitoshi@lab.ntt.co.jp
> Subject: Re: [PATCH] sheepdog: reject snapshot as a LUN to avoid deleting
> working VDI
> 
> On Thu, 13 Oct 2016 17:49:04 +0900
> Takashi Menjo <menjo.takashi@lab.ntt.co.jp> wrote:
> 
> > This commit lets the sheepdog driver reject forms of filename below.
> > This is to avoid unintended deletion of working VDI when a snapshot is
> > given as a LUN.
> >
> >  * unix:<path_of_unix_domain_socket>:<vdi>:<tag>
> >  * unix:<path_of_unix_domain_socket>:<vdi>:<snapid>
> >  * tcp:<host>:<port>:<vdi>:<tag>
> >  * tcp:<host>:<port>:<vdi>:<snapid>
> >
> > In the case that a snapshot is given as a LUN by any of them above, the
> > sheepdog driver attempts to delete it then create a new writable VDI
when
> > some data is being written to it. The deletion request contains name and
> > VDI ID of the snapshot. However, sheep daemon uses its name but ignores
> > VDI ID and, what is worse, the request contains neither snapshot ID nor
> > tag. So sheep daemon receiving the request interprets it as deletion of
> > working VDI, not snapshot. If there is working VDI with the same name,
> > it will be deleted unintentionally.
> >
> > I decided not to fix the sheepdog driver to send snapshot ID or tag but
> > to let it reject snapshot as a LUN because, even if I fix it, creating
> > a new writable VDI will be failed when working VDI exists. If you want
> > workaround, use "dog vdi clone" command to create a new writable VDI
from
> > snapshot then give the new VDI as a LUN.
> >
> > Cc: Teruaki Ishizaki <ishizaki.teruaki@lab.ntt.co.jp>
> > Cc: Hitoshi Mitake <mitake.hitoshi@lab.ntt.co.jp>
> > Signed-off-by: Takashi Menjo <menjo.takashi@lab.ntt.co.jp>
> > Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
> 
> Hmm, why my Signed-off-by is here?
> 
> Anyway, I'll wait for an ACK from one of the guys listed above.
> 




      reply	other threads:[~2016-10-13  9:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-13  8:49 [PATCH] sheepdog: reject snapshot as a LUN to avoid deleting working VDI Takashi Menjo
2016-10-13  9:15 ` FUJITA Tomonori
2016-10-13  9:51   ` Takashi Menjo [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='001901d22537$4f1e23d0$ed5a6b70$@lab.ntt.co.jp' \
    --to=menjo.takashi@lab.ntt.co.jp \
    --cc=fujita.tomonori@lab.ntt.co.jp \
    --cc=ishizaki.teruaki@lab.ntt.co.jp \
    --cc=mitake.hitoshi@lab.ntt.co.jp \
    --cc=stgt@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).