Re: [PATCH 11/19] mkfs: table based parsing for converted parameters

Eric Sandeen
2016-05-02T23:09:46Z

The kernel enforces a max of XLOG_MAX_RECORD_BSIZE,
and it should match the limits in L_SUNIT after all ...

Eric Sandeen <sandeen@redhat.com>: fix min/max for "-l su"
---

su and sunit are ultimately setting the same parameter; their
limits should be the same.
diff --git a/mkfs/xfs_mkfs.c b/mkfs/xfs_mkfs.c
index 0d28a84..3ffae42 100644
--- a/mkfs/xfs_mkfs.c
+++ b/mkfs/xfs_mkfs.c
@@ -395,8 +395,8 @@ struct opt_params lopts = {
},
{ .index = L_SU,
.convert = true,
- .minval = 0,
- .maxval = UINT_MAX,
+ .minval = XLOG_MIN_RECORD_BSIZE,
+ .maxval = XLOG_MAX_RECORD_BSIZE,
.defaultval = SUBOPT_NEEDS_VAL,
},
{ .index = L_DEV,