]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
mkfs: simplify the configured sector sizes setting in validate_sectorsize
authorKaixu Xia <kaixuxia@tencent.com>
Tue, 26 May 2020 18:42:30 +0000 (14:42 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Tue, 26 May 2020 18:42:30 +0000 (14:42 -0400)
commit9f9ee751f2ca7e8635ac71ceee3eb78377305e05
tree0f387fef49157859af7916ca055ef6da8ca84aac
parent36dc471cc9bb17868b79cf8dea8151b207387539
mkfs: simplify the configured sector sizes setting in validate_sectorsize

There are two places that set the configured sector sizes in
validate_sectorsize, actually we can simplify them and combine into one
if statement. Use the default value structure to set the topology sectors
when probing fails.

Signed-off-by: Kaixu Xia <kaixuxia@tencent.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
mkfs/xfs_mkfs.c