Network (Notwork?) block device

Pavel Machek (
Tue, 15 Apr 1997 00:22:47 +0200 (MET DST)

This is my little buggy signature...				Pavel
GCM d? s-: !g p?:+ au- a--@ w+ v- C++@ UL+++ L++ N++ E++ W--- M- Y- R+


Why is following piece of code needed in swapfile.c & what will happen if device will be open by swap & someone else?

error = -EBUSY; if (swap_inode->i_count != 1) goto bad_swap_2;

(I'm writing network block device. It works over TCP and makes it posible for one computer to mount disks of other one etc. However, primary target wa to swap over this. And it... say deadlocks.)

Is it possible to write/read from TCP connection when swapping?

Any idea what I did wrong? :-) Pavel