tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: blocksizes



At Mon, 1 Feb 2010 15:34:39 -0500 (EST), der Mouse 
<mouse%Rodents-Montreal.ORG@localhost> wrote:
Subject: Re: blocksizes
> 
> > This can easily happen if you copy the image between disks with
> > different block sizes.
> 
> Now _there_ is a valid argument for doing everything in terms of bytes
> (as was discussed briefly upthread).

Indeed.  Or at least using only _one_ logical block size that's
consistent for the system across all hardware that can be used by the
system.

Otherwise one must have a working equivalent NetBSD system that can make
use of both kinds of disks in order to copy an image from one kind of
disk to another.  Instead I think it would be best to be able to use any
kind of host system to make an image copy of a NetBSD disk even across
disks with different sector sizes, i.e. without having to use a system
which can understand both the on-disk filesystem and how it deals with
different hardware sector sizes.

In the pure sense of trying to do what's most optimal for a given system
on a given type of hardware, I think I can understand the desire to use
the hardware sector size, or multiples thereof, in the disk driver and
to map logical sectors to match.  However for a portable system I think
the on-disk filesystem representation should try to use a single logical
sector size across all hardware.

I hesitate to say even this much, never mind any more, because I still
feel like I'm sitting firmly and safely on the fence.  :-)

-- 
                                                Greg A. Woods
                                                Planix, Inc.

<woods%planix.com@localhost>       +1 416 218 0099        http://www.planix.com/

Attachment: pgpSX_3hDTj2r.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index