Re: Why is SECTOR_SIZE = 512 inside kernel ?

From: Brice Goglin
Date: Tue Aug 18 2015 - 17:06:54 EST


Le 17/08/2015 15:54, Theodore Ts'o a écrit :
>
> It's cast in stone. There are too many places all over the kernel,
> especially in a huge number of file systems, which assume that the
> sector size is 512 bytes. So above the block layer, the sector size
> is always going to be 512.

Could this be a problem when using pmem/nvdimm devices with
byte-granularity (no BTT layer)? (hw_sector_size reports
512 in this case while we could expect 1 instead).
Or it just doesn't matter because BTT is the only way to use
these devices for filesystems like other block devices?

thanks
Brice

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/