nbd: Use default port if only host is specified
authorKevin Wolf <kwolf@redhat.com>
Mon, 18 Mar 2013 15:56:05 +0000 (16:56 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 22 Mar 2013 16:51:32 +0000 (17:51 +0100)
commitbebbf7fa9c6235022ecd15f8f934d27e5ccab63a
tree66370ce842d9c2ccac4cbfece64cf18ea52d32f6
parentc2ad1b0c465a9ea8375eaff14bbd85705c673f73
nbd: Use default port if only host is specified

The URL method already takes care to apply the default port when none is
specfied. Directly specifying driver-specific options required the port
number until now. Allow leaving it out and apply the default.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
block/nbd.c