From patchwork Wed Oct 5 10:28:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masatake YAMATO X-Patchwork-Id: 9363699 X-Patchwork-Delegate: snitzer@redhat.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7EF93607D3 for ; Thu, 6 Oct 2016 07:16:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6BF6A28E3F for ; Thu, 6 Oct 2016 07:16:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 60D9128E42; Thu, 6 Oct 2016 07:16:49 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from mx4-phx2.redhat.com (mx4-phx2.redhat.com [209.132.183.25]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4245928E3F for ; Thu, 6 Oct 2016 07:16:48 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx4-phx2.redhat.com (8.13.8/8.13.8) with ESMTP id u967ELTB010949; Thu, 6 Oct 2016 03:14:22 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id u95ASUdd009958 for ; Wed, 5 Oct 2016 06:28:30 -0400 Received: from localhost (dhcp-193-185.nrt.redhat.com [10.64.193.185]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u95ASTRV005046; Wed, 5 Oct 2016 06:28:30 -0400 Date: Wed, 05 Oct 2016 19:28:28 +0900 (JST) Message-Id: <20161005.192828.566127461630656590.yamato@redhat.com> To: mpatocka@redhat.com From: Masatake YAMATO In-Reply-To: References: <20160912171029.GA5263@altlinux.org> Organization: Red Hat Japan, Inc. Mime-Version: 1.0 X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-loop: dm-devel@redhat.com X-Mailman-Approved-At: Thu, 06 Oct 2016 03:14:21 -0400 Cc: dm-devel@redhat.com, strace-devel@lists.sourceforge.net, ldv@altlinux.org Subject: Re: [dm-devel] [PATCH] Re: your dm patch for strace 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: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Virus-Scanned: ClamAV using ClamSMTP I tested the patch and it works fine. Could you add following patch if you approve? commit bae7528fa92283726caac1ec7a6c306274f8899d Author: Masatake YAMATO Date: Mon Aug 22 17:44:55 2016 +0900 dm-ioctl: add a lvm private flag When I run "dmsetup ls" under dm-ioctl patched strace, "strange DM_???" are found in its output. # ./strace -e ioctl dmsetup ls > /dev/null ioctl(3, DM_VERSION, {version=4.0.0, flags=0x4 /* DM_??? */}, ... ioctl(3, DM_LIST_DEVICES, {version=4.0.0, flags=0x4 /* DM_??? */}, ... ... Associated definion for DM_??? is in lvm2 source tree. This commit imports the definion to dm-ioctl list. Signed-off-by: Masatake YAMATO --- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel diff --git a/xlat/dm_flags.in b/xlat/dm_flags.in index ab4285c..1e7132b 100644 --- a/xlat/dm_flags.in +++ b/xlat/dm_flags.in @@ -1,5 +1,7 @@ DM_READONLY_FLAG DM_SUSPEND_FLAG +/* Defined in lvm2/libdm/ioctl/libdm-iface.c */ +DM_EXISTS_FLAG 0x00000004 DM_PERSISTENT_DEV_FLAG DM_STATUS_TABLE_FLAG DM_ACTIVE_PRESENT_FLAG