Received: from mail-qt1-f172.google.com (mail-qt1-f172.google.com [209.85.160.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E5E4EBA44 for ; Wed, 22 Mar 2023 22:17:41 +0000 (UTC) Received: by mail-qt1-f172.google.com with SMTP id ga7so5834112qtb.2 for ; Wed, 22 Mar 2023 15:17:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679523461; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=w8fm59T6GNtFNZMpkSl1+tEkfa0SYgZQT4b9lud/WVc=; b=w/F1JhRj6jvn6IepSOdWGj3bVf1eFF0X3G5di+kSXrVG4LwQEQbD41GoZC4ILQMZSm WqtwMOtAHsLB60n60LtXjQ6g/cs1xPjEOC8cYkcG9/+GwE3LfVnaP5u3u53KVo7d6pvE uVcel76nmRYtE2qYTfuDUi4On0N5dSVfrrtlDEyB9aNmdsVuRf8RpJF37zoF+54lWFk1 s3i8HHmBc6AuSyDOzup+M6CrUoUiYnWgRiriCYxd6bTJdoiXhwPYPAecW1kqwNlzGyZW uRuV+JBiecHnJSW4mYWCLgCQA+7H/hkUOJGbd3ur89nacQr82UV9SnKP0rTXSJgNSJnZ 0kTQ== X-Gm-Message-State: AO0yUKVs4p/7WZg2CqKfjO6/qecuqohRM5gW7bI/aWJ/vUPr7RkJvYyl YeT/Ay3DkKkP4QW40u7ITe4= X-Google-Smtp-Source: AK7set9yeM+Iuru4SwZlFPYQIFWDKA9bG78A4iKjbutxtB1YOJjhX65eU6Bkl/CCbev7aYajH6rZYw== X-Received: by 2002:a05:622a:204:b0:3dc:ac3b:ca6c with SMTP id b4-20020a05622a020400b003dcac3bca6cmr7110842qtx.6.1679523460610; Wed, 22 Mar 2023 15:17:40 -0700 (PDT) Received: from Belldandy-Slimbook.infra.opensuse.org (ool-18e49371.dyn.optonline.net. [24.228.147.113]) by smtp.gmail.com with ESMTPSA id j185-20020a37b9c2000000b007465ad44891sm11068443qkf.102.2023.03.22.15.17.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 15:17:40 -0700 (PDT) From: Neal Gompa To: Linux BTRFS Development Cc: Neal Gompa , Anand Jain , Qu Wenruo , Qu Wenruo , David Sterba , Hector Martin , Sven Peter , Davide Cavalca , Jens Axboe , Asahi Lina , Asahi Linux Subject: [PATCH 0/1] Enforce 4k sectorize by default for mkfs Date: Wed, 22 Mar 2023 18:17:13 -0400 Message-Id: <20230322221714.2702819-1-neal@gompa.dev> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: asahi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The Fedora Asahi SIG[0] is working on bringing up support for Apple Silicon Macintosh computers through the Asahi Fedora 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. Soon, this will be even more of a problem within Apple Silicon Macs as Asahi Lina is working on 4k support to enable x86 emulation[2] and since Linux does not support dynamically switching page sizes at runtime, users will likely regularly switch back and forth depending on their needs. 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 looks promising[4], and I hope we can get this to land upstream soon. === Changelog === 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://asahi-fedora-remix.org/ [2]: https://vt.social/@lina/110060963422545117 [3]: https://lore.kernel.org/linux-btrfs/fdffeecd-964f-0c69-f869-eb9ceca20263@suse.com/T/#m11d7939de96c43b3a7cdabc7c568d8bcafc7ca83 [4]: https://lore.kernel.org/linux-btrfs/fdffeecd-964f-0c69-f869-eb9ceca20263@suse.com/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(-) -- 2.39.2