This used to be part of option handling, but is dead and useless since
we switched option handling to getopt() calls.
nbd = open(nbddev, O_RDWR);
if (nbd < 0)
err("Cannot open NBD: %m\nPlease ensure the 'nbd' module is loaded.");
nbd = open(nbddev, O_RDWR);
if (nbd < 0)
err("Cannot open NBD: %m\nPlease ensure the 'nbd' module is loaded.");
- ++argv; --argc; /* skip device */
sock = opennet(hostname, port, sdp);
sock = opennet(hostname, port, sdp);