> >> unix sockets works with qemu nbd code? > > > > Sure. nbd+unix:///exportname?socket=path is the new URI syntax, I > > honestly forgot the old one. SCM_CREDENTIALS checks (qemu-nbd --pid > > or something like that) is not supported, but patches would be very welcome. > > Yes, this is better than my tcp suggestion.
I tried to use named exports, but get the following when I try to connect to the nbd server: nbd.c:nbd_receive_negotiate():L452: Receiving negotiation. name = ide0 nbd.c:nbd_receive_negotiate():L476: Magic is NBDMAGIC nbd.c:nbd_receive_negotiate():L488: Magic is 0x420281861253 nbd.c:nbd_receive_negotiate():L495: Checking magic (opts_magic) nbd.c:nbd_receive_negotiate():L497: Bad magic received Seems the server sends NBD_CLIENT_MAGIC, but the c lient expects NBD_OPTS_MAGIC?