All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Roger Pau Monné" <roger.pau@citrix.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: Ian Jackson <Ian.Jackson@eu.citrix.com>,
	Marek Marczykowski <marmarek@invisiblethingslab.com>,
	"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: [PATCH] libxl: do not call default block script
Date: Fri, 10 May 2013 16:29:22 +0200	[thread overview]
Message-ID: <518D0442.5020907@citrix.com> (raw)
In-Reply-To: <1368195712.27857.139.camel@zakaz.uk.xensource.com>

On 10/05/13 16:21, Ian Campbell wrote:
> On Fri, 2013-05-10 at 15:19 +0100, Roger Pau Monne wrote:
>> On 08/05/13 07:07, Marek Marczykowski wrote:
>>> When user didn't specified disk->script, libxl writes physical-device
>>> node itself, making script call redundant - especially the default one.
>>
>> This change will break NetBSD support, please also attach the necessary
>> NetBSD change or at least mention it in the commit message, so it can be
>> fixed.
> 
> I hadn't thought about NetBSD. This strongly suggests that if it is
> appropriate at all it is most definitely 4.4 material since it has
> non-obvious affects.
> 
>> If I'm right, the block script does other things apart from writing the
>> physical device major/minor, it also checks that no other domain is
>> using this device.
> 
> I nearly said that too but at least in the Linux scripts the presence of
> the physical-device node cause the script to exit before that check.
> Oops.

Ooops, I should have looked at the actual script before speaking so
quickly. It looks like this might cause trouble, specially because we no
longer check that the block device is not opened by two guests at the
same time, IMHO the right solution would be to prevent libxl from
writing the physical-device entry at all, and I'm not sure if this
shouldn't be considered as a bug fix for 4.3.

NetBSD for example prevents a block device from being opened more than
once at the same time, but I don't think Linux does this.

> 
>> If you want to make the hotplug script call non
>> redundant I would recommend to prevent libxl from witting physical
>> device major/minor instead of removing the execution of the hotplug script.
> 
> I think this is something we can resolve one way or the other with your
> hotplug script rework in 4.4, since it presumably adds new requirements
> here.
> 
> Ian.
> 
> 

  reply	other threads:[~2013-05-10 14:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-08  5:07 [PATCH] libxl: do not call default block script Marek Marczykowski
2013-05-10 13:58 ` Ian Campbell
2013-05-10 14:19 ` Roger Pau Monné
2013-05-10 14:21   ` Ian Campbell
2013-05-10 14:29     ` Roger Pau Monné [this message]
2013-05-10 14:41       ` Ian Campbell

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=518D0442.5020907@citrix.com \
    --to=roger.pau@citrix.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=marmarek@invisiblethingslab.com \
    --cc=xen-devel@lists.xen.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.