]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_protofile: fix device number encoding
authorDarrick J. Wong <djwong@kernel.org>
Mon, 3 Feb 2025 22:40:55 +0000 (14:40 -0800)
committerAndrey Albershteyn <aalbersh@kernel.org>
Wed, 5 Feb 2025 17:20:02 +0000 (18:20 +0100)
commiteff7226942a59fc78e8ecd7577657c30ed0cf9a8
tree6bdbf417bdc92645375861824cd4c019eee06310
parenta9d781ec5505b9b96641f6130f043e45b7573307
xfs_protofile: fix device number encoding

Actually crack major/minor device numbers from the stat results that we
get when we encounter a character/block device file.

Fixes: 6aace700b7b82d ("mkfs: add a utility to generate protofiles")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
mkfs/xfs_protofile.in