Skip to content

Commit

Permalink
fish: Fix parsing of exportnames in NBD URIs.
Browse files Browse the repository at this point in the history
  • Loading branch information
rwmjones committed Aug 16, 2020
1 parent b96c8f5 commit bd3fb65
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion common
2 changes: 1 addition & 1 deletion fish/guestfish.pod
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion fish/test-add-uri.sh
Expand Up @@ -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
Expand Down

0 comments on commit bd3fb65

Please sign in to comment.