[ENBD] /proc/nbdinfo

Peter T. Breuer ptb at it.uc3m.es
Wed Jan 7 08:09:04 MST 2004


"Also sprach Julien Rennard:"
> On Wed, 2004-01-07 at 15:19, Peter T. Breuer wrote:
> > > > static void
> > > > enbd_reset(int reset, int index) {
> > > >         void do_reset(void) {
> > > >                 struct enbd_device *lo = enbd_dev[i];
> > 
> > I meant "index", not "i". There is no "i" here.
> so I put : struct enbd_decice * lo = enbd_dev[index];
> and compilation OK
> 
> > Sorry about that - I was typing while listening to the news on TV.
> No need to be sorry if only I was able to write C so fast I'll aways 
> do something at the same time to make it more challenging !
> 
> The bad thing is that it does not work... I tried 
> echo reset[a]=1 > /proc/nbdinfo
> after all the enbd-client where stoped and nothing change in
> /proc/nbdinfo

It's not supposed to change - well, all the code did was erase the
signature and reset the counters. All you might notice is that the
"signed" flag will disappear from the State line, allowing you to
restart ... hmm. You might also want to erase the size info and so
on. But first assure me that the "signed" has disappeared. We can take
it on from there.

> I'll try the more "brutal" solution !

Peter


More information about the ENBD mailing list