Subject: Re: Adding /proc/swaps to linux compat code
To: matthew green <mrg@eterna.com.au>
From: Arnaud Lacombe <arnaud.lacombe.1@ulaval.ca>
List: tech-kern
Date: 01/31/2007 13:07:58
matthew green wrote:
 > se_dev will be NODEV for a file or a device for a partition.
ok

> sizes are stored in DEV_BSIZE units, so you should adjust the value of
> se_nblks and se_inuse with "/ 1024 * DEV_BSIZE" or something.  i'm not
> really sure which order would be best for those two operation, in order
> to avoid integer underflow or overflow issues.  please also update the
> comment to reflect this...
hum, sizes reported depend of `swd_bsize', which depend of 
`statvfs->f_iosize' which could be different of DEV_BSIZE, but who want 
to have swap device on CD-rw :). btw, DEV_BSIZE / 1024 is 1/2, but I'll 
update the patch anyway :)

  - Arnaud