From patchwork Thu Sep 26 18:42:38 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benny Halevy X-Patchwork-Id: 2950481 Return-Path: X-Original-To: patchwork-linux-nfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 98EE4BFF0B for ; Thu, 26 Sep 2013 18:42:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 82D382017B for ; Thu, 26 Sep 2013 18:42:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6DBB7202DD for ; Thu, 26 Sep 2013 18:42:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754100Ab3IZSmo (ORCPT ); Thu, 26 Sep 2013 14:42:44 -0400 Received: from mail-qa0-f47.google.com ([209.85.216.47]:61751 "EHLO mail-qa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753553Ab3IZSmo (ORCPT ); Thu, 26 Sep 2013 14:42:44 -0400 Received: by mail-qa0-f47.google.com with SMTP id k4so4620649qaq.20 for ; Thu, 26 Sep 2013 11:42:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=aYwiblcRE/vbedaUnyg4aiQpUaypOYLviLSzBzc5Ytk=; b=B7YSU5W/YHHC2Z1cySapR9Mhcb7KfQG5toiE0sjkaZYcZpIFenqg/0af1Uzhfh0VU0 nnedchmeDzTiqPEqrc+a21VkCs/VbogcZd8xVINZ+zHDrJY0nNEH1BFIW6//2XIY5+aZ lcjKPqlVkad7tJURkGZAUZ59zeY8GMfiEFZchPwcig2jXMO0ZRQcHod+Ba9MyaiHI0jA Z4bVtrvwmb/081f73t78zydjJhJ5Jj0Y5ZQqGpIoxfV95X4pqUjj66GMgeUSSLBYAa0Q 1Iqdti73LRO1c+iDR4jV3JUWjjiBqQcmLdrqL7H4D/gnP8dQj93+MupLAm50IfImDHHn i/bg== X-Received: by 10.224.11.7 with SMTP id r7mr5228063qar.91.1380220963384; Thu, 26 Sep 2013 11:42:43 -0700 (PDT) Received: from bhalevy-lt.il.tonian.com.com (nat-pool-bos-u.redhat.com. [66.187.233.207]) by mx.google.com with ESMTPSA id n9sm10265488qag.8.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 26 Sep 2013 11:42:42 -0700 (PDT) From: Benny Halevy To: " J. Bruce Fields" Cc: linux-nfs@vger.kernel.org Subject: [PATCH RFC v0 41/49] pnfsd: dlm pnfs_export_operations Date: Thu, 26 Sep 2013 14:42:38 -0400 Message-Id: <1380220958-14575-1-git-send-email-bhalevy@primarydata.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <52447EA0.7070004@primarydata.com> References: <52447EA0.7070004@primarydata.com> Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Spam-Status: No, score=-9.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Andy Adamson Declare a global pnfs_export_operations struct for use with DLM cluster file systems who wish to be exported by pnfs. Signed-off-by: Andy Adamson [pnfsd: define dlm export ops for the !CONFIG_PNFSD case] [gfs2: set pnfs_dlm_export_ops only for CONFIG_PNFSD] Signed-off-by: Benny Halevy Acked-by: Steven Whitehouse Signed-off-by: Benny Halevy --- include/linux/nfsd/nfs4pnfsdlm.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/nfsd/nfs4pnfsdlm.h b/include/linux/nfsd/nfs4pnfsdlm.h index a4f3477..eb31123 100644 --- a/include/linux/nfsd/nfs4pnfsdlm.h +++ b/include/linux/nfsd/nfs4pnfsdlm.h @@ -35,6 +35,9 @@ #ifdef CONFIG_PNFSD +/* For use by DLM cluster file systems exported by pNFSD */ +extern const struct pnfs_export_operations pnfs_dlm_export_ops; + int nfsd4_set_pnfs_dlm_device(char *pnfs_dlm_device, int len); void nfsd4_pnfs_dlm_shutdown(void);