[haiku-development] Re: Partition block size confusion

  • From: Ingo Weinhold <ingo_weinhold@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Wed, 28 Sep 2016 15:25:36 +0200

On 28.09.2016 08:03, Ingo Weinhold wrote:

On September 27, 2016 10:28:20 PM CEST, Adrien Destugues
<pulkomandy@xxxxxxxxxxxxx> wrote:
 >
 >2) Separate block size from "sector size" (or logical/physical), so the
 >FS can set a size, yet we remember what the underlying layout is.

There already are several field pairs where the containing and the
contained disk system need separate values (size vs. content_size, name
vs. content_name, etc.). So, if separate values were needed indeed, a
new field content_block_size should be introduced.

However, there is really no use for a partitioning system having a per
(child) partition block size.

... to conclude: I would add a service function get_parent_partition_block_size() that returns the parent partition system's respectively for the root partition the device's block size. That function can be used by disk systems that need to inherit the disk's/parent partitioning system's block size.

The file systems not setting their block size is definitely the wrong approach.

CU, Ingo


Other related posts: