Skip to content

Fix kpart -d regression where matching devices not found

Stef Walter dm-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1kpartx: Use absolute paths to create mappingskpartx/kpartx.c+1 -11 reply

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchBenjamin Marzinski
1/1R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/1] Fix kpart -d regression where matching devices not found

The Lorax project found a regression in kpartx -d behavior introduced by the following commit: 9bdfa3eb8e24b668e6c2bb882cddb0ccfe23ed5b

This patch should fix the problem. It's easy to reproduce this problem (I did it on Fedora 28) with the following commands:

        # kpartx -av disk.img
        ...
        # kpartx -dv disk.img

Notice that the loop devices and partition mappings created by the first command are not cleaned up by the second command.

Stef Walter (1):
kpartx: Use absolute paths to create mappings

 kpartx/kpartx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.17.1