[ENBD] /proc/nbdinfo
Peter T. Breuer
enbd@lists.community.tummy.com
Sat, 23 Nov 2002 08:46:32 +0100 (MET)
"Kay Salzwedel wrote:"
> "Peter T. Breuer" wrote:
> > "Kay Salzwedel wrote:"
> > > "Peter T. Breuer" wrote:
> > > > Hmm. 5020. 4096 plus 924. Quite strange. Is it always that?
> > > No, it changes. I have seen 5099, 5091, 5109, 5120, ...
Can you try patching red_proc as follows?
// PTB re-init vital statics for next time
next_label = NULL;
next_label_name = NULL;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,0)
+ if (len <= 0)
*eof = 1;
#endif
- *start = buf;
+ *start = (char *)len;
total += len;
NBD_DEBUG (2, "exited OK after %d bytes total %d\n", len, total);
return len;
Peter