Skip to content

Enforce 4k sectorize by default for mkfs

Neal Gompa asahi linux-btrfs 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest1 patch 12 repliesIn review
  2. v3 posting 2/21 patch 0 repliesSuperseded
  3. v3 posting 1/20 of 1 patch 0 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v2 posting 2/21 patch0 repliesSuperseded
v2 RFC posting 1/21 patch4 repliesSuperseded
v1 RFC1 patch7 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1btrfs-progs: mkfs: Enforce 4k sectorsize by defaultDocumentation/Subpage.rst Documentation/mkfs.btrfs.rst mkfs/main.c+19 -131 reply

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchAnand JainQu WenruoJosef BacikEric Curtin
1/1R-b R-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v4 thread

Cover letter [PATCH v4 0/1] Enforce 4k sectorize by default for mkfs

The Fedora Asahi SIG[0] is working on bringing up support for Apple Silicon Macintosh computers through the Fedora Asahi Remix[1].

Apple Silicon Macs are unusual in that they currently require 16k page sizes, which means that the current default for mkfs.btrfs(8) makes a filesystem that is unreadable on x86 PCs and most other ARM PCs.

This is now even more of a problem within Apple Silicon Macs as it is now possible to nest 4K Fedora Linux VMs on 16K Fedora Asahi Remix machines to enable performant x86 emulation[2] and the host storage needs to be compatible for both environments.

Thus, I'd like to see us finally make the switchover to 4k sectorsize for new filesystems by default, regardless of page size.

The initial test run by Hector Martin[3] at request of Qu Wenruo looked promising[4], and we've been running with this behavior on Fedora Linux since Fedora Linux 36 (at around 6.2) with no issues.

=== Changelog ===

v4: Fixed minor errors in the cover letter and patch subject

v3: Refreshed cover letter, rebased to latest, updated doc references for v6.7

v2: Rebased to latest, updated doc references for v6.6

Final v1: Collected Reviewed-by tags for inclusion.

RFC v2: Addressed documentation feedback

RFC v1: Initial submission

[0]: https://fedoraproject.org/wiki/SIGs/Asahi
[1]: https://fedora-asahi-remix.org/
[2]: https://sinrega.org/2023-10-06-using-microvms-for-gaming-on-fedora-asahi/
[3]: https://lore.kernel.org/linux-btrfs/[email protected]/T/#m11d7939de96c43b3a7cdabc7c568d8bcafc7ca83
[4]: https://lore.kernel.org/linux-btrfs/[email protected]/T/#mf382b78a8122b0cb82147a536c85b6a9098a2895

Neal Gompa (1):
btrfs-progs: mkfs: Enforce 4k sectorsize by default

 Documentation/Subpage.rst    | 15 ++++++++-------
 Documentation/mkfs.btrfs.rst | 13 +++++++++----
 mkfs/main.c                  |  2 +-
 3 files changed, 18 insertions(+), 12 deletions(-)
Signature · 1 line
2.39.2