lkml.org 
[lkml]   [1998]   [Feb]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Block device locking (was Re: mkswap & swapon)
From
Date
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

\
 
 \ /
  Last update: 2005-03-22 13:41    [W:0.047 / U:0.160 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site