Package: nbd-client
Version: 1:3.15.2-3
Severity: normal

Dear Maintainer,

I do not know if this is a nbd-client or nbd-server related bug:

There is a nbd server version 1:3.16.2-1 running on a debian
testing/buster server with amongst others this definition of an
export in /etc/nbd-server/config:

[server-media]
        exportname = /dev/sda5
        flush = true
        fua = true

When I connect to this export with nbd-client version 1:3.15.2-3
from a debian stretch system I get:

$ sudo nbd-client  -name server-media shi /dev/nbd1
Negotiation: ..Error: Read failed: End of file
Exiting.

When I rename this export on the server to "shi-media", restart the
nbd-server.service and do:

$ sudo nbd-client  -name shi-media shi /dev/nbd1
Negotiation: ..size = 921600MB
bs=1024, sz=966367641600 bytes

I would assume this bug applies to all export names beginning
with "server-".

It should be possible to use export names beginning with
"server-" or at least this restriction should be documented.

Thanks for providing and maintaining nbd.


Ciao; Gregor 



-- System Information:
Debian Release: 9.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8), LANGUAGE=en_US:en 
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages nbd-client depends on:
ii  debconf [debconf-2.0]  1.5.61
ii  libc6                  2.24-11+deb9u1
ii  libgnutls30            3.5.8-5+deb9u3

nbd-client recommends no packages.

nbd-client suggests no packages.

-- Configuration Files:
/etc/nbdtab changed:
nbd0 shi crypt-server-backup
nbd1 shi server-media


-- debconf information:
  nbd-client/no-auto-config:
  nbd-client/killall_set:

Reply via email to