commit | bd3896694fce07e4af39f00f39eeb65bae2e66ce | [log] [tgz] |
---|---|---|
author | Darrick J. Wong <djwong@kernel.org> | Fri Dec 20 08:17:45 2024 -0800 |
committer | Darrick J. Wong <djwong@kernel.org> | Thu Jan 09 19:47:56 2025 -0800 |
tree | 5f7cba30c13c47545c12dfbcac51a7f46cd6bd06 | |
parent | 547ce43aeb2e0594137e015c0d71af24ebf5edd6 [diff] |
mkfs: fix parsing of value-less -d/-l concurrency cli option It's supposed to be possible to specify the -d concurrency option with no value in order to get mkfs calculate the agcount from the number of CPUs. Unfortunately I forgot to handle that case (optarg is null) so mkfs crashes instead. Fix that. Fixes: 9338bc8b1bf073 ("mkfs: allow sizing allocation groups for concurrency") Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>