From patchwork Sun Oct 9 13:29:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugene Syromyatnikov X-Patchwork-Id: 9369109 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 9767960487 for ; Mon, 10 Oct 2016 08:33:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8AA8229325 for ; Mon, 10 Oct 2016 08:33:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7F3A22933B; Mon, 10 Oct 2016 08:33:01 +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=-3.6 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from mx5-phx2.redhat.com (mx5-phx2.redhat.com [209.132.183.37]) (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 6F43D29325 for ; Mon, 10 Oct 2016 08:33:00 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx5-phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u9A8Uh5r036833; Mon, 10 Oct 2016 04:30:43 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id u99DTk0q016570 for ; Sun, 9 Oct 2016 09:29:46 -0400 Received: from mx1.redhat.com (ext-mx06.extmail.prod.ext.phx2.redhat.com [10.5.110.30]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u99DTkj0028499 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 9 Oct 2016 09:29:46 -0400 Received: from mail-lf0-f66.google.com (mail-lf0-f66.google.com [209.85.215.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 96CF43D963; Sun, 9 Oct 2016 13:29:45 +0000 (UTC) Received: by mail-lf0-f66.google.com with SMTP id x79so2025610lff.2; Sun, 09 Oct 2016 06:29:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=fYepdG2D/L5Q8iU8Snd0b5tuTU5u1nyEkrP4ipNqDHA=; b=yF/9Ygc30rh/EAVhyxIX44gnDYj03av3tgJOgIOx4/hy3AVeRxEwTRJebZAaFlvK7l szZ2vlueNZolb5/1WxZwSIF94TjMyRWMi1X2GL/ytiu6IxEks9oIIc1W0oqKOYCqntlC uHmxFeCIY062dDmUSDXxryFzcOGOIvYN5n13wZjIZ927Oj0SQBUgf3gSm+DgbD0QpsWF cwBRumT5/+PEeB+INfUWpvdLPJCaMMop/0vWUhfnlUMehc0ySC83ZDhVQZpvATU3FNq+ RBicsdklxSip4JbwYZbV8YMl+46tVE19LHRSnOxZbKLl9KGQ5VCR7lWszVc+zxZviljI 758w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=fYepdG2D/L5Q8iU8Snd0b5tuTU5u1nyEkrP4ipNqDHA=; b=gtYrOL2RZbEiHuRQp1V0HB6gEefvsB7zfK+hLHRJMCG/QDUD6LXBWlg4t1XQSVbt3r HkEhaX/iBB1i0DptYvDHkAsG5U2XyRxSmbwIBwiFWD/XxWTWN0fxjXT3EvDr4X7U4icY /cNyYCzZt0vDMf+20CqGnh/t7el7NRS/oafGDGdfAl96st9kmH6CV/qdzoRmafSa5YAm FCw8xJrMsz9qdFrpdcXwWgOC9WLTKVy7+hD6pkZgNPeGa5ebHzqfju/z3k8rLksMeJq8 qw2JzkUL+KYdr92tZlvFNsQfLD1rOE5ZuNCVt2OrT4YthPtBnEl9ptEImmr9d2rzK85F wppQ== X-Gm-Message-State: AA6/9RmMD7J5lMLnfmXu1pGCfwd/i2D9LZVmk0Y+PWOyuECB1tEahWGqRlAuG7CDegtStQ== X-Received: by 10.25.89.70 with SMTP id n67mr12108870lfb.163.1476019783943; Sun, 09 Oct 2016 06:29:43 -0700 (PDT) Received: from obsidian (broadband-46-188-15-144.2com.net. [46.188.15.144]) by smtp.gmail.com with ESMTPSA id p132sm969509lfp.12.2016.10.09.06.29.42 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Sun, 09 Oct 2016 06:29:43 -0700 (PDT) Date: Sun, 9 Oct 2016 16:29:41 +0300 From: Eugene Syromyatnikov To: strace-devel@lists.sourceforge.net Message-ID: <20161009132941.GA2290@obsidian> References: <20161005.192828.566127461630656590.yamato@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20161005.192828.566127461630656590.yamato@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Sun, 09 Oct 2016 13:29:46 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Sun, 09 Oct 2016 13:29:46 +0000 (UTC) for IP:'209.85.215.66' DOMAIN:'mail-lf0-f66.google.com' HELO:'mail-lf0-f66.google.com' FROM:'evgsyr@gmail.com' RCPT:'' X-RedHat-Spam-Score: 1.178 * (BAYES_50, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, RCVD_IN_SORBS_SPAM, SPF_PASS, UPPERCASE_50_75) 209.85.215.66 mail-lf0-f66.google.com 209.85.215.66 mail-lf0-f66.google.com X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 X-Scanned-By: MIMEDefang 2.78 on 10.5.110.30 X-loop: dm-devel@redhat.com X-Mailman-Approved-At: Mon, 10 Oct 2016 04:29:54 -0400 Cc: dm-devel@redhat.com, mpatocka@redhat.com, yamato@redhat.com Subject: [dm-devel] [PATCH 05/21] xlat: Add values for dm_flags 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 Otherwise build fails on some old distros which lack DM_DATA_OUT_FLAG and other flags (excerpt from RHEL 5 build log): [ 66s] dm.c: In function 'dm_known_ioctl': [ 66s] dm.c:311: error: 'DM_DATA_OUT_FLAG' undeclared (first use in this function) [ 66s] dm.c:311: error: (Each undeclared identifier is reported only once [ 66s] dm.c:311: error: for each function it appears in.) Curiously, EXISTS flags had been present in v1 of DM interface, but was removed in v4. * xlat/dm_flags.in: Add values for DM_*_FLAG constants (obtained from ). --- xlat/dm_flags.in | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/xlat/dm_flags.in b/xlat/dm_flags.in index 1e7132b..fa734c8 100644 --- a/xlat/dm_flags.in +++ b/xlat/dm_flags.in @@ -1,19 +1,19 @@ -DM_READONLY_FLAG -DM_SUSPEND_FLAG +DM_READONLY_FLAG (1 << 0) +DM_SUSPEND_FLAG (1 << 1) /* Defined in lvm2/libdm/ioctl/libdm-iface.c */ -DM_EXISTS_FLAG 0x00000004 -DM_PERSISTENT_DEV_FLAG -DM_STATUS_TABLE_FLAG -DM_ACTIVE_PRESENT_FLAG -DM_INACTIVE_PRESENT_FLAG -DM_BUFFER_FULL_FLAG -DM_SKIP_BDGET_FLAG -DM_SKIP_LOCKFS_FLAG -DM_NOFLUSH_FLAG -DM_QUERY_INACTIVE_TABLE_FLAG -DM_UEVENT_GENERATED_FLAG -DM_UUID_FLAG -DM_SECURE_DATA_FLAG -DM_DATA_OUT_FLAG -DM_DEFERRED_REMOVE -DM_INTERNAL_SUSPEND_FLAG +DM_EXISTS_FLAG (1 << 2) +DM_PERSISTENT_DEV_FLAG (1 << 3) +DM_STATUS_TABLE_FLAG (1 << 4) +DM_ACTIVE_PRESENT_FLAG (1 << 5) +DM_INACTIVE_PRESENT_FLAG (1 << 6) +DM_BUFFER_FULL_FLAG (1 << 8) +DM_SKIP_BDGET_FLAG (1 << 9) +DM_SKIP_LOCKFS_FLAG (1 << 10) +DM_NOFLUSH_FLAG (1 << 11) +DM_QUERY_INACTIVE_TABLE_FLAG (1 << 12) +DM_UEVENT_GENERATED_FLAG (1 << 13) +DM_UUID_FLAG (1 << 14) +DM_SECURE_DATA_FLAG (1 << 15) +DM_DATA_OUT_FLAG (1 << 16) +DM_DEFERRED_REMOVE (1 << 17) +DM_INTERNAL_SUSPEND_FLAG (1 << 18)