@@ -233,11 +233,11 @@ This option implies I<--foreground>.
233
233
234
234
=item B<-e> EXPORTNAME
235
235
236
- =item B<--export> EXPORTNAME
236
+ =item B<--export=> EXPORTNAME
237
237
238
- =item B<--export-name> EXPORTNAME
238
+ =item B<--export-name=> EXPORTNAME
239
239
240
- =item B<--exportname> EXPORTNAME
240
+ =item B<--exportname=> EXPORTNAME
241
241
242
242
Set a preferred exportname to expose in the shell environment created
243
243
during I<--run>. The use of this option without I<--run> has no
@@ -249,6 +249,13 @@ the client's choice of export name.
249
249
If not set, the I<--run> environment is set to access the default
250
250
exportname C<""> (empty string).
251
251
252
+ =item B<--filter=>FILTER
253
+
254
+ Add a filter before the plugin. This option may be given one or more
255
+ times to stack filters in front of the plugin. They are processed in
256
+ the order they appear on the command line. See L</FILTERS> and
257
+ L<nbdkit-filter(3)>.
258
+
252
259
=item B<-f>
253
260
254
261
=item B<--foreground>
@@ -257,16 +264,9 @@ exportname C<""> (empty string).
257
264
258
265
I<Don't> fork into the background.
259
266
260
- =item B<--filter> FILTER
261
-
262
- Add a filter before the plugin. This option may be given one or more
263
- times to stack filters in front of the plugin. They are processed in
264
- the order they appear on the command line. See L</FILTERS> and
265
- L<nbdkit-filter(3)>.
266
-
267
267
=item B<-g> GROUP
268
268
269
- =item B<--group> GROUP
269
+ =item B<--group=> GROUP
270
270
271
271
Change group to C<GROUP> after starting up. A group name or numeric
272
272
group ID can be used.
@@ -278,9 +278,9 @@ See also I<-u>.
278
278
279
279
=item B<-i> IPADDR
280
280
281
- =item B<--ip-addr> IPADDR
281
+ =item B<--ip-addr=> IPADDR
282
282
283
- =item B<--ipaddr> IPADDR
283
+ =item B<--ipaddr=> IPADDR
284
284
285
285
Listen on the specified interface. The default is to listen on all
286
286
interfaces. See also I<-4>, I<-6>, and I<-p>.
@@ -300,6 +300,12 @@ forks into the background in which case they are sent to syslog.
300
300
301
301
For more details see L<nbdkit-service(1)/LOGGING>.
302
302
303
+ =item B<--mask-handshake=>MASK
304
+
305
+ This option can be used to mask off particular global features which
306
+ are advertised during new-style handshake (defaulting to all supported
307
+ bits set). See L<nbdkit-protocol(1)>.
308
+
303
309
=item B<-n>
304
310
305
311
=item B<--new-style>
@@ -331,9 +337,9 @@ See L<nbdkit-protocol(1)>.
331
337
332
338
=item B<-P> PIDFILE
333
339
334
- =item B<--pid-file> PIDFILE
340
+ =item B<--pid-file=> PIDFILE
335
341
336
- =item B<--pidfile> PIDFILE
342
+ =item B<--pidfile=> PIDFILE
337
343
338
344
Write C<PIDFILE> (containing the process ID of the server) after
339
345
nbdkit becomes ready to accept connections.
@@ -343,7 +349,7 @@ delete the file when it exits.
343
349
344
350
=item B<-p> PORT
345
351
346
- =item B<--port> PORT
352
+ =item B<--port=> PORT
347
353
348
354
Change the TCP/IP port number on which nbdkit serves requests.
349
355
The default is C<10809>. See also I<-i>.
@@ -364,16 +370,29 @@ L<nbdkit-cow-filter(1)> can be placed over read-only plugins to
364
370
provide copy-on-write (or "snapshot") functionality. If you are using
365
371
qemu as a client then it also supports snapshots.
366
372
367
- =item B<--run> CMD
373
+ =item B<--run> 'COMMAND ARGS ...'
368
374
369
- Run nbdkit as a captive subprocess of C<CMD> . When C<CMD> exits,
370
- nbdkit is killed. See L<nbdkit-captive(1)/CAPTIVE NBDKIT>.
375
+ Run nbdkit as a captive subprocess of the command . When the command
376
+ exits, nbdkit is killed. See L<nbdkit-captive(1)/CAPTIVE NBDKIT>.
371
377
372
378
Note that the command is executed by F</bin/sh>. On some platforms
373
379
like Debian this might not be a full-featured shell.
374
380
375
381
This option implies I<--foreground>.
376
382
383
+ =item B<--selinux-label=>SOCKET-LABEL
384
+
385
+ Apply the SELinux label C<SOCKET-LABEL> to the nbdkit listening
386
+ socket.
387
+
388
+ The common — perhaps only — use of this option is to allow libvirt
389
+ guests which are using SELinux and sVirt confinement to access nbdkit
390
+ Unix domain sockets. The example below shows how to do this. Note
391
+ that the socket and filesystem labels are different.
392
+
393
+ nbdkit -U /tmp/sock --selinux-label=system_u:object_r:svirt_socket_t:s0 ...
394
+ chcon system_u:object_r:svirt_image_t:s0 /tmp/sock
395
+
377
396
=item B<-s>
378
397
379
398
=item B<--single>
@@ -391,19 +410,6 @@ L<nbdkit-service(1)/SOCKET ACTIVATION> instead of this option.
391
410
392
411
This option implies I<--foreground>.
393
412
394
- =item B<--selinux-label> SOCKET-LABEL
395
-
396
- Apply the SELinux label C<SOCKET-LABEL> to the nbdkit listening
397
- socket.
398
-
399
- The common — perhaps only — use of this option is to allow libvirt
400
- guests which are using SELinux and sVirt confinement to access nbdkit
401
- Unix domain sockets. The example below shows how to do this. Note
402
- that the socket and filesystem labels are different.
403
-
404
- nbdkit -U /tmp/sock --selinux-label=system_u:object_r:svirt_socket_t:s0 ...
405
- chcon system_u:object_r:svirt_image_t:s0 /tmp/sock
406
-
407
413
=item B<--swap>
408
414
409
415
(nbdkit E<ge> 1.18)
@@ -417,7 +423,7 @@ the process.
417
423
418
424
=item B<-t> THREADS
419
425
420
- =item B<--threads> THREADS
426
+ =item B<--threads=> THREADS
421
427
422
428
Set the number of threads to be used per connection, which in turn
423
429
controls the number of outstanding requests that can be processed at
@@ -434,13 +440,13 @@ is not prepared for out-of-order responses), set this to 1.
434
440
Disable, enable or require TLS (authentication and encryption
435
441
support). See L<nbdkit-tls(1)>.
436
442
437
- =item B<--tls-certificates> /path/to/certificates
443
+ =item B<--tls-certificates=> /path/to/certificates
438
444
439
445
Set the path to the TLS certificates directory. If not specified,
440
446
some built-in paths are checked. See L<nbdkit-tls(1)> for more
441
447
details.
442
448
443
- =item B<--tls-psk> /path/to/pskfile
449
+ =item B<--tls-psk=> /path/to/pskfile
444
450
445
451
Set the path to the pre-shared keys (PSK) file. If used, this
446
452
overrides certificate authentication. There is no built-in path. See
@@ -453,7 +459,7 @@ check the client's certificate.
453
459
454
460
=item B<-U> SOCKET
455
461
456
- =item B<--unix> SOCKET
462
+ =item B<--unix=> SOCKET
457
463
458
464
=item B<-U ->
459
465
@@ -477,7 +483,7 @@ private socket. This is useful with L<nbdkit-captive(1)/CAPTIVE NBDKIT>.
477
483
478
484
=item B<-u> USER
479
485
480
- =item B<--user> USER
486
+ =item B<--user=> USER
481
487
482
488
Change user to C<USER> after starting up. A user name or numeric user
483
489
ID can be used.
0 commit comments