From: Ian Jackson Subject: Re: [PATCH v4 2/4] libxl: add libxl__xs_path_cleanup Date: Thu, 10 May 2012 17:05:10 +0100 Message-ID: <20395.59190.970887.861230@mariner.uk.xensource.com> References: <1336649312-11198-1-git-send-email-roger.pau@citrix.com> <1336649312-11198-3-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: <1336649312-11198-3-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: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Roger Pau Monne writes ("[Xen-devel] [PATCH v4 2/4] libxl: add libxl__xs_path_cleanup"): > Add a function which behaves like "xenstore-rm -t", and which will be > used to > clean xenstore after unplug since we will be no longer executing > xen-hotplug-cleanup script, that used to do that for us. I still think this needs to run in a transaction. Otherwise, if another xenstore user adds an entry to one of the directories we think is empty, we will unwittingly remove that entry. And in general it may be necessary to use the caller's transaction. So I would make libxl__xs_path_cleanup always require a non-null transaction to be passed in by the caller. Ian.