Whamcloud - gitweb
LU-18560 utils: Fix ldiskfs_write_dd Coverity warnings 49/57449/2
authorMarc Vef <mvef@whamcloud.com>
Sun, 15 Dec 2024 20:15:49 +0000 (21:15 +0100)
committerOleg Drokin <green@whamcloud.com>
Sat, 18 Jan 2025 22:05:26 +0000 (22:05 +0000)
commit52105a555f55b399a115f3158b3827eb0db726f6
tree6d52b40da96f04dcd5e005e894a600c5e7d00a76
parent277b07e1750ec101e0fe238cada651668a57e39e
LU-18560 utils: Fix ldiskfs_write_dd Coverity warnings

Coverity has reported issues with the "ldiskfs_write_ldd()" function.
In particular OVERRUN, INTEGER_OVERFLOW, NO_EFFECT, and
ARRAY_VS_SINGLETON warnings.

This patch fixes these warnings.

Fixes: 7687e22af35d ("LU-9936 utils: Improve ldiskfs_write_dd() writing mount data")
Signed-off-by: Marc Vef <mvef@whamcloud.com>
Change-Id: Id1379d9c6d53e697ff2ee12570b4569c4bce5e73
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/57449
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Mikhail Pershin <mpershin@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/utils/libmount_utils_ldiskfs.c