From: Ian Jackson Subject: Re: [PATCH v1 11/12] hotplug: document new hotplug interface Date: Wed, 13 Mar 2013 16:29:38 +0000 Message-ID: <20800.43378.753644.553852@mariner.uk.xensource.com> References: <1358963317-10221-1-git-send-email-roger.pau@citrix.com> <1358963317-10221-12-git-send-email-roger.pau@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1358963317-10221-12-git-send-email-roger.pau@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Roger Pau Monne Cc: Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Roger Pau Monne writes ("[Xen-devel] [PATCH v1 11/12] hotplug: document new hotplug interface"): > Mention the new diskspec parameter and add a document explaining the > new hotplug interface. ... > +HOTPLUG_PATH > +------------ > + > +Points to the xenstore directory that holds information relative > +to this hotplug script. At present only one parameter is passed by > +the toolstack, the "params" xenstore entry which contains the "target" > +line specified in the diskspec xl disk configuration (pdev_path in > +libxl_device_disk struct). > + > +This xenstore directory will be used to communicate between the > +hotplug script and the toolstack, and it can also be used by the > +hotplug script to store temporary information. Doesn't this leave the possibility that a script might decide to write "sponge"="42" in the xenstore directory, for its own purposes, and that libxl might later decide to try to pass "sponge"="bath" for an enhanced interface ? I think you need to specify which names each user is entitled to use. Also, you need to say something about access control. > +======================= > +COMMAND LINE PARAMETERS > +======================= ... > +Script will be called with only one parameter, that is either prepare, > +add, remove, unprepare, localattach or localdetach. You need to say what scripts should do with unknown parameters. > +BACKEND_PATH: not valid > + > +Expected output: > +HOTPLGU_PATH/version = version supported by the hotplug script The output is written into xenstore ? (Also, typo.) thanks, Ian.