diff options
author | Pavel Machek <pavel@suse.cz> | 2009-01-15 22:51:03 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-16 01:39:38 +0100 |
commit | c91192d66d6cea7878b8542c9d9f1873971aba92 (patch) | |
tree | 954adf09a2d6f4028aa8c3a842aa07235e3d4be5 /scripts/pnmtologo.c | |
parent | btrfs & squashfs: Move btrfs and squashfsto's magic number to <linux/magic.h> (diff) | |
download | linux-c91192d66d6cea7878b8542c9d9f1873971aba92.tar.xz linux-c91192d66d6cea7878b8542c9d9f1873971aba92.zip |
nbd: do not allow two clients at the same time
Two nbd-clients at same time are bad idea, and cause WARN_ON from nbd in
2.6.28-rc7 from sysfs_add_one. This simply prevents that from happening.
To reproduce:
cat /dev/zero | head -c 10000000 > /tmp/delme.fstest.fs
nbd-server 9100 -l /anyone.can.connect > /tmp/delme.fstest.fs &
sleep 1
nbd-client localhost 9100 /dev/nd0 &
nbd-client localhost 9100 /dev/nd0 &
Signed-off-by: Pavel Machek <pavel@suse.cz>
Acked-by: Paul Clements <paul.clements@steeleye.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/pnmtologo.c')
0 files changed, 0 insertions, 0 deletions