All of lore.kernel.org
 help / color / mirror / Atom feed
* ioctl compatibility
@ 2010-12-04 23:17 Noah Watkins
  2010-12-06 17:46 ` Gregory Farnum
  0 siblings, 1 reply; 4+ messages in thread
From: Noah Watkins @ 2010-12-04 23:17 UTC (permalink / raw)
  To: ceph-devel; +Cc: Gregory Farnum

Hi Greg,

I noticed this patch changed the CEPH_IOCTL_MAGIC to 0x98, and is also synchronized with the user space Ceph tree, but the Ceph client that ships with Ubuntu 10.10 uses 0x97. There wasn't a change made by this patch to Documentation/ioctl/ioctl-numbers.txt, so I was curious if this was an oversight, and if not, how the userspace code could be made to adapt for the kernel shipping with 10.10.

Thanks,
Noah


--- a/fs/ceph/ioctl.h
+++ b/fs/ceph/ioctl.h
@@ -4,7 +4,7 @@
 #include <linux/ioctl.h>
 #include <linux/types.h>
 
-#define CEPH_IOCTL_MAGIC 0x97
+#define CEPH_IOCTL_MAGIC 0x98
 
 /* just use u64 to align sanely on all archs */
 struct ceph_ioctl_layout {
@@ -17,6 +17,8 @@ struct ceph_ioctl_layout {
                                   struct ceph_ioctl_layout)
 #define CEPH_IOC_SET_LAYOUT _IOW(CEPH_IOCTL_MAGIC, 2,          \
                                   struct ceph_ioctl_layout)
+#define CEPH_IOC_SET_LAYOUT_POLICY _IOW(CEPH_IOCTL_MAGIC, 5,   \
+                                  struct ceph_ioctl_layout)
 
 /*
  * Extract identity, address of the OSD and object storing a given

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ioctl compatibility
  2010-12-04 23:17 ioctl compatibility Noah Watkins
@ 2010-12-06 17:46 ` Gregory Farnum
  2011-01-27  9:48   ` QEMU RBD failed! wchen
  0 siblings, 1 reply; 4+ messages in thread
From: Gregory Farnum @ 2010-12-06 17:46 UTC (permalink / raw)
  To: Noah Watkins; +Cc: ceph-devel

On Sat, Dec 4, 2010 at 3:17 PM, Noah Watkins <jayhawk@cs.ucsc.edu> wrote:
> Hi Greg,
>
> I noticed this patch changed the CEPH_IOCTL_MAGIC to 0x98, and is also synchronized with the user space Ceph tree, but the Ceph client that ships with Ubuntu 10.10 uses 0x97. There wasn't a change made by this patch to Documentation/ioctl/ioctl-numbers.txt, so I was curious if this was an oversight, and if not, how the userspace code could be made to adapt for the kernel shipping with 10.10.
Oh, wow. This was an inappropriate change which we're reverting now
and will make sure gets pushed upstream.
Thanks for noticing! :)
-Greg

^ permalink raw reply	[flat|nested] 4+ messages in thread

* QEMU RBD failed!
  2010-12-06 17:46 ` Gregory Farnum
@ 2011-01-27  9:48   ` wchen
  2011-01-27 15:23     ` Wido den Hollander
  0 siblings, 1 reply; 4+ messages in thread
From: wchen @ 2011-01-27  9:48 UTC (permalink / raw)
  To: Gregory Farnum; +Cc: ceph-devel

Hi Farnum,

I follow the instructions on wiki to create a qemu image using qemu rbd,
but failed.

According to wiki, after compiled qemu and input the following command:
$ qemu-img create -f rbd rbd:data/foo 10G

But system tell me that "unknown format 'rbd'".
which step did I miss? how to register a 'rbd' format?
BTW, I run these commands on ceph cluster.

Thanks a lot!

-- 
best regards,
Kevin Chen (陈巍)

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: QEMU RBD failed!
  2011-01-27  9:48   ` QEMU RBD failed! wchen
@ 2011-01-27 15:23     ` Wido den Hollander
  0 siblings, 0 replies; 4+ messages in thread
From: Wido den Hollander @ 2011-01-27 15:23 UTC (permalink / raw)
  To: wchen; +Cc: ceph-devel

Hi Kevin,

On Thu, 2011-01-27 at 17:48 +0800, wchen wrote:
> Hi Farnum,
> 
> I follow the instructions on wiki to create a qemu image using qemu rbd,
> but failed.
> 
> According to wiki, after compiled qemu and input the following command:
> $ qemu-img create -f rbd rbd:data/foo 10G
> 
> But system tell me that "unknown format 'rbd'".

Seems you are missing RBD support in Qemu.

> which step did I miss? how to register a 'rbd' format?
> BTW, I run these commands on ceph cluster.

Did you compile Qemu-RBD with --enable-rbd ?

And are you sure you are running the correct binary and that there is no
old Qemu installation on your system.

Wido


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-01-27 15:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-04 23:17 ioctl compatibility Noah Watkins
2010-12-06 17:46 ` Gregory Farnum
2011-01-27  9:48   ` QEMU RBD failed! wchen
2011-01-27 15:23     ` Wido den Hollander

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.