cvs commit: src/sys/dev/md md.c

Bruce Evans bde at zeta.org.au
Mon Mar 1 02:02:15 PST 2004


On Sun, 29 Feb 2004, Colin Percival wrote:

> cperciva    2004/02/29 07:58:54 PST
>
>   FreeBSD src repository
>
>   Modified files:
>     sys/dev/md           md.c
>   Log:
>   Use DEV_BSIZE byte sectors instead of PAGE_SIZE byte sectors for
>   swap-backed memory disks.  This reduces filesystem allocation overhead
>   and makes swap-backed memory disks compatible with broken code (dd,
>   for example) which expects to see 512 byte sectors.  The size of a
>   swap-backed memory disk must still be a multiple of the page size.

This was mostly a feature.  It helped expose broken code that wants 512
byte sectors.  dd is as far as possible from being an example of such
code.  It uses the requested block size which just defaults to 512.

Bruce


More information about the cvs-all mailing list