mbox series

[0/4] btrfs-progs: rename "sector size" to "block size"

Message ID cover.1734324435.git.wqu@suse.com (mailing list archive)
Headers show
Series btrfs-progs: rename "sector size" to "block size" | expand

Message

Qu Wenruo Dec. 16, 2024, 4:51 a.m. UTC
Since day 1 of btrfs, we use the name "sector size" to indicate the
minimum data unit size (from btrfs_super_block::sectorsize).

But all other file systems use "block size" to indicate the minimum data
unit size, and inside kernel, a sector is used to describe the minimal
IO block size for a block device.
Furthermore kernel sector size is fixed to 512, and different block
devices have different sector sizes, from the older 512 sector sized
HDDs, to modern day flash devices that are even pushing for 16K sector
size.

This has brought quite some confusiong when we need to co-operate with
other fs/mm people.

I believe it's time to do the migration for btrfs-progs first, then do
it inside the kernel, before we're pushing for iomap support.

Qu Wenruo (4):
  btrfs-progs: convert btrfs_fs_info::sectorsize to blocksize
  btrfs-progs: mkfs: add "--blocksize" option as an alias for
    "--sectorsize"
  btrfs-progs: docs: change the terminology from "sectorsize" to
    "blocksize"
  btrfs-progs: rename btrfs_super_block::sectorsize to blocksize

 Documentation/Status.rst             |  8 +--
 Documentation/Subpage.rst            | 11 ++--
 Documentation/btrfs-convert.rst      |  4 +-
 Documentation/btrfs-man5.rst         |  4 +-
 Documentation/ch-balance-filters.rst |  4 +-
 Documentation/ch-mount-options.rst   |  6 +-
 Documentation/ch-sysfs.rst           |  2 +-
 Documentation/mkfs.btrfs.rst         | 20 ++++--
 btrfs-corrupt-block.c                | 24 +++----
 check/main.c                         | 44 ++++++-------
 check/mode-common.c                  | 18 ++---
 check/mode-lowmem.c                  | 24 +++----
 check/repair.c                       |  4 +-
 cmds/inspect-dump-tree.c             |  8 +--
 cmds/rescue-chunk-recover.c          | 24 +++----
 cmds/restore.c                       |  6 +-
 common/clear-cache.c                 |  2 +-
 common/fsfeatures.c                  | 52 +++++++--------
 common/fsfeatures.h                  |  4 +-
 convert/common.c                     | 16 ++---
 convert/main.c                       | 24 +++----
 convert/source-ext2.c                | 18 ++---
 convert/source-fs.c                  | 16 ++---
 convert/source-reiserfs.c            | 12 ++--
 image/image-restore.c                |  8 +--
 kernel-shared/accessors.h            |  4 +-
 kernel-shared/ctree.h                |  5 +-
 kernel-shared/disk-io.c              | 28 ++++----
 kernel-shared/disk-io.h              |  2 +-
 kernel-shared/extent-tree.c          | 10 +--
 kernel-shared/file-item.c            | 18 ++---
 kernel-shared/file-item.h            |  4 +-
 kernel-shared/file.c                 | 18 ++---
 kernel-shared/free-space-cache.c     | 40 ++++++------
 kernel-shared/free-space-cache.h     |  4 +-
 kernel-shared/free-space-tree.c      | 28 ++++----
 kernel-shared/print-tree.c           | 12 ++--
 kernel-shared/tree-checker.c         | 98 ++++++++++++++--------------
 kernel-shared/uapi/btrfs_tree.h      |  4 +-
 kernel-shared/volumes.c              | 20 +++---
 mkfs/common.c                        | 22 +++----
 mkfs/common.h                        |  2 +-
 mkfs/main.c                          | 43 ++++++------
 mkfs/rootdir.c                       | 78 +++++++++++-----------
 tune/change-csum.c                   | 26 ++++----
 45 files changed, 419 insertions(+), 410 deletions(-)

--
2.47.1