Re: [Nbd] For help, about kernel NBD driver
- To: edelweiss_zf3842 <edelweiss_zf3842@...787...>
- Cc: nbd-general@lists.sourceforge.net
- Subject: Re: [Nbd] For help, about kernel NBD driver
- From: Wouter Verhelst <w@...112...>
- Date: Mon, 31 May 2010 12:22:15 +0200
- Message-id: <20100531102215.GC3517@...510...>
- In-reply-to: <20100531072630.4ACDE319B0B@...788...>
- References: <20100531072630.4ACDE319B0B@...788...>
On Mon, May 31, 2010 at 03:26:30PM +0800, edelweiss_zf3842 wrote:
> When nbd-client sends a read request to nbd-server, the data transmitted
> from server to client are as "data block" form and each data block has a
> block number, right?
Actually, no, it requests a range of bytes.
> How can I get this block number? Does it belong to some certain struct in
> the kernel code?
It is in the protocol header; the "from" and "len" fields of struct
nbd_request.
--
The biometric identification system at the gates of the CIA headquarters
works because there's a guard with a large gun making sure no one is
trying to fool the system.
http://www.schneier.com/blog/archives/2009/01/biometrics.html
Reply to: