Re: btrfs on whole disk (no partitions)

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

 



Chris Murphy posted on Sun, 22 Jun 2014 12:47:10 -0600 as excerpted:

>> As far as I know, btrfs defaults to 4K UNLESS you specify 512B
> 
> I'm not sure what this means. The Btrfs sector size minimum is 4096
> bytes.
> I can use -s to make it bigger, but not less than 4096 on 512/512 or
> 512/4096 byte drives. I actually don't know what Btrfs sector size is
> but it's not the same thing as drive logical or physical sector size.

FWIW, for btrfs I prefer the terms block size or page size, which on x86 
(both 32-bit and 64-bit) and arm is 4096 bytes (tho on other archs it can 
range from 2048 byte to 64 KiB), reserving the "sector" term for actual 
hardware.

Btrfs is copy-on-write, and AFAIK sends no operations to the lower levels 
at smaller than this block size, so on x86 (32-bit or 64-bit), all btrfs 
level operations should be in 4096-byte increments, regardless of the 
underlying ATA/SCSI hardware.

Tho as you point out elsewhere, levels under the filesystem layer may 
split the btrfs 4096 byte block size into 512 byte logical sector sizes 
if appropriate, but that has nothing to do with btrfs except that it 
operates on top of that.

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman

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




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux