]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
mdrestore: Fix logic used to check if target device is large enough
authorChandan Babu R <chandan.babu@oracle.com>
Mon, 6 Nov 2023 13:10:35 +0000 (18:40 +0530)
committerCarlos Maiolino <cem@kernel.org>
Tue, 21 Nov 2023 13:09:36 +0000 (14:09 +0100)
commit0d3650b23a3a79a03c1e4968593ec695b6d575ff
tree7a073df2d32b294793590239754318b13d16a3d7
parent3ea310101abf621b3807ee6bebd04d2490930be6
mdrestore: Fix logic used to check if target device is large enough

The device size verification code should be writing XFS_MAX_SECTORSIZE bytes
to the end of the device rather than "sizeof(char *) * XFS_MAX_SECTORSIZE"
bytes.

Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandan.babu@oracle.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
mdrestore/xfs_mdrestore.c