From patchwork Tue Jan 29 06:06:36 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Filipe Brandenburger X-Patchwork-Id: 2059411 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 41F2AE01CD for ; Tue, 29 Jan 2013 06:06:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753879Ab3A2GGx (ORCPT ); Tue, 29 Jan 2013 01:06:53 -0500 Received: from mail-ob0-f202.google.com ([209.85.214.202]:33727 "EHLO mail-ob0-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753815Ab3A2GGu (ORCPT ); Tue, 29 Jan 2013 01:06:50 -0500 Received: by mail-ob0-f202.google.com with SMTP id lz20so15345obb.1 for ; Mon, 28 Jan 2013 22:06:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=Vm3tb5vjYUDHbaAJk6D9PjYWmPY7yIkNwVUGrqjJ2js=; b=E5RnZBgPZCcJLGvSyi1KuhIof4L2kpUieiemBqOZnyfHC1B1NEEAyW3Oy1ekhNXGjP NlirL0DjlDFgmxKzaL5oUA2nUQOWn17rC+k3vhLPl3xg9mzv3x9jtbXegETAyPCpFwYN buyvgpdYzs5fI0hbwmR1Ub9zNvmFSkqpsod2UFhUrVAznUlzW4nVYpJOiDlMgnYqMhK2 y4y/YBPMK8UGTPpOeiNI2qrn0wxl40WggA9HmI4bIsoH91EFDlUxnqG23b1B3iThSRuz oDfvU6VIcWkXh9roHSRX3EJXpOTEzFm1i2S7J6PY2eayLUhJSb/HoaiLVFLlIrOxxZH8 T6fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=Vm3tb5vjYUDHbaAJk6D9PjYWmPY7yIkNwVUGrqjJ2js=; b=k79DGIEK+nK03XNCh3glEvOx5MO+/B6a5yFHhgBQdQXYRK26TvAwE9tJqetMFGbI7t 9MzI2qVQ9HaJe5om4sI5Zh62PQw1X1xZt2RzGbUFIk5kNYOHGjrw1e22v0hX+kFexf2j Dp1jgLDpyDN4t2ANTXHm0MyH17nd6UOXtsoZZCfIXUVkTANrILRgL94CClegqIKV6OXT aJr94tvUd5eNTjt1KNaI1ily0rmZoh3GJdNKm1PGhm70NW7D2/xwdpbHP+u7lh3UWUPS nv7EVGiPaG3difq9d2voZfy73G4iNUq5TM5kUZ2UhXhkf8sC7gQou1KGtjlrB45F6s1P JNtg== X-Received: by 10.43.15.68 with SMTP id pt4mr320804icb.13.1359439607271; Mon, 28 Jan 2013 22:06:47 -0800 (PST) Received: from corp2gmr1-1.hot.corp.google.com (corp2gmr1-1.hot.corp.google.com [172.24.189.92]) by gmr-mx.google.com with ESMTPS id dx8si125849igc.1.2013.01.28.22.06.47 (version=TLSv1.1 cipher=AES128-SHA bits=128/128); Mon, 28 Jan 2013 22:06:47 -0800 (PST) Received: from obelix.sbo.corp.google.com (obelix.sbo.corp.google.com [172.31.172.210]) by corp2gmr1-1.hot.corp.google.com (Postfix) with ESMTP id BD65E31C00F; Mon, 28 Jan 2013 22:06:46 -0800 (PST) Received: by obelix.sbo.corp.google.com (Postfix, from userid 180819) id 468122016A6; Mon, 28 Jan 2013 22:06:46 -0800 (PST) From: Filipe Brandenburger To: linux-btrfs@vger.kernel.org Cc: Filipe Brandenburger Subject: [PATCH 1/3] Add support for Btrfs ioctls: decode them by name Date: Mon, 28 Jan 2013 22:06:36 -0800 Message-Id: <1359439598-4141-2-git-send-email-filbranden@google.com> X-Mailer: git-send-email 1.8.1 In-Reply-To: <1359439598-4141-1-git-send-email-filbranden@google.com> References: <1359439598-4141-1-git-send-email-filbranden@google.com> X-Gm-Message-State: ALoCoQnCC9bJQNmFldic0U6wlykI8RjpUWYe4FEZBY4igTh7dSuQ96Z9j7wExTzbUtJUrj1tQP6P6OKODK+P3/H2HD3XG5pvqb4CKAP3a2IpggTJiKZmvV6mDMH+kkkpqlsXu0dbv+tyKf2mr7xE2aRl3oNv21Pt0tywE/HqT0My5bkrjg0eQzxuq7xGMmw3cIZ2wY6ksr7ii3OjxK99Ba2B28w3tT+uEQ== Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org This patch will include Btrfs-specific ioctls from linux/btrfs.h into ioctlent.h.in so that they get translated by strace. That's useful for using strace to debug the tools in btrfs-progs. Signed-off-by: Filipe Brandenburger --- linux/ioctlent.h.in | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/linux/ioctlent.h.in b/linux/ioctlent.h.in index 8843b47..06a5300 100644 --- a/linux/ioctlent.h.in +++ b/linux/ioctlent.h.in @@ -1825,6 +1825,50 @@ {"linux/auto_fs4.h", "AUTOFS_IOC_EXPIRE_MULTI", 0x9366}, {"linux/auto_fs4.h", "AUTOFS_IOC_PROTOSUBVER", 0x9367}, {"linux/auto_fs4.h", "AUTOFS_IOC_ASKUMOUNT", 0x9370}, + {"linux/btrfs.h", "BTRFS_IOC_SNAP_CREATE", 0x9401}, + {"linux/btrfs.h", "BTRFS_IOC_DEFRAG", 0x9402}, + {"linux/btrfs.h", "BTRFS_IOC_RESIZE", 0x9403}, + {"linux/btrfs.h", "BTRFS_IOC_SCAN_DEV", 0x9404}, + {"linux/btrfs.h", "BTRFS_IOC_TRANS_START", 0x9406}, + {"linux/btrfs.h", "BTRFS_IOC_TRANS_END", 0x9407}, + {"linux/btrfs.h", "BTRFS_IOC_SYNC", 0x9408}, + {"linux/btrfs.h", "BTRFS_IOC_CLONE", 0x9409}, + {"linux/btrfs.h", "BTRFS_IOC_ADD_DEV", 0x940a}, + {"linux/btrfs.h", "BTRFS_IOC_RM_DEV", 0x940b}, + {"linux/btrfs.h", "BTRFS_IOC_BALANCE", 0x940c}, + {"linux/btrfs.h", "BTRFS_IOC_CLONE_RANGE", 0x940d}, + {"linux/btrfs.h", "BTRFS_IOC_SUBVOL_CREATE", 0x940e}, + {"linux/btrfs.h", "BTRFS_IOC_SNAP_DESTROY", 0x940f}, + {"linux/btrfs.h", "BTRFS_IOC_DEFRAG_RANGE", 0x9410}, + {"linux/btrfs.h", "BTRFS_IOC_TREE_SEARCH", 0x9411}, + {"linux/btrfs.h", "BTRFS_IOC_INO_LOOKUP", 0x9412}, + {"linux/btrfs.h", "BTRFS_IOC_DEFAULT_SUBVOL", 0x9413}, + {"linux/btrfs.h", "BTRFS_IOC_SPACE_INFO", 0x9414}, + {"linux/btrfs.h", "BTRFS_IOC_WAIT_SYNC", 0x9416}, + {"linux/btrfs.h", "BTRFS_IOC_SNAP_CREATE_V2", 0x9417}, + {"linux/btrfs.h", "BTRFS_IOC_START_SYNC", 0x9418}, + {"linux/btrfs.h", "BTRFS_IOC_SUBVOL_CREATE_V2", 0x9418}, + {"linux/btrfs.h", "BTRFS_IOC_SUBVOL_GETFLAGS", 0x9419}, + {"linux/btrfs.h", "BTRFS_IOC_SUBVOL_SETFLAGS", 0x941a}, + {"linux/btrfs.h", "BTRFS_IOC_SCRUB", 0x941b}, + {"linux/btrfs.h", "BTRFS_IOC_SCRUB_CANCEL", 0x941c}, + {"linux/btrfs.h", "BTRFS_IOC_SCRUB_PROGRESS", 0x941d}, + {"linux/btrfs.h", "BTRFS_IOC_DEV_INFO", 0x941e}, + {"linux/btrfs.h", "BTRFS_IOC_FS_INFO", 0x941f}, + {"linux/btrfs.h", "BTRFS_IOC_BALANCE_V2", 0x9420}, + {"linux/btrfs.h", "BTRFS_IOC_BALANCE_CTL", 0x9421}, + {"linux/btrfs.h", "BTRFS_IOC_BALANCE_PROGRESS", 0x9422}, + {"linux/btrfs.h", "BTRFS_IOC_INO_PATHS", 0x9423}, + {"linux/btrfs.h", "BTRFS_IOC_LOGICAL_INO", 0x9424}, + {"linux/btrfs.h", "BTRFS_IOC_SET_RECEIVED_SUBVOL", 0x9425}, + {"linux/btrfs.h", "BTRFS_IOC_SEND", 0x9426}, + {"linux/btrfs.h", "BTRFS_IOC_DEVICES_READY", 0x9427}, + {"linux/btrfs.h", "BTRFS_IOC_QUOTA_CTL", 0x9428}, + {"linux/btrfs.h", "BTRFS_IOC_QGROUP_ASSIGN", 0x9429}, + {"linux/btrfs.h", "BTRFS_IOC_QGROUP_CREATE", 0x942a}, + {"linux/btrfs.h", "BTRFS_IOC_QGROUP_LIMIT", 0x942b}, + {"linux/btrfs.h", "BTRFS_IOC_GET_DEV_STATS", 0x9434}, + {"linux/btrfs.h", "BTRFS_IOC_DEV_REPLACE", 0x9435}, {"linux/nbd.h", "NBD_SET_SOCK", 0xab00}, {"linux/nbd.h", "NBD_SET_BLKSIZE", 0xab01}, {"linux/nbd.h", "NBD_SET_SIZE", 0xab02},