[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-discuss] error: ‘XFS_IOC_ZERO_RANGE’ undeclared (first use in

From: qiaojianfeng
Subject: Re: [Qemu-discuss] error: ‘XFS_IOC_ZERO_RANGE’ undeclared (first use in this function)
Date: Tue, 19 May 2015 17:28:21 +0800

Hi Peter,

Thank you for the prompt response.

I finally root cause this issue, that’s because the ‘xfsprogs’ package in our system is too old. When I build and install the latest one, the issue disappears and I can compile qemu successfully.

But unfortuanately, I got an error message where I’m trying to start a vm with following command.

# qemu-system-x86_64 /var/lib/libvirt/images/jevon-opensuse-13.2-bk -smp 2 -m 2048 -nographic 

LTTng-UST: Error (-17) while registering tracepoint probe. Duplicate registration of tracepoint probes having the same name is not allowed.

I made a trival change in the configure file which aims to load a library named libcephfs.so.1 and added a file in qemu to link the library.
$ git diff configure

diff --git a/configure b/configure

index 1f0f485..979d8f3 100755

--- a/configure

+++ b/configure

@@ -2941,9 +2941,10 @@ int main(void) {

     return 0;



-  rbd_libs="-lrbd -lrados"

+  rbd_libs="-lrbd -lrados -lcephfs"

   if compile_prog "" "$rbd_libs" ; then



     if test "$rbd" = "yes" ; then

       feature_not_found "rados block device" "Install librbd/ceph devel"

I googled it but find no solution to solve this. I’m wondering if there is a way to disable LTTng-UST while running the qemu vm.


发件人: Peter Maydell<address@hidden>
收件人: qiaojianfeng<address@hidden>
抄送: qemu-discuss<address@hidden>; QEMU Developers<address@hidden>; Kevin Wolf<address@hidden>
发送时间: 2015年5月19日(周二) 15:26
主题: Re: [Qemu-discuss] error: ‘XFS_IOC_ZERO_RANGE’ undeclared (first use in this function)

On 19 May 2015 at 03:01, qiaojianfeng <address@hidden> wrote:
> I’m not sure whether I post the issue in the right place, if not correct,
> sorry for noise and please help me route this email to the right place.

I've cc'd qemu-devel and the block maintainer.

> I’m running into an error while I build the lastest qemu source code.  The
> error messages are as follows,
> block/raw-posix.c: In function ‘xfs_write_zeroes’:
> block/raw-posix.c:1025: error: ‘XFS_IOC_ZERO_RANGE’ undeclared (first use in
> this function)
> block/raw-posix.c:1025: error: (Each undeclared identifier is reported only
> once
> block/raw-posix.c:1025: error: for each function it appears in.)
> make: *** [block/raw-posix.o] Error 1

What system are you building this on? It looks like we think we have
XFS support but your system's xfs.h doesn't have the definition of that
ioctl, which is a bit odd because it's been around for years.

-- PMM

reply via email to

[Prev in Thread] Current Thread [Next in Thread]