Subject: Re: how to change swapctl() interface.
To: matthew green <mrg@eterna.com.au>
From: Frank van der Linden <frank@wins.uva.nl>
List: tech-kern
Date: 05/26/1998 13:38:59
On Tue, May 26, 1998 at 08:17:30PM +1000, matthew green wrote:
> 
> or add a char * to the swapent structure.  the first has the disadvantage
> of wasting a lot of space per swap device (to be correct, you need to
> have 1024 bytes of space for this pathname), while the second has the
> disadvantage of being an API lose.
> 
> what i've done in my kernel is use a smaller fixed sized array (104
> bytes i chose, stealing the idea from <sys/un.h>).
> 
> 104 bytes is a long path name, and probably never will be exceeded in
> normal or abnormal circumstances.

Adding the pathname is a logical idea, but I don't see why you
limit the pathname length. 1k per swap device isn't really that much..
What's the max. number of swapdevices that you'll ever use? Most
configurations will not exceed 1 or 2. Losing 1 or 2 k isn't
really a big deal.

- Frank