> -----Original Message----- > From: libvir-list-bounces@xxxxxxxxxx [mailto:libvir-list-bounces@xxxxxxxxxx] On > Behalf Of Chen, Hanxiao > Sent: Monday, January 19, 2015 2:26 PM > To: Ján Tomko; libvir-list@xxxxxxxxxx > Subject: Re: [PATCH 1/2] Introduce btrfsCloneFile for btrfs COW copy > > > > > -----Original Message----- > > From: Ján Tomko [mailto:jtomko@xxxxxxxxxx] > > Sent: Friday, January 16, 2015 10:21 PM > > To: Chen, Hanxiao/陈 晗霄; libvir-list@xxxxxxxxxx [snip] > > > +#define BTRFS_IOC_CLONE _IOW (BTRFS_IOCTL_MAGIC, 9, int) > > > + > > > > Instead of redefining the constants, can we check for btrfs.h at configure > > time and wrap the function in #ifdef BTRFS_IOC_CLONE ? > > > We need to install btrfs-progs-devel for BTRFS_IOC_CLONE in <btrfs/ioctl.h>. > So it should be easy to just define magic number and issue a ioctl, > than add a dependency on btrfs-progs-devel. > > Do we need to add a LIBVIRT_CHECK_PKG for btrfs-progs-devel? > Hi Jan, Any comments? Thanks, - Chen -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list