WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] ioctl 0000126c not supported by XL blkif

To: Luke Crawford <lsc@xxxxxxxxx>
Subject: Re: [Xen-devel] ioctl 0000126c not supported by XL blkif
From: Ian Campbell <Ian.Campbell@xxxxxxxxxxxxx>
Date: Wed, 06 Dec 2006 10:41:26 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 06 Dec 2006 02:41:30 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <Pine.NEB.4.64.0612051016120.8487@xxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <Pine.NEB.4.64.0612051016120.8487@xxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Tue, 2006-12-05 at 10:44 -0800, Luke Crawford wrote:
> I am using the srpm from
> http://xenbits.xensource.com/kernels/rhel3x/kernel-2.4.21-47.0.1.EL.xs0.3.5.
> 15.src.rpm
> 
> (I get the same issue using the binary RPM)
> 
> the dom0 is running 3.0.3_0
> 
> Upon booting the DomU, (the DomU has been passed phy:/dev/sda6, which has 
> been  partitioned using qemu)   I get the following ioctl errors.
> 
> ioctl 0000126c not supported by XL blkif

0x12 seems to be the type used for the BLK* ioctls defined in
include/linux/fs.h and 0x6c==108 is listed as BLKGETLASTSECT.

Strangely it is #ifdef CONFIG_IA64 everywhere in the kernel source
(header and drivers/block/blkpg.c). In the system wide version
(/usr/include/linux/fs.h) it is defined unconditionally.

There is also a comment in the source which says "108-111 have been used
for various private purposes".

The IOCTL was added by linux-2.4.21-lastsector.patch from the SRPM.

Anyway, I don't see these errors on my RHEL38 guest during normal
booting, only when I do something extra like running "parted". You are
running a RHEL3x userspace aren't you?

Could you try the patch below, hopefully it will give some indication
which process is calling the unimplemented ioctl. Once we have confirmed
for sure that it is BLKGETLASTSECT on x86 we can look at fixing it up.

My feeling is that the warning is pretty harmless. Though it might bite
you if you wanted to repartition or something.

Ian.

[BLKFRONT] Report the process making an unsupported IOCTL.

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxxxxx>
diff -r d2d1872fce96 drivers/xen/blkfront/blkfront.c
--- a/drivers/xen/blkfront/blkfront.c   Mon Dec 04 09:32:41 2006 +0000
+++ b/drivers/xen/blkfront/blkfront.c   Wed Dec 06 10:31:31 2006 +0000
@@ -621,7 +621,8 @@ int blkif_ioctl(struct inode *inode, str
                return -ENOSYS;
 
        default:
-               printk(KERN_ALERT "ioctl %08x not supported by XL blkif\n", 
command);
+               printk(KERN_ALERT "ioctl %08x from pid %d \"%s\" not supported 
by XL blkif\n",
+                      command, current->pid, current->comm);
                return -ENOSYS;
        }
     



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel