]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
mkfs: fix libxfs_iget return value sign inversion
authorDarrick J. Wong <djwong@kernel.org>
Tue, 23 Sep 2025 17:08:57 +0000 (10:08 -0700)
committerAndrey Albershteyn <aalbersh@kernel.org>
Thu, 25 Sep 2025 09:18:10 +0000 (11:18 +0200)
commitadd1e9d2f576a3222faba16a11868eb178d2ba86
tree1515ca005114b1a0790124341dd1fe2dda517b70
parent75faf2bc907584acc879accae60a59bd655b6b6a
mkfs: fix libxfs_iget return value sign inversion

libxfs functions return negative errno, so utilities must invert the
return values from such functions.  Caught by xfs/437.

Fixes: 8a4ea72724930c ("proto: add ability to populate a filesystem from a directory")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Andrey Albershteyn <aalbersh@kernel.org>
mkfs/proto.c