[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Nbd] For help, about kernel NBD driver



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: