.\" <http://shell.ipoline.com/~elmert/comp/docbook2X/>
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng <steve@ggi-project.org>.
-.TH "NBD-CLIENT" "8" "30 April 2009" "" ""
+.TH "NBD-CLIENT" "8" "24 May 2009" "" ""
.SH NAME
nbd-client \- connect to a server running nbd-server(1), to use its exported block device
.SH SYNOPSIS
-\fBnbd-client\fR [ \fBbs=\fIblocksize\fB\fR ] [ \fBtimeout=\fIseconds\fB\fR ] \fB\fIhost\fB\fR \fB\fIport\fB\fR \fB\fInbd-device\fB\fR [ \fB-sdp\fR ] [ \fB-swap\fR ] [ \fB-persist\fR ]
+\fBnbd-client\fR [ \fBbs=\fIblocksize\fB\fR ] [ \fBtimeout=\fIseconds\fB\fR ] \fB\fIhost\fB\fR \fB\fIport\fB\fR \fB\fInbd-device\fB\fR [ \fB-sdp\fR ] [ \fB-swap\fR ] [ \fB-persist\fR ] [ \fB-nofork\fR ]
\fBnbd-client\fR \fB-d \fInbd-device\fB\fR
option to prevent deadlocks. You'll need a special kernel
patch, available at NBD's homepage:
http://atrey.karlin.mff.cuni.cz/~pavel
+.TP
+\fB-nofork\fR
+Specifies that the NBD client should not detach and
+daemonize itself. This is mostly useful for debugging.
.SH "EXAMPLES"
.PP
Some examples of nbd-client usage:
<arg><option>-sdp</option></arg>
<arg><option>-swap</option></arg>
<arg><option>-persist</option></arg>
+ <arg><option>-nofork</option></arg>
</cmdsynopsis>
<cmdsynopsis>
<command>&dhpackage;</command>
http://atrey.karlin.mff.cuni.cz/~pavel</para>
</listitem>
</varlistentry>
+ <varlistentry>
+ <term><option>-nofork</option></term>
+ <listitem>
+ <para>Specifies that the NBD client should not detach and
+ daemonize itself. This is mostly useful for debugging.</para>
+ </varlistentry>
</variablelist>
</refsect1>
<refsect1>
if (argc < 3) {
errmsg:
fprintf(stderr, "nbd-client version %s\n", PACKAGE_VERSION);
- fprintf(stderr, "Usage: nbd-client [bs=blocksize] [timeout=sec] host port nbd_device [-swap] [-persist]\n");
+ fprintf(stderr, "Usage: nbd-client [bs=blocksize] [timeout=sec] host port nbd_device [-swap] [-persist] [-nofork]\n");
fprintf(stderr, "Or : nbd-client -d nbd_device\n");
fprintf(stderr, "Or : nbd-client -c nbd_device\n");
fprintf(stderr, "Default value for blocksize is 1024 (recommended for ethernet)\n");