[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Nbd] Virtstyle = ipliteral in version 2.9.16 of Ubuntu Natty not working [SOLVED] [PATCH]



Hi,

just to answer myself:

The following  patch solves the problem:

-2.9.20.patch/nbd-server.c
--- nbd-2.9.20/nbd-server.c     2011-01-28 13:34:16.000000000 +0100
+++ nbd-2.9.20.patch/nbd-server.c       2011-03-16 10:17:25.427243049 +0100
@@ -595,6 +595,8 @@

        serve->port = s->port;

+       serve->virtstyle = s->virtstyle;
+
        if(s->authname)
                serve->authname = strdup(s->authname);



Am 16.03.2011 07:54, schrieb Wilhelm:
> Hi,
> 
> I just noticed that the virtstyle option is not working in ubuntu natty
> with this version:
> 
> ii  nbd-server         1:2.9.16-7.1ubuntu Network Block Device protocol
> - server
> 
> I use the following config for nbd-server:
> 
> [generic]
> [swap]
>         virtstyle = ipliteral
>         exportname = /tftpboot/swap/%s.swap
>         prerun = /usr/bin/mkfile -n 1G %s
>         postrun = rm -f %s
>         port = 5051
> 
> This should produce filenames like:
> 
> /tftpboot/swap/192.168.32.151.swap
> 
> but instead I get
> 
> /tftpboot/swap/%s.swap
> 
> and in the logs:
> 
> Mar 16 07:47:07 anyos-host nbd_server[777]: connect from 192.168.32.151,
> assigned file is /tftpboot/swap/%s.swap
> Mar 16 07:47:07 anyos-host nbd_server[777]: Can't open authorization
> file (null) (Bad address).
> Mar 16 07:47:07 anyos-host nbd_server[777]: Authorized client
> Mar 16 07:47:07 anyos-host nbd_server[29644]: Starting to serve
> Mar 16 07:47:07 anyos-host nbd_server[29644]: Size of exported
> file/device is 1073741824
> 
> The setup is identical to another server using
> 
> ii  nbd-server         1:2.9.14-2ubuntu1  Network Block Device protocol
> - server
> 
> With this version all is well.
> Are there any regressions with the ubuntu natty version?
> 


-- 
Wilhelm




Reply to: