@@ -67,7 +67,7 @@ L<guestfish(1)>:
67
67
Serve file F<disk.img> on port 10809, requiring clients to use
68
68
encrypted (TLS) connections:
69
69
70
- nbdkit --newstyle -- tls=require file file=disk.img
70
+ nbdkit --tls=require file file=disk.img
71
71
72
72
=head2 Combining plugins and filters
73
73
@@ -128,7 +128,7 @@ This option implies I<--foreground>.
128
128
129
129
=item B<--exportname> EXPORTNAME
130
130
131
- Set the exportname and use the newstyle protocol (implies I<-n>) .
131
+ Set the exportname.
132
132
133
133
If not set, exportname C<""> (empty string) is used. Exportnames are
134
134
not allowed with the oldstyle protocol.
@@ -175,19 +175,22 @@ interfaces. See also I<-p>.
175
175
176
176
=item B<--newstyle>
177
177
178
- Use the newstyle NBD protocol instead of the default (oldstyle)
179
- protocol. See L</NEW STYLE VS OLD STYLE PROTOCOL> below.
178
+ Use the newstyle NBD protocol protocol. This is the default in nbdkit
179
+ E<ge> 1.1.29. In earlier versions the default was oldstyle.
180
+
181
+ See L</NEW STYLE VS OLD STYLE PROTOCOL> below.
180
182
181
183
=item B<-o>
182
184
183
185
=item B<--old-style>
184
186
185
187
=item B<--oldstyle>
186
188
187
- Use the oldstyle NBD protocol. This is currently the default (unless
188
- you use I<-n> or I<-e>), so this flag does nothing, but it is possible
189
- we might change the default protocol in future. See L</NEW STYLE VS
190
- OLD STYLE PROTOCOL> below.
189
+ Use the oldstyle NBD protocol. This I<was> the default in nbdkit
190
+ E<le> 1.1.28, but now the default is newstyle. Note this is
191
+ incompatible with newer features such as export names and TLS.
192
+
193
+ See L</NEW STYLE VS OLD STYLE PROTOCOL> below.
191
194
192
195
=item B<-P> PIDFILE
193
196
@@ -527,12 +530,10 @@ The NBD protocol comes in two incompatible forms that we call
527
530
use depends on the client and cannot be known in advance, nor can it
528
531
be negotiated from the server side.
529
532
530
- nbdkit currently defaults to the oldstyle protocol for compatibility
531
- with qemu and libguestfs. This is also the same behaviour as qemu-nbd
532
- E<le> 2.5. Use the I<-n> or I<--newstyle> flag on the command line to
533
- use the newstyle protocol. Use the I<-e> or I<--exportname> flag to
534
- set the exportname for the newstyle protocol. Use the I<-o> or
535
- I<--oldstyle> flag to force the oldstyle protocol.
533
+ nbdkit defaults to the newstyle protocol since nbdkit E<ge> 1.1.29.
534
+ Use the I<-e> or I<--exportname> flag to set the optional exportname
535
+ for the newstyle protocol. Use the I<-o> or I<--oldstyle> flag to
536
+ force the oldstyle protocol.
536
537
537
538
Some common clients and the protocol they require:
538
539
0 commit comments