From patchwork Sat Oct 6 07:38:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stef Walter X-Patchwork-Id: 10629223 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F041813BB for ; Sat, 6 Oct 2018 07:39:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DEBAB28AFD for ; Sat, 6 Oct 2018 07:39:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CEA782920D; Sat, 6 Oct 2018 07:39:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 628A928AFD for ; Sat, 6 Oct 2018 07:39:20 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 832F0A6DE0; Sat, 6 Oct 2018 07:39:19 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 373296293B; Sat, 6 Oct 2018 07:39:19 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id D57FE180474F; Sat, 6 Oct 2018 07:39:18 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w967dHC6025492 for ; Sat, 6 Oct 2018 03:39:17 -0400 Received: by smtp.corp.redhat.com (Postfix) id CCD4562487; Sat, 6 Oct 2018 07:39:17 +0000 (UTC) Delivered-To: dm-devel@redhat.com Received: from falcon.thewalter.lan (ovpn-116-48.ams2.redhat.com [10.36.116.48]) by smtp.corp.redhat.com (Postfix) with ESMTP id 892B16247D; Sat, 6 Oct 2018 07:39:08 +0000 (UTC) From: Stef Walter To: dm-devel@redhat.com Date: Sat, 6 Oct 2018 09:38:55 +0200 Message-Id: <20181006073856.15246-1-stefw@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: dm-devel@redhat.com Cc: Stef Walter Subject: [dm-devel] [PATCH 0/1] Fix kpart -d regression where matching devices not found X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Sat, 06 Oct 2018 07:39:19 +0000 (UTC) X-Virus-Scanned: ClamAV using ClamSMTP 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(-)