Re: Block device locking (was Re: mkswap & swapon)

Peter Moulder (reiter@netspace.net.au)
22 Feb 1998 09:37:00 +1100


No. Please try it before suggesting that there is a problem.

See sys_swapon() in mm/swapfile.c.

pjm.

"phil.burr@usa.net (Phillip Burr)" <philb@powerquest.com> writes:

> Perhaps what is needed is a device locking mechanism. ... [As an
> example of how one can swapon the same device twice, one]
> could create another device for that major/minor with the command
> 'mknod ~/swap b 3 3' and get around any locking mechanism using
> i_count and d_count. (And any other that I know of!)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu