[ENBD] Re: ENBD 2.4.25

Peter T. Breuer ptb@it.uc3m.es
Wed, 18 Apr 2001 22:35:49 +0200 (MET DST)


"A month of sundays ago Jason A. Pattie wrote:"
> I'm still running into the same issue with the .pid file not being able 
> to be created when launching the nbd-server.  I think you might want to 
> look into limiting the range of characters you translate the random 
> sequence into, or escaping all characters in the string before using it 
> as a filename.

Oh, of course! Good idea. I was only expecting "0" or "1" as the
identifier!

One must give a sequence via the -i option, or else the session
can never be restarted because nobody knows what the random identifier
is.

But the problem comes from a shift towards starting all sessions from
the nbd.conf file, where an identifier is mandatory.

> What about tmpname (or tmpnam? or something)?

I think I already use it. Sure fine ..

I'll do something about inventing small random sequences :-).

Thanks for pointing this out. MMMind ˇyopu, not being able to make a
pid file is not serious. Just motivation for giving a sensible id.

Peter