From: Ian Jackson Subject: Re: [RFC PATCH 2/6] libxl: stop using libxl__xs_mkdir() for ~/control/shutdown Date: Tue, 24 Nov 2015 16:34:35 +0000 Message-ID: <22100.37275.70733.869315@mariner.uk.xensource.com> References: <1447258719-21891-1-git-send-email-paul.durrant@citrix.com> <1447258719-21891-3-git-send-email-paul.durrant@citrix.com> <22090.4182.47345.718602@mariner.uk.xensource.com> <9AAE0902D5BC7E449B7C8E4E778ABCD02F673A1F@AMSPEX01CL01.citrite.net> <22090.4808.733814.408085@mariner.uk.xensource.com> <9AAE0902D5BC7E449B7C8E4E778ABCD02F673B74@AMSPEX01CL01.citrite.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1a1GYB-0000ND-61 for xen-devel@lists.xenproject.org; Tue, 24 Nov 2015 16:34:39 +0000 In-Reply-To: <9AAE0902D5BC7E449B7C8E4E778ABCD02F673B74@AMSPEX01CL01.citrite.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Paul Durrant Cc: "xen-devel@lists.xenproject.org" , Stefano Stabellini , Ian Campbell , Wei Liu List-Id: xen-devel@lists.xenproject.org Paul Durrant writes ("RE: [RFC PATCH 2/6] libxl: stop using libxl__xs_mkdir() for ~/control/shutdown"): > [Ian Jackson] > > Paul Durrant writes ("RE: [RFC PATCH 2/6] libxl: stop using libxl__xs_mkdir() > > for ~/control/shutdown"): > > > [Ian Jackson:] > > > > Maybe it would be easier to rename libxl__xs_mkdir to > > > > libxl__xs_mknode ? (It's probably too late to rename XS_MKDIR.) > > > > > > There is still the need to set the path to an empty value though, which is > > not implicitly done by the XS_MKDIR. > > > > Under what circumstances would this path not contain an empty value > > after XS_MKDIR ? > > In this case I believe you are correct, but my feeling was that > people reading the code would be lulled into a false sense of > security that XS_MKDIR always did the right thing to initialize a > new path. I'm not sure I follow this argument. What did you think of my idea of renaming libxl__xs_mkdir to libxl__xs_mknode ? Ian.