Network Block Device  @PACKAGE_VERSION@
Data Fields
CLIENT Struct Reference

Data Fields

off_t exportsize
 size of the file we're exporting More...
 
char * clientname
 peer More...
 
char * exportname
 (processed) filename of the file we're exporting More...
 
GArray * export
 array of FILE_INFO of exported files; array size is always 1 unless we're doing the multiple file option More...
 
int net
 The actual client socket. More...
 
SERVERserver
 The server this client is getting data from. More...
 
char * difffilename
 filename of the copy-on-write file, if any More...
 
int difffile
 filedescriptor of copyonwrite file. More...
 
u32 difffilelen
 number of pages in difffile More...
 
u32 * difmap
 see comment on the global difmap for this one More...
 
gboolean modern
 client was negotiated using modern negotiation protocol More...
 
int transactionlogfd
 fd for transaction log More...
 
int clientfeats
 Features supported by this client. More...
 

Detailed Description

Definition at line 253 of file nbd-server.c.

Field Documentation

int CLIENT::clientfeats

Features supported by this client.

Definition at line 270 of file nbd-server.c.

char* CLIENT::clientname

peer

Definition at line 255 of file nbd-server.c.

int CLIENT::difffile

filedescriptor of copyonwrite file.

Todo:
shouldn't this be an array too? (cfr export) Or make -m and -c mutually exclusive

Definition at line 263 of file nbd-server.c.

Referenced by expflush().

u32 CLIENT::difffilelen

number of pages in difffile

Definition at line 266 of file nbd-server.c.

char* CLIENT::difffilename

filename of the copy-on-write file, if any

Definition at line 262 of file nbd-server.c.

u32* CLIENT::difmap

see comment on the global difmap for this one

Definition at line 267 of file nbd-server.c.

GArray* CLIENT::export

array of FILE_INFO of exported files; array size is always 1 unless we're doing the multiple file option

Definition at line 257 of file nbd-server.c.

char* CLIENT::exportname

(processed) filename of the file we're exporting

Definition at line 256 of file nbd-server.c.

off_t CLIENT::exportsize

size of the file we're exporting

Definition at line 254 of file nbd-server.c.

gboolean CLIENT::modern

client was negotiated using modern negotiation protocol

Definition at line 268 of file nbd-server.c.

int CLIENT::net

The actual client socket.

Definition at line 260 of file nbd-server.c.

SERVER* CLIENT::server

The server this client is getting data from.

Definition at line 261 of file nbd-server.c.

Referenced by serveconnection().

int CLIENT::transactionlogfd

fd for transaction log

Definition at line 269 of file nbd-server.c.

Referenced by serveconnection().


The documentation for this struct was generated from the following file: