fish: Fix parsing of exportnames in NBD URIs.

https://github.com/NetworkBlockDevice/nbd/blob/master/doc/uri.md#nbd-uri-export-name
This commit is contained in:
Richard W.M. Jones
2020-08-16 10:57:50 +01:00
parent b96c8f5146
commit bd3fb65351
3 changed files with 3 additions and 3 deletions

2
common

Submodule common updated: 6d58f37f95...c840f2e39d

View File

@@ -1187,7 +1187,7 @@ The equivalent API command would be:
Add a disk located on Network Block Device (nbd) storage.
The I</exportname> part of the URI specifies an NBD export name, but
The I<exportname> part of the URI specifies an NBD export name, but
is usually left empty.
The optional I<?socket> parameter can be used to specify a Unix domain

View File

@@ -59,7 +59,7 @@ $VG guestfish -x -a 'nbd://?socket=/sk' </dev/null >test-add-uri.out 2>&1
grep -sq 'add_drive "" "protocol:nbd" "server:unix:/sk"' test-add-uri.out || fail
$VG guestfish -x -a 'nbd:///export?socket=/sk' </dev/null >test-add-uri.out 2>&1
grep -sq 'add_drive "/export" "protocol:nbd" "server:unix:/sk"' test-add-uri.out || fail
grep -sq 'add_drive "export" "protocol:nbd" "server:unix:/sk"' test-add-uri.out || fail
# rbd
$VG guestfish -x -a rbd://example.com:6789/pool/disk </dev/null >test-add-uri.out 2>&1