Date: Mon, 01 Mar 2004 14:57:09 +0000 From: Colin Percival <colin.percival@wadham.ox.ac.uk> To: Bruce Evans <bde@zeta.org.au> Cc: Colin Percival <cperciva@FreeBSD.org> Subject: Re: cvs commit: src/sys/dev/md md.c Message-ID: <6.0.1.1.1.20040301145406.038ede88@imap.sfu.ca> In-Reply-To: <20040301205527.H13424@gamplex.bde.org> References: <200402291558.i1TFwsGw035149@repoman.freebsd.org> <20040301205527.H13424@gamplex.bde.org>
index | next in thread | previous in thread | raw e-mail
At 10:02 01/03/2004, Bruce Evans wrote: >On Sun, 29 Feb 2004, Colin Percival wrote: > > 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. > >This was mostly a feature. It helped expose broken code that wants 512 >byte sectors. Well... yes, but I don't think it was an intended feature. :) > dd is as far as possible from being an example of such >code. It uses the requested block size which just defaults to 512. Ideally, dd should look at what it's being asked to access, and get a default block size from that. (Yes, there are much worse offenders, dd just happened to be the first problem which came to mind.) Colin Percivalhome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6.0.1.1.1.20040301145406.038ede88>
