> That's definitely a bug. IMNSHO a swapon() should be treated the same
> way as an open() from this standpoint.
It's not a bug, swapon() does increment the inode usage counter of the
swapfile.
> It may also be a good idea
> (although I don't know about this one, really) to record a lock on all
> bytes in the file.
It might be. Although, if it's just an advisory lock... it's kind of
useless.
Ionut
-- It is better to keep your mouth shut and be thought a fool, than to open it and remove all doubt.