mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
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:
2
common
2
common
Submodule common updated: 6d58f37f95...c840f2e39d
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user