From: Ian Jackson Subject: Re: [PATCH v3 2/5] libxl: add libxl__xs_path_cleanup Date: Mon, 23 Apr 2012 16:33:40 +0100 Message-ID: <20373.30292.162693.913028@mariner.uk.xensource.com> References: <1334928211-29856-1-git-send-email-roger.pau@citrix.com> <1334928211-29856-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: <1334928211-29856-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 v3 2/5] 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. This is all rather odd. I hadn't previously noticed the existence of xenstore-rm -t. With the C xenstored, the RM command will delete a whole directory tree, regardless of its contents. This is documented in docs/misc/xenstore.txt. The comment in xs.c near xs_rm, which says that directories must be empty, seems to be wrong. What does oxenstored do ? I'm tempted to say that it should follow the C xenstored behaviour. Ian.