Subject: Adding /proc/swaps to linux compat code
To: None <tech-kern@netbsd.org>
From: Arnaud Lacombe <arnaud.lacombe.1@ulaval.ca>
List: tech-kern
Date: 01/31/2007 11:19:56
Hi,

I'd like to add a /proc/swaps entry to our linux /proc emulation. It is
used at least by Oracle 10g to determine swap space available on the
system. This check is not mandatory and its result could be ignored, but
it's not worth having it.

A first patch is available here:
http://www.sigfpe.info/netbsd/proc_swaps.diff

The only one problem is the partition type, I guess I can rely on the
value of sep->se_dev (ie. if the swap is a valid block dev or not) to
determine if it's a partition or a file.

Any comments ?

 - Arnaud