From 0536963a3e4bef554b29b0d93f7d9bf93d75cbdf Mon Sep 17 00:00:00 2001 From: rpm-build Date: Fri, 24 Feb 2023 07:49:12 -0800 Subject: [PATCH] Hardcode dm ioctl to use "0" as version minor part to allow co-operate with UEK3 whose dm version is lower than RHCK. Orabug: 18467469 Signed-off-by: Vaughan Cao Signed-off-by: John Sobecki Signed-off-by: Darren Archibald Signed-off-by: Tony Rodriguez Reviewed-by: Laurence Rochfort Reviewed-by: Aleksandr Burmashev --- src/shutdown/umount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shutdown/umount.c b/src/shutdown/umount.c index e650b82..522ebb3 100644 --- a/src/shutdown/umount.c +++ b/src/shutdown/umount.c @@ -495,7 +495,7 @@ static int delete_dm(MountPoint *m) { return RET_NERRNO(ioctl(fd, DM_DEV_REMOVE, &(struct dm_ioctl) { .version = { DM_VERSION_MAJOR, - DM_VERSION_MINOR, + 0, DM_VERSION_PATCHLEVEL }, .data_size = sizeof(struct dm_ioctl), -- 2.27.0