[GIT PULL 07/11] xfsprogs: fix log sector size detection

Darrick J. Wong
2024-04-17T22:09:10Z

The following changes since commit 16a75c71b4c04373c0c726b8e6ddfd030a81c93e:

xfs_io: add linux madvise advice codes (2024-04-17 14:06:27 -0700)

are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfsprogs-dev.git tags/mkfs-fix-log-sector-size-6.8_2024-04-17

for you to fetch changes up to 53bf0604e104bc053778495faef94b3570582aac:

mkfs: use a sensible log sector size default (2024-04-17 14:06:27 -0700)

----------------------------------------------------------------
xfsprogs: fix log sector size detection [V3 07/20]

From Christoph Hellwig,

this series cleans up the libxfs toplogy code and then fixes detection
of the log sector size in mkfs.xfs, so that it doesn't create smaller
than possible log sectors by default on > 512 byte sector size devices.

Note that this doesn't cleanup the types of the topology members, as
that creeps all the way into platform_findsize. Which has a lot more
cruft that should be dealth with and is worth it's own series.

Changes since v2:
- rebased to the lastest for-next branch

Changes since v1:
- fix a spelling mistake
- add a few more cleanups

This has been running on the djcloud for months with no problems. Enjoy!

Signed-off-by: Darrick J. Wong <djwong@kernel.org>

----------------------------------------------------------------
Christoph Hellwig (5):
libxfs: remove the unused fs_topology_t typedef
libxfs: refactor the fs_topology structure
libxfs: remove the S_ISREG check from blkid_get_topology
libxfs: also query log device topology in get_topology
mkfs: use a sensible log sector size default

libxfs/topology.c | 109 +++++++++++++++++++++++++++---------------------------
libxfs/topology.h | 19 ++++++----
mkfs/xfs_mkfs.c | 71 +++++++++++++++++------------------
repair/sb.c | 2 +-
4 files changed, 100 insertions(+), 101 deletions(-)