From: john.levon@sun.com Subject: [PATCH] Update Solaris balloon ioctl value Date: Thu, 14 Jun 2007 16:01:27 -0700 Message-ID: <48ee88f21a3f6f4e92ea.1181862087@xenbld> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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@lists.xensource.com List-Id: xen-devel@lists.xenproject.org # HG changeset patch # User john.levon@sun.com # Date 1181862080 25200 # Node ID 48ee88f21a3f6f4e92eafb2dec286df156f54cfe # Parent fe5d6991c494f06b9c23dd660780a343ad09498e Update Solaris balloon ioctl value The balloon ioctl value should use a 32-bit value instead of a 16-bit value to distinguish itself from other ioctls. Signed-off-by: Ryan Scott diff --git a/tools/python/xen/xend/osdep.py b/tools/python/xen/xend/osdep.py --- a/tools/python/xen/xend/osdep.py +++ b/tools/python/xen/xend/osdep.py @@ -65,11 +65,11 @@ def _solaris_balloon_stat(label): import fcntl import array DEV_XEN_BALLOON = '/dev/xen/balloon' - BLN_IOCTL_CURRENT = 0x4201 - BLN_IOCTL_TARGET = 0x4202 - BLN_IOCTL_LOW = 0x4203 - BLN_IOCTL_HIGH = 0x4204 - BLN_IOCTL_LIMIT = 0x4205 + BLN_IOCTL_CURRENT = 0x42410001 + BLN_IOCTL_TARGET = 0x42410002 + BLN_IOCTL_LOW = 0x42410003 + BLN_IOCTL_HIGH = 0x42410004 + BLN_IOCTL_LIMIT = 0x42410005 label_to_ioctl = { 'Current allocation' : BLN_IOCTL_CURRENT, 'Requested target' : BLN_IOCTL_TARGET, 'Low-mem balloon' : BLN_IOCTL_LOW,