On Wed, Oct 07, 2009 at 11:07:42AM +0200, Hermann Lauer wrote:
> On Wed, Oct 07, 2009 at 12:03:01AM +0200, Wouter Verhelst wrote:
> > > with the raid1 setup below if the nbd-server stops nbd-client dies too, 
> > > the /dev/nbd0 device
> > > disappears
> > 
> > What do you mean by 'the device disappears'? The device node will not go
> > away; do you just mean to say that the connection is lost?
> 
> Sorry, I mean disappearing from /proc/partitions.

Okay.

> > What happens if you wait "timeout" seconds and try to read from the
> > device manually (e.g., by doing "dd if=/dev/nbd0 of=/dev/zero count=1")?
> 
> The nbd-client dies, and the partition is no longer in /proc/partitions.
> 
> # dd if=/dev/nbd0 of=/dev/zero count=1
> 0+0 records in
> 0+0 records out
> 0 bytes (0 B) copied, 3.9789e-05 s, 0.0 kB/s
> 
> dd on a never used /dev/nbd* device reports the same.

Hm.

Looks like the kernel no longer produces an error when trying to read
from a not-connected NBD device.

Not immediately sure what's going on here; will have to do some
debugging. I'll let you know when I know more.

-- 
The biometric identification system at the gates of the CIA headquarters
works because there's a guard with a large gun making sure no one is
trying to fool the system.
  http://www.schneier.com/blog/archives/2009/01/biometrics.html



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to