Bug#673497: nbd-client: error on connect: "E: Server does not support listing exports"

May 18th, 2012 - 11:00 pm ET by Vagrant Cascadian | Report spam
Package: nbd-client
Version: 1:3.1-1
Severity: Grave

thanks for all your work on NBD...


with nbd-client 1:2.9.24-3 or 1:3.0-1, the following connects fine to an
nbd-server 1:3.1-1:

nbd-client 192.168.43.181 -N /opt/ltsp/i386 /dev/nbd0


when doing the same with nbd-client 1:3.1-1, I get an error:

sudo nbd-client 192.168.43.181 -N /opt/ltsp/i386 /dev/nbd0
Negotiation: ..
E: Server does not support listing exports

using "-N anything" fails similarly.


the server configuration is the default configuration:

[generic]
# If you want to run everything as root rather than the nbd user, you
# may either say "root" in the two following lines, or remove them
# altogether. Do not remove the [generic] section, however.
user = nbd
group = nbd
includedir = /etc/nbd-server/conf.d

# What follows are export definitions. You may create as much of them as
# you want, but the section header has to be unique.

with two files in /etc/nbd-server/conf.d, ltsp_i386.conf:

[/opt/ltsp/i386]
exportname = /opt/ltsp/images/i386.img
readonly = true

and swap.conf:

[swap]
exportname = /tmp/nbd-swap/%s
prerun = nbdswapd %s
postrun = rm -f %s

(nbdswapd is from ltsp-server, which basically just creates the swap file in
this mode)


sorry, no patch this time. :(


live well,
vagrant



To UNSUBSCRIBE, email to debian-bugs-rc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
email Follow the discussionReplies 1 replyReplies Make a reply

Similar topics

Replies

#1 Wouter Verhelst
May 19th, 2012 - 04:30 am ET | Report spam
tags 673497 + upstream fixed-upstream
thanks

On Fri, May 18, 2012 at 07:54:12PM -0700, Vagrant Cascadian wrote:
sudo nbd-client 192.168.43.181 -N /opt/ltsp/i386 /dev/nbd0
Negotiation: ..
E: Server does not support listing exports



Whoops, that's silly:

diff --git a/nbd-client.c b/nbd-client.c
index 4338bf5..0e62821 100644
a/nbd-client.c
+++ b/nbd-client.c
@@ -432,7 +432,7 @@ int main(int argc, char *argv[]) {
int c;
int nonspecial=0;
char* name=NULL;
- uint32_t needed_flags;
+ uint32_t needed_flags=0;
uint32_t cflags;
uint32_t opts;
struct option long_options[] = {

I'll do a 3.1-2 ASAP with that fix.

The volume of a pizza of thickness a and radius z can be described by
the following formula:

pi zz a



To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
email Follow the discussion Replies Reply to this message
Help Create a new topicReplies Make a reply
Search Make your own search