From: James Pearson <james-p@moving-picture.com>
To: linux-nfs@vger.kernel.org
Subject: Re: How to control the order of different export options for different client formats?
Date: Wed, 18 May 2011 11:19:37 +0100 [thread overview]
Message-ID: <4DD39D39.7010805@moving-picture.com> (raw)
In-Reply-To: <20110518080106.1159c5b8@notabene.brown>
NeilBrown wrote:
>
> Unfortunately you cannot do that.
>
> The place in the code where this is determined is towards the end of
> 'lookup_export' in utils/mountd/cache.c
>
> Were I to try to 'fix' this I would probably define a new field in 'struct
> exportent' which holds a 'priority'.
>
> Then allow a setting like "priority=4" in /etc/exports
>
> Then change the code in lookup_export to choose the one with the higher
> priority, rather than the 'first' one.
>
> NeilBrown
I've hacked the source to make netgroups take precedence over subnets by
moving MCL_NETGROUP before MCL_SUBNETWORK in the enum in
support/include/exportfs.h - which works for me, as I only use
netgroups, subnets and anonymous (in that priority order).
IMHO the priority of exports should really be as they appear on the line
in /etc/exports, but I guess if that were to change, it would break
existing /etc/exports that use the current priority ordering (either by
design or accident!).
Having a priority option would be a very good idea - and may be in the
meantime the exports man page should be updated with info about the
current priority ordering?
Thanks
James Pearson
next prev parent reply other threads:[~2011-05-18 10:19 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-17 16:21 How to control the order of different export options for different client formats? James Pearson
2011-05-17 22:01 ` NeilBrown
2011-05-18 10:19 ` James Pearson [this message]
2011-05-18 11:54 ` Performance Issue with multiple dataserver Taousif_Ansari
2011-05-18 16:12 ` J. Bruce Fields
2011-05-19 5:26 ` Taousif_Ansari
2011-05-19 11:50 ` J. Bruce Fields
2011-05-19 12:39 ` Taousif_Ansari
2011-05-19 13:12 ` J. Bruce Fields
2011-05-19 13:14 ` Taousif_Ansari
2011-05-19 13:43 ` J. Bruce Fields
2011-05-19 14:09 ` Taousif_Ansari-G5Y5guI6XLZWk0Htik3J/w
2011-05-19 14:37 ` Shyam_Iyer
2011-05-24 11:39 ` Taousif_Ansari
2011-05-24 11:44 ` Steven Whitehouse
2011-05-24 13:17 ` J. Bruce Fields
2011-05-18 16:20 ` How to control the order of different export options for different client formats? J. Bruce Fields
2011-05-20 13:38 ` James Pearson
2011-05-20 16:41 ` J. Bruce Fields
2011-06-02 13:37 ` James Pearson
2011-06-04 18:20 ` J. Bruce Fields
2011-06-06 12:14 ` James Pearson
[not found] ` <4DE79236.1080808-5Ol4pYTxKWu0ML75eksnrtBPR1lH4CV8@public.gmane.org>
2011-06-07 20:33 ` Steve Dickson
2011-05-18 0:46 ` Max Matveev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4DD39D39.7010805@moving-picture.com \
--to=james-p@moving-picture.com \
--cc=linux-nfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).