mbox series

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

Message ID 171339160678.1911630.18411132544715274906.stg-ugh@frogsfrogsfrogs (mailing list archive)
State New
Headers show
Series [GIT,PULL,01/11] xfsprogs: packaging fixes for 6.7 | expand

Pull-request

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

Message

Darrick J. Wong April 17, 2024, 10:09 p.m. UTC
Hi Carlos,

Please pull this branch with changes for xfsprogs for 6.6-rc1.

As usual, I did a test-merge with the main upstream branch as of a few
minutes ago, and didn't see any conflicts.  Please let me know if you
encounter any problems.

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(-)