All of lore.kernel.org
 help / color / mirror / Atom feed
* rbd export to stdout ?
       [not found] <44be67bb-921b-4115-a4ea-fb4980b17edd@mailpro>
@ 2012-10-22 10:41 ` Alexandre DERUMIER
  2012-10-22 11:58   ` Wido den Hollander
  0 siblings, 1 reply; 7+ messages in thread
From: Alexandre DERUMIER @ 2012-10-22 10:41 UTC (permalink / raw)
  To: ceph-devel

Hi,

I'm looking for use "rbd export " to stdout and not a file.

Is it possible ? any hint ?

Regards,

Alexandre Derumier

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

* Re: rbd export to stdout ?
  2012-10-22 10:41 ` rbd export to stdout ? Alexandre DERUMIER
@ 2012-10-22 11:58   ` Wido den Hollander
  2012-10-22 12:25     ` Alexandre DERUMIER
  2012-10-22 14:31     ` Dietmar Maurer
  0 siblings, 2 replies; 7+ messages in thread
From: Wido den Hollander @ 2012-10-22 11:58 UTC (permalink / raw)
  To: Alexandre DERUMIER; +Cc: ceph-devel

On 10/22/2012 12:41 PM, Alexandre DERUMIER wrote:
> Hi,
>
> I'm looking for use "rbd export " to stdout and not a file.
>
> Is it possible ? any hint ?
>

No, not at this moment. I tried a fifo, but that won't work due to 
O_EXCL and O_CREATE the rbd command uses.

I think it should be possible to export to stdout, but it will require 
some code changes.

I created a feature request for it: http://tracker.newdream.net/issues/3380

Wido

> Regards,
>
> Alexandre Derumier
> --
> 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] 7+ messages in thread

* Re: rbd export to stdout ?
  2012-10-22 11:58   ` Wido den Hollander
@ 2012-10-22 12:25     ` Alexandre DERUMIER
  2012-10-22 16:53       ` Alexandre DERUMIER
  2012-10-22 14:31     ` Dietmar Maurer
  1 sibling, 1 reply; 7+ messages in thread
From: Alexandre DERUMIER @ 2012-10-22 12:25 UTC (permalink / raw)
  To: Wido den Hollander; +Cc: ceph-devel

ok, 
thanks Wido.

Regards,

Alexandre

----- Mail original ----- 

De: "Wido den Hollander" <wido@widodh.nl> 
À: "Alexandre DERUMIER" <aderumier@odiso.com> 
Cc: ceph-devel@vger.kernel.org 
Envoyé: Lundi 22 Octobre 2012 13:58:40 
Objet: Re: rbd export to stdout ? 

On 10/22/2012 12:41 PM, Alexandre DERUMIER wrote: 
> Hi, 
> 
> I'm looking for use "rbd export " to stdout and not a file. 
> 
> Is it possible ? any hint ? 
> 

No, not at this moment. I tried a fifo, but that won't work due to 
O_EXCL and O_CREATE the rbd command uses. 

I think it should be possible to export to stdout, but it will require 
some code changes. 

I created a feature request for it: http://tracker.newdream.net/issues/3380 

Wido 

> Regards, 
> 
> Alexandre Derumier 
> -- 
> 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 
> 
--
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] 7+ messages in thread

* RE: rbd export to stdout ?
  2012-10-22 11:58   ` Wido den Hollander
  2012-10-22 12:25     ` Alexandre DERUMIER
@ 2012-10-22 14:31     ` Dietmar Maurer
  2012-10-22 17:18       ` Alexandre DERUMIER
  1 sibling, 1 reply; 7+ messages in thread
From: Dietmar Maurer @ 2012-10-22 14:31 UTC (permalink / raw)
  To: Wido den Hollander, Alexandre DERUMIER; +Cc: ceph-devel

> Subject: Re: rbd export to stdout ?
> 
> On 10/22/2012 12:41 PM, Alexandre DERUMIER wrote:
> > Hi,
> >
> > I'm looking for use "rbd export " to stdout and not a file.

I thought we should extend 'qemu-img', adding import/export there? That
way it would work for all qemu storage drivers?

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

* Re: rbd export to stdout ?
  2012-10-22 12:25     ` Alexandre DERUMIER
@ 2012-10-22 16:53       ` Alexandre DERUMIER
  0 siblings, 0 replies; 7+ messages in thread
From: Alexandre DERUMIER @ 2012-10-22 16:53 UTC (permalink / raw)
  To: Wido den Hollander; +Cc: ceph-devel

note:

import for stdin already work:

rbd import --size=xxx - image < stdin

from this patch

http://permalink.gmane.org/gmane.comp.file-systems.ceph.devel/6315



----- Mail original ----- 

De: "Alexandre DERUMIER" <aderumier@odiso.com> 
À: "Wido den Hollander" <wido@widodh.nl> 
Cc: ceph-devel@vger.kernel.org 
Envoyé: Lundi 22 Octobre 2012 14:25:33 
Objet: Re: rbd export to stdout ? 

ok, 
thanks Wido. 

Regards, 

Alexandre 

----- Mail original ----- 

De: "Wido den Hollander" <wido@widodh.nl> 
À: "Alexandre DERUMIER" <aderumier@odiso.com> 
Cc: ceph-devel@vger.kernel.org 
Envoyé: Lundi 22 Octobre 2012 13:58:40 
Objet: Re: rbd export to stdout ? 

On 10/22/2012 12:41 PM, Alexandre DERUMIER wrote: 
> Hi, 
> 
> I'm looking for use "rbd export " to stdout and not a file. 
> 
> Is it possible ? any hint ? 
> 

No, not at this moment. I tried a fifo, but that won't work due to 
O_EXCL and O_CREATE the rbd command uses. 

I think it should be possible to export to stdout, but it will require 
some code changes. 

I created a feature request for it: http://tracker.newdream.net/issues/3380 

Wido 

> Regards, 
> 
> Alexandre Derumier 
> -- 
> 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 
> 
-- 
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 
--
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] 7+ messages in thread

* Re: rbd export to stdout ?
  2012-10-22 14:31     ` Dietmar Maurer
@ 2012-10-22 17:18       ` Alexandre DERUMIER
  2012-10-23  4:27         ` Dietmar Maurer
  0 siblings, 1 reply; 7+ messages in thread
From: Alexandre DERUMIER @ 2012-10-22 17:18 UTC (permalink / raw)
  To: Dietmar Maurer; +Cc: ceph-devel, Wido den Hollander

>>I thought we should extend 'qemu-img', adding import/export there? That 
>>way it would work for all qemu storage drivers? 

seem to be already possible:

http://ceph.com/wiki/QEMU-RBD

"qemu-img convert -f qcow2 -O rbd /data/debian_lenny_amd64_small.qcow2 rbd:data/lenny"



----- Mail original ----- 

De: "Dietmar Maurer" <dietmar@proxmox.com> 
À: "Wido den Hollander" <wido@widodh.nl>, "Alexandre DERUMIER" <aderumier@odiso.com> 
Cc: ceph-devel@vger.kernel.org 
Envoyé: Lundi 22 Octobre 2012 16:31:00 
Objet: RE: rbd export to stdout ? 

> Subject: Re: rbd export to stdout ? 
> 
> On 10/22/2012 12:41 PM, Alexandre DERUMIER wrote: 
> > Hi, 
> > 
> > I'm looking for use "rbd export " to stdout and not a file. 

I thought we should extend 'qemu-img', adding import/export there? That 
way it would work for all qemu storage drivers? 
--
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] 7+ messages in thread

* RE: rbd export to stdout ?
  2012-10-22 17:18       ` Alexandre DERUMIER
@ 2012-10-23  4:27         ` Dietmar Maurer
  0 siblings, 0 replies; 7+ messages in thread
From: Dietmar Maurer @ 2012-10-23  4:27 UTC (permalink / raw)
  To: Alexandre DERUMIER; +Cc: ceph-devel, Wido den Hollander

> >>I thought we should extend 'qemu-img', adding import/export there?
> >>That way it would work for all qemu storage drivers?
> 
> seem to be already possible:
> 
> http://ceph.com/wiki/QEMU-RBD
> 
> "qemu-img convert -f qcow2 -O rbd
> /data/debian_lenny_amd64_small.qcow2 rbd:data/lenny"

Oh -  I missed that. Thanks for the hint.

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

end of thread, other threads:[~2012-10-23  4:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <44be67bb-921b-4115-a4ea-fb4980b17edd@mailpro>
2012-10-22 10:41 ` rbd export to stdout ? Alexandre DERUMIER
2012-10-22 11:58   ` Wido den Hollander
2012-10-22 12:25     ` Alexandre DERUMIER
2012-10-22 16:53       ` Alexandre DERUMIER
2012-10-22 14:31     ` Dietmar Maurer
2012-10-22 17:18       ` Alexandre DERUMIER
2012-10-23  4:27         ` Dietmar Maurer

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.