From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jim Fehlig Subject: [PATCH] tools: Allow space in vbd path name Date: Tue, 25 May 2010 11:15:48 -0600 Message-ID: <4BFC05C4.60708@novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------050000090607090306010104" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------050000090607090306010104 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Trivial fix for block script ... Regards, Jim --------------050000090607090306010104 Content-Type: text/x-patch; name="block-script.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="block-script.patch" # HG changeset patch # User Jim Fehlig # Date 1274807602 21600 # Node ID 14d040342c6618365750b2c3b96ca01ff4a5e5dd # Parent 93410e5e4ad8799932ad31820d0d82c74d1f63a2 Allow space in vbd path name c/s 20393 breaks existing domain configuration that contains spaces in the vbd path name. Fixed by this trivial patch which provides missing quotes. Signed-off-by: Jim Fehlig diff -r 93410e5e4ad8 -r 14d040342c66 tools/hotplug/Linux/block --- a/tools/hotplug/Linux/block Sat May 22 06:36:41 2010 +0100 +++ b/tools/hotplug/Linux/block Tue May 25 11:13:22 2010 -0600 @@ -272,8 +272,8 @@ if [ "x$mode" != 'x!' ] then - inode=$(stat -c '%i' $file) - dev=$(stat -c '%D' $file) + inode=$(stat -c '%i' "$file") + dev=$(stat -c '%D' "$file") if [ -z "$inode" ] || [ -z "$dev" ] then fatal "Unable to lookup $file: dev: $dev inode: $inode" --------------050000090607090306010104 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------050000090607090306010104--