From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xose Vazquez Perez Subject: Re: [PATCH 0/1] Fix kpart -d regression where matching devices not found Date: Tue, 9 Oct 2018 14:38:44 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Language: en-GB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Stef Walter Cc: device-mapper development List-Id: dm-devel.ids Stef Walter wrote: You should send(CC:) it also to Christophe. > 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(-)