From: Alex Elder <elder@inktank.com>
To: James Harper <james.harper@bendigoit.com.au>
Cc: "ceph-devel@vger.kernel.org" <ceph-devel@vger.kernel.org>
Subject: Re: windows rbd
Date: Fri, 17 May 2013 22:27:55 -0500 [thread overview]
Message-ID: <5196F53B.8050402@inktank.com> (raw)
In-Reply-To: <6035A0D088A63A46850C3988ED045A4B57B57E55@BITCOM1.int.sbss.com.au>
On 05/17/2013 08:22 PM, James Harper wrote:
> What would be the bare minimum to be implemented for a windows rbd
> kernel driver? In the Linux kernel I can see a drivers/block/rbd.c,
> which in turn uses net/ceph/*. There is also fs/ceph/* for the
> filesystem stuff.
I don't know a lot about porting anything from Linux to
Windows. However, the rbd code relies on libceph (which as
you point out is the code under net/ceph in the Linux tree).
So libceph and rbd would need to go together.
Most of the code that implements kernel rbd itself is
portable, but the way it interfaces with the operating
system will I'm sure be quite different. For example:
- getting requests from the block layer to process
- opening/closing sockets, and sending/receiving data
through them
- the use of sysfs (/sys/bus/rbd/*) for the user space
command line interface to communicate with the kernel
- locking (and other) basic OS primitives
- managing interrupts
It would probably be easier to work with the user space
rbd library (librbd), but that may not be integrated
with Windows the way you'd like
This is possibly a naive suggestion, but I know there
exists Unix-like environments for Windows (like Cygwin).
Perhaps that may provide an easier way to connect
Ceph technologies to a Windows environment.
-Alex
>
> Is a windows client even a worthwhile exercise? I know I can use an
> iscsi gateway or something like that but that adds complexity and
> probably latency, and kind of takes away from the distributed nature
> of ceph.
>
> The other advantage of a native driver is that it could be integrated
> better with snapshot functionality for VSS, reducing system load for
> backups.
>
> I can see one project to create a windows driver but it appears to be
> aborted... http://code.google.com/p/cephwin/
>
> Is anyone else working on this at the moment?
>
> James
>
>
> -- 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
>
next prev parent reply other threads:[~2013-05-18 3:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-18 1:22 windows rbd James Harper
2013-05-18 3:27 ` Alex Elder [this message]
2013-05-18 5:07 ` James Harper
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5196F53B.8050402@inktank.com \
--to=elder@inktank.com \
--cc=ceph-devel@vger.kernel.org \
--cc=james.harper@bendigoit.com.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.