From patchwork Fri Oct 19 15:29:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olga Kornievskaia X-Patchwork-Id: 10649667 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7F821109C for ; Fri, 19 Oct 2018 15:29:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7087027F8E for ; Fri, 19 Oct 2018 15:29:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 651D127F92; Fri, 19 Oct 2018 15:29:37 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 155B127F8E for ; Fri, 19 Oct 2018 15:29:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727061AbeJSXgL (ORCPT ); Fri, 19 Oct 2018 19:36:11 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:45085 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727050AbeJSXgK (ORCPT ); Fri, 19 Oct 2018 19:36:10 -0400 Received: by mail-qk1-f196.google.com with SMTP id m8-v6so21200973qka.12 for ; Fri, 19 Oct 2018 08:29:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=MFrexHXO7yQY1QRrDlhjfVTvrBtGmp73ZTx4Rn7FdtQ=; b=NDs8V86BAuCBDgk/FQtf2pjLQ2qRAi05DNlt8+Hr0AaV4ZDT06M5lb7Euh92EbpiCK Lx47RvFuwrUavFrfHnl9s/LM0bWmw0nOqXGJ/XSXQhWlj3W6fRLKxxfg3Gr9JmyEpnxQ LH0pqX2asPh5esOULepjsELEfjTOa7Ck6ItWQCdHpixLPb6bIwcxLahSPcV3k/MP99sg Sy09pQx85uEwDQWs9W7eYusJXJzCuUqSlbysODIa93kr+cFxoGTDTsfyWzpirvmpM0n8 +DCUTHc+kBs15SvKf3VAXxf8kQZAQ2naMwUCbELjukOpjxGFCOl0Im+7zFn5DQiSVZk0 Mj+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=MFrexHXO7yQY1QRrDlhjfVTvrBtGmp73ZTx4Rn7FdtQ=; b=FZcoBMUupKjyT1YdQLt1Y4QtYLeV39Pit5O8FF9ZlRcACK7QJkRAlybxjIDqB7Ukv7 /5lO3VramsLhoNxeRaMln0aothe9lfmJqF0oEbrKnJkSzmVvwPWUUV5CAjC2kQfWqrY4 yO0LN4IqgDFyb7wr2yKyDMVcsBDaLjqZuS2+BAOk5Vu1J1ZS0sbAz83T1oVIDnZQMUVV xk5Tu89kD+nJ9KvvC/CO6u/1Ot1lRKW2r+sEwb3JhlIwdM3eU2pn7HPzMUk+64glAVyD UB6TPyFJvlxKapWUNUGMNyghr5zI6MK/8zdLXYkSSGFzgC0gPTERYWxL6gWxcEb4dVMW xaTg== X-Gm-Message-State: ABuFfojC9ZvL0iuf9PZaf2yCb6sNv6YpLPCyJVtiPPT9xWKOXKX5GJec EiZ0Jr6QnsOScOwmZpEmKi8= X-Google-Smtp-Source: ACcGV61+vx0/Gii5lohg+VMzA5E9/wXeQAfZ+VwQZIznXNks7pXUjRQlaKmuY6xbF8yghm0P0Q5GEg== X-Received: by 2002:a37:4a8b:: with SMTP id x133-v6mr32766255qka.142.1539962975557; Fri, 19 Oct 2018 08:29:35 -0700 (PDT) Received: from Olgas-MBP-195.attlocal.net (172-10-226-31.lightspeed.livnmi.sbcglobal.net. [172.10.226.31]) by smtp.gmail.com with ESMTPSA id w39-v6sm17358099qtc.84.2018.10.19.08.29.34 (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 19 Oct 2018 08:29:35 -0700 (PDT) From: Olga Kornievskaia To: trondmy@hammerspace.com, anna.schumaker@netapp.com Cc: linux-nfs@vger.kernel.org Subject: [PATCH v1 04/11] NFS NFSD defining nl4_servers structure needed by both Date: Fri, 19 Oct 2018 11:29:25 -0400 Message-Id: <20181019152932.32462-5-olga.kornievskaia@gmail.com> X-Mailer: git-send-email 2.10.1 (Apple Git-78) In-Reply-To: <20181019152932.32462-1-olga.kornievskaia@gmail.com> References: <20181019152932.32462-1-olga.kornievskaia@gmail.com> Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Olga Kornievskaia These structures are needed by COPY_NOTIFY on the client and needed by the nfsd as well Signed-off-by: Olga Kornievskaia --- include/linux/nfs4.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/include/linux/nfs4.h b/include/linux/nfs4.h index 1b06f0b..4d76f87 100644 --- a/include/linux/nfs4.h +++ b/include/linux/nfs4.h @@ -16,6 +16,7 @@ #include #include #include +#include enum nfs4_acl_whotype { NFS4_ACL_WHO_NAMED = 0, @@ -672,4 +673,27 @@ struct nfs4_op_map { } u; }; +struct nfs42_netaddr { + char netid[RPCBIND_MAXNETIDLEN]; + char addr[RPCBIND_MAXUADDRLEN + 1]; + u32 netid_len; + u32 addr_len; +}; + +enum netloc_type4 { + NL4_NAME = 1, + NL4_URL = 2, + NL4_NETADDR = 3, +}; + +struct nl4_server { + enum netloc_type4 nl4_type; + union { + struct { /* NL4_NAME, NL4_URL */ + int nl4_str_sz; + char nl4_str[NFS4_OPAQUE_LIMIT + 1]; + }; + struct nfs42_netaddr nl4_addr; /* NL4_NETADDR */ + } u; +}; #endif