From patchwork Wed Jul 4 13:39:33 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Block X-Patchwork-Id: 1156201 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 EF620DFFF7 for ; Wed, 4 Jul 2012 13:40:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753049Ab2GDNkS (ORCPT ); Wed, 4 Jul 2012 09:40:18 -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 S1752262Ab2GDNkO (ORCPT ); Wed, 4 Jul 2012 09:40:14 -0400 Received: by mail-bk0-f46.google.com with SMTP id j10so2633865bkw.19 for ; Wed, 04 Jul 2012 06:40:14 -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=m9NiugzGrrO76jaGHm9EdSM8POmfC81ddwJX8nj+nTw=; b=C38VQ0zYVOzq4c7fUfxpMeHkS2g3KGV8yOLOs4yNRYbRhTLY9ErLGT2S7kvUDEmxNu ViHT/QtxCNALmmUvw1AgS+h6icA6e3zj6RdZC6yKM8TryAdj2WnTTY5Fc/WVY1OzZCQq kpWhU0vaWn/n7BSvJidlzKpkHCaPbrHMhq9sa/xLgC8YmZPluQVP7QF+0fk8ziBmZ9Qh kdpxlHoaxY11qYMYfqK+JytUKZTGRCfU/foobNwoFrFHC4T/bO/vtV/RpTMKhdQMQWme HO73sJpnYeI1SzrJjnyHG5Rimn571kjciBFY86t/n7KqvhSWf/GxkZ17E08NdE5VSxIf tjrA== Received: by 10.204.154.202 with SMTP id p10mr11918871bkw.105.1341409213975; Wed, 04 Jul 2012 06:40:13 -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.12 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 04 Jul 2012 06:40:13 -0700 (PDT) From: Alexander Block To: linux-btrfs@vger.kernel.org Cc: Alexander Block Subject: [RFC PATCH 5/6] Btrfs-progs: update ioctl.h to support btrfs send ioctl Date: Wed, 4 Jul 2012 15:39:33 +0200 Message-Id: <1341409174-13619-6-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 Add btrfs_ioctl_send_args and BTRFS_IOC_SEND to ioctl.h Signed-off-by: Alexander Block --- ioctl.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ioctl.h b/ioctl.h index 77503e6..d35710c 100644 --- a/ioctl.h +++ b/ioctl.h @@ -282,6 +282,15 @@ struct btrfs_ioctl_received_subvol_args { __u64 reserved[16]; }; +struct btrfs_ioctl_send_args { + __s64 send_fd; /* in */ + __u64 clone_sources_count; /* in */ + __u64 *clone_sources; /* in */ + __u64 parent_root; /* in */ + __u64 flags; /* in */ + __u64 reserved[4]; /* in */ +}; + /* BTRFS_IOC_SNAP_CREATE is no longer used by the btrfs command */ #define BTRFS_IOC_SNAP_CREATE _IOW(BTRFS_IOCTL_MAGIC, 1, \ struct btrfs_ioctl_vol_args) @@ -353,4 +362,6 @@ struct btrfs_ioctl_clone_range_args { #define BTRFS_IOC_SET_RECEIVED_SUBVOL _IOWR(BTRFS_IOCTL_MAGIC, 37, \ struct btrfs_ioctl_received_subvol_args) +#define BTRFS_IOC_SEND _IOW(BTRFS_IOCTL_MAGIC, 38, struct btrfs_ioctl_send_args) + #endif