Network Block Device  @PACKAGE_VERSION@
Data Fields
SERVER Struct Reference

Variables associated with a server. More...

#include <nbdsrv.h>

Data Fields

gchar * exportname
 (unprocessed) filename of the file we're exporting More...
 
uint64_t expected_size
 size of the exported file as it was told to us through configuration More...
 
gchar * listenaddr
 The IP address we're listening on. More...
 
unsigned int port
 port we're exporting this file at More...
 
char * authname
 filename of the authorization file More...
 
int flags
 flags associated with this exported file More...
 
int socket
 The socket of this server. More...
 
int socket_family
 family of the socket More...
 
VIRT_STYLE virtstyle
 The style of virtualization, if any. More...
 
uint8_t cidrlen
 The length of the mask when we use CIDR-style virtualization. More...
 
gchar * prerun
 command to be ran after connecting a client, but before starting to serve More...
 
gchar * postrun
 command that will be ran after the client disconnects More...
 
gchar * servename
 name of the export as selected by nbd-client More...
 
int max_connections
 maximum number of opened connections More...
 
gchar * transactionlog
 filename for transaction log More...
 
gchar * cowdir
 directory for copy-on-write diff files. More...
 

Detailed Description

Variables associated with a server.

Definition at line 29 of file nbdsrv.h.

Field Documentation

char* SERVER::authname

filename of the authorization file

Definition at line 35 of file nbdsrv.h.

Referenced by authorized_client(), cmdline(), dump_section(), and parse_cfile().

uint8_t SERVER::cidrlen

The length of the mask when we use CIDR-style virtualization.

Definition at line 40 of file nbdsrv.h.

Referenced by parse_cfile(), and set_peername().

gchar* SERVER::cowdir

directory for copy-on-write diff files.

Definition at line 49 of file nbdsrv.h.

Referenced by copyonwrite_prepare(), and parse_cfile().

uint64_t SERVER::expected_size

size of the exported file as it was told to us through configuration

Definition at line 31 of file nbdsrv.h.

Referenced by cmdline(), dump_section(), parse_cfile(), and setupexport().

gchar* SERVER::exportname

(unprocessed) filename of the file we're exporting

Definition at line 30 of file nbdsrv.h.

Referenced by cmdline(), dump_section(), parse_cfile(), and set_peername().

int SERVER::flags
gchar* SERVER::listenaddr

The IP address we're listening on.

Definition at line 33 of file nbdsrv.h.

Referenced by cmdline(), dump_section(), parse_cfile(), and setup_serve().

int SERVER::max_connections

maximum number of opened connections

Definition at line 47 of file nbdsrv.h.

Referenced by cmdline(), handle_modern_connection(), handle_oldstyle_connection(), and parse_cfile().

unsigned int SERVER::port

port we're exporting this file at

Definition at line 34 of file nbdsrv.h.

Referenced by cmdline(), daemonize(), dump_section(), main(), and setup_serve().

gchar* SERVER::postrun

command that will be ran after the client disconnects

Definition at line 44 of file nbdsrv.h.

Referenced by parse_cfile(), and serveconnection().

gchar* SERVER::prerun

command to be ran after connecting a client, but before starting to serve

Definition at line 42 of file nbdsrv.h.

Referenced by parse_cfile(), and serveconnection().

gchar* SERVER::servename

name of the export as selected by nbd-client

Definition at line 46 of file nbdsrv.h.

Referenced by append_new_servers(), get_index_by_servename(), handle_export_name(), handle_list(), parse_cfile(), serveloop(), and setup_serve().

int SERVER::socket

The socket of this server.

Definition at line 37 of file nbdsrv.h.

Referenced by handle_modern_connection(), handle_oldstyle_connection(), serveloop(), and setup_serve().

int SERVER::socket_family

family of the socket

Definition at line 38 of file nbdsrv.h.

Referenced by main(), parse_cfile(), and setup_serve().

gchar* SERVER::transactionlog

filename for transaction log

Definition at line 48 of file nbdsrv.h.

Referenced by parse_cfile(), and serveconnection().

VIRT_STYLE SERVER::virtstyle

The style of virtualization, if any.

Definition at line 39 of file nbdsrv.h.

Referenced by cmdline(), parse_cfile(), and set_peername().


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