On Wed, Sep 05, 2018 at 03:31:48PM +0100, Richard W.M. Jones wrote:
> On Tue, Sep 04, 2018 at 07:55:00PM -0600, Chris Murphy wrote:
> > https://rwmj.wordpress.com/2018/09/04/nbdkit-as-a-flexible-alternative-to-loopback-mounts/
> > 
> > This is a pretty cool writeup. I can vouch Btrfs will format mount,
> > write to, scrub, and btrfs check works on an 8EiB (virtual) disk.
> >
> > The one thing I thought might cause a problem is the ndb device has a
> > 1KiB sector size, but Btrfs (on x86_64) still uses 4096 byte "sector"
> > and it all seems to work fine despite that.
> 
> Thanks for the kind words.  I did an updated post verifying what you
> said and also noting that the ‘nbd-client -b’ option can be used to
> adjust the sector size:
> 
>   
> https://rwmj.wordpress.com/2018/09/05/nbdkit-for-loopback-pt-5-8-exabyte-btrfs-filesystem/
> 
> Btrfs still seems to believe the sector size is 4k, although as you
> say it doesn't seem to cause any issues.

The 1k sector is like the hardware sector, eg. 512b or 4k on a HDD. This
is abstracted by block layer and the filesystem accesses the block
device using the bio API, that uses pages and description of offset and
length.  So the sector provided by NBD does not matter here.

Reply via email to