From patchwork Wed Jul 4 13:39:29 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Block X-Patchwork-Id: 1156161 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id F19163FE4F for ; Wed, 4 Jul 2012 13:40:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752995Ab2GDNkJ (ORCPT ); Wed, 4 Jul 2012 09:40:09 -0400 Received: from mail-bk0-f46.google.com ([209.85.214.46]:41824 "EHLO mail-bk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752971Ab2GDNkH (ORCPT ); Wed, 4 Jul 2012 09:40:07 -0400 Received: by mail-bk0-f46.google.com with SMTP id j10so2633865bkw.19 for ; Wed, 04 Jul 2012 06:40:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=0v1Uj7OKm0JMEKM+jRggw8beIVFNn9AN1jB5H8kx/MM=; b=TqQsfBe4ixp9f4PbxeIBQtSWYnoNO98oahq65xw/rMy6iR0cYSCFB/7B6wDYBZfCF+ BK9rnoRxZSK3rmEAIMbos9xEIMGInNhOIBec9g1rmkF8sC3qiVT2h78MVEOXAq2iJMQ9 KS3VdRDkDwlzUu9EOmWV/EdRYQkvZPz2zymzkeNrs65XFABlna9JaRPwdO9f1TRJqgLd uiGwKC75+4gCuGVEMs9Z1YXBCE/0Ey2ODlJSH264Tzb8IaD6tvTbwJ3MORv6vg8gUKkI ltD5T72hlxWy7keGISj06hGn8PX2t1ZAl/varX8JmP+MFDc+oUG579/PZ4K7i2nvqr2K +MkA== Received: by 10.204.152.4 with SMTP id e4mr6075013bkw.2.1341409206278; Wed, 04 Jul 2012 06:40:06 -0700 (PDT) Received: from localhost.localdomain (p4FEF4B20.dip.t-dialin.net. [79.239.75.32]) by mx.google.com with ESMTPS id h18sm19032244bkh.8.2012.07.04.06.40.04 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 04 Jul 2012 06:40:05 -0700 (PDT) From: Alexander Block To: linux-btrfs@vger.kernel.org Cc: Alexander Block Subject: [RFC PATCH 1/6] Btrfs-progs: add BTRFS_IOC_SUBVOL_GET/SETFLAGS to ioctl.h Date: Wed, 4 Jul 2012 15:39:29 +0200 Message-Id: <1341409174-13619-2-git-send-email-ablock84@googlemail.com> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1341409174-13619-1-git-send-email-ablock84@googlemail.com> References: <1341409174-13619-1-git-send-email-ablock84@googlemail.com> Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org Btrfs send/receive and btrfs props needs this ioctl. This patch requires a recent kernel with the "Btrfs: use _IOR for BTRFS_IOC_SUBVOL_GETFLAGS" patch applied. Signed-off-by: Alexander Block --- ioctl.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ioctl.h b/ioctl.h index f2e5d8d..6670e08 100644 --- a/ioctl.h +++ b/ioctl.h @@ -312,6 +312,8 @@ struct btrfs_ioctl_logical_ino_args { struct btrfs_ioctl_space_args) #define BTRFS_IOC_SNAP_CREATE_V2 _IOW(BTRFS_IOCTL_MAGIC, 23, \ struct btrfs_ioctl_vol_args_v2) +#define BTRFS_IOC_SUBVOL_GETFLAGS _IOR(BTRFS_IOCTL_MAGIC, 25, __u64) +#define BTRFS_IOC_SUBVOL_SETFLAGS _IOW(BTRFS_IOCTL_MAGIC, 26, __u64) #define BTRFS_IOC_SCRUB _IOWR(BTRFS_IOCTL_MAGIC, 27, \ struct btrfs_ioctl_scrub_args) #define BTRFS_IOC_SCRUB_CANCEL _IO(BTRFS_IOCTL_MAGIC, 28)