Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1120559pxj; Fri, 21 May 2021 06:59:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZ1ykPV0eAkkclFrJYOXAgtjQtcax562uYNkVAjwjPXSfWIRbzr/eeeHO0Lwhtu3xGZtPs X-Received: by 2002:a05:6e02:58a:: with SMTP id c10mr13152152ils.216.1621605557709; Fri, 21 May 2021 06:59:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621605557; cv=none; d=google.com; s=arc-20160816; b=M6RQ2ulaMl4EaKe6LUYcTHIPk/D8N68g9KgmyX8yxqC8vfuaZ/Z/ZjIjc0z/9YhUK/ kib9qIXbdmS36HKev8+TiIvj6IzM/SMfdGhyDmt6+0J+V2BIXkLXSNMK6pmdwjGRUOnH sSSrauno2t5hgjHPJxKdcgQ8oP1cokMwUx0IGwkOaTXiwaEslcXqWydOlWXGernXplCV CWhaO0fhrA6cvK0emdYN6dbueUyQCf31vnjia518HUqAkedvy3AHZ642Vz1r360lbRi/ XLvjC6WYojCtG//bbCyM0BWDqAOyr2B4Ub5wc1Qc2Nrop5KDNtQOA3PHp33PPIGI4ew/ mnOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:reply-to:message-id:subject:cc:to:from:date; bh=KDFYgQ2A97olKKF51i4ocJ1KC7J+/ClYigla+M6UjNU=; b=aIT/dvsJ+hpnG84x+GCznhIYkE4S5UQgrXbadg4vsN5/uNSYX5bppn1lJjZh4MiRMW CL6itVBbtsanfCCJAIRkgH+cuG85slQbrWWKIpAHuM7m8I88VpfypfdmEDfMRaUR91mA ffpl1iniGClY/IWpcqZKDpCGYP74ek23KkUIzaNcUhTDHwJvy9wFM02cHXVRnN6HLf4n p3l2oOjhcNv4krV8OLi+yuRclJDdznckXXHpMKhooSxc4oiyrgc2OcGzKbj1r4It0uyl 5/ujdjzYpyF/DEF+xlAsJdCxBOuCe9ufGZDJmPgt6h0jQYOBJH6r02OEyg/rKI4uyUge cUBQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h21si6024037jav.99.2021.05.21.06.59.02; Fri, 21 May 2021 06:59:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233423AbhEUN7g (ORCPT + 99 others); Fri, 21 May 2021 09:59:36 -0400 Received: from mx2.suse.de ([195.135.220.15]:44466 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236441AbhEUN6r (ORCPT ); Fri, 21 May 2021 09:58:47 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 9D4ACAC11; Fri, 21 May 2021 13:57:23 +0000 (UTC) Date: Fri, 21 May 2021 15:57:21 +0200 From: Petr Vorel To: NeilBrown Cc: Steve Dickson , "J . Bruce Fields" , linux-nfs@vger.kernel.org, Chuck Lever , Alexey Kodanev Subject: Re: [PATCH nfs-utils 2/2] Move declaration of etab and rmtab into libraries Message-ID: Reply-To: Petr Vorel References: <20210422191803.31511-1-pvorel@suse.cz> <20210422202334.GB25415@fieldses.org> <162035212343.24322.12361160756597283121@noble.neil.brown.name> <162122673178.19062.96081788305923933@noble.neil.brown.name> <289c5819-917a-39a7-9aa4-2a27ae7248c0@RedHat.com> <162156113063.19062.9406037279407040033@noble.neil.brown.name> <162156122215.19062.11710239266795260824@noble.neil.brown.name> <162156127225.19062.3275458295434454950@noble.neil.brown.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <162156127225.19062.3275458295434454950@noble.neil.brown.name> Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Hi Neil, > There are two global "struct stat_paths" structures: etab and rmtab. > They are currently needed by some library code so any program which is > linked with that library code needs to declare the structures even if it > doesn't use the functionality. This is clumsy and error-prone. > Instead: have the library declare the structure and put the definition > in a header file. Now programs only need to know about these structures > if they use the functionality. > 'rmtab' is now declared in libnfs.a (rmtab.c). 'etab' is declared in > export.a (xtab.c). Reviewed-by: Petr Vorel Nice cleanup! Kind regards, Petr