Skip to content

mkfs: various cleanups

Dave Chinner linux-xfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7mkfs: use opts parameter during option parsingmkfs/xfs_mkfs.c+30 -301 reply
2/7mkfs: simplify minimum log size calculationinclude/xfs_multidisk.h mkfs/Makefile mkfs/maxtrres.c +1 more+52 -1521 reply
3/7mkfs: protofile only needs to be set up oncemkfs/xfs_mkfs.c+0 -21 reply
4/7mkfs: support arbitrary conflict specificationmkfs/xfs_mkfs.c+130 -1274 replies
5/7mkfs: convert subopt name,val pairs to enums and declared arraysmkfs/xfs_mkfs.c+153 -1231 reply
6/7mkfs: resolve sector size CLI conflictsmkfs/xfs_mkfs.c+31 -123 replies
7/7mkfs: remove logarithm based CLI optionsmkfs/xfs_mkfs.c+10 -1404 replies

Reviews trailers per patch

5 of 7 patches have a Reviewed-by or Acked-by.

PatchDarrick J. Wong
1/7R-b
2/7R-b
3/7R-b
4/7
5/7R-b
6/7
7/7R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/7] mkfs: various cleanups

Hi folks,

This patchset follows up the mkfs refactoring and cleans up some of the loose ends in that patchset. The first patch makes all the option parsing use option table poitners consistently. The second patch gets rid of mkfs/maxtrres.c as we don't need to build a whole new superblock from individual config state anymore. The third patch fixes a double call to setup the protofile.

THe next three patches allow the option table to specify conflicts with options ouside the immediate subsystem. This cleans up the implicit index in teh subopt name arrays and fixes some suboptimal error messages.

Finally, the last patch removes all the log-based size options for different parameters. We don't use them anywhere in xfstests, and very few people use them, so just remove all the redundant options and clean up the code to consistently calculate the log based values needed in the superblock.

Thoughts, comments, flames all welcome...

-Dave.