From: Steve Dickson <SteveD@redhat.com>
To: Linux NFS Mailing list <linux-nfs@vger.kernel.org>
Subject: [PATCH] NFSD: FIDs need to take precedence over UUIDs
Date: Thu, 14 Feb 2008 15:58:09 -0500 [thread overview]
Message-ID: <47B4AB61.2060004@RedHat.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 275 bytes --]
Talking with Neil and Bruce, it seems somewhere down the
line UUIDs started to taking precedence over the setting
fsid= export option when composing file handles which is wrong.
This patch restores fsids taking precedence over UUIDs during
file handing composing.
steved.
[-- Attachment #2: kernel-2.6.25-nfsd-fid-uuid.patch --]
[-- Type: text/x-patch, Size: 1138 bytes --]
Author: Steve Dickson <steved@redhat.com>
Date: Thu Feb 14 15:48:20 EST 2008
When determining the fsid_type in fh_compose(), the setting of
the FID via fsid= export option needs to take precedence over
using the UUID device id.
Signed-off-by: Steve Dickson <steved@redhat.com>
diff -up linux-2.6.24.i686/fs/nfsd/nfsfh.c.orig linux-2.6.24.i686/fs/nfsd/nfsfh.c
--- linux-2.6.24.i686/fs/nfsd/nfsfh.c.orig 2008-02-14 12:52:46.000000000 -0500
+++ linux-2.6.24.i686/fs/nfsd/nfsfh.c 2008-02-14 14:13:09.000000000 -0500
@@ -410,6 +410,8 @@ fh_compose(struct svc_fh *fhp, struct sv
goto retry;
break;
}
+ } else if (exp->ex_flags & NFSEXP_FSID) {
+ fsid_type = FSID_NUM;
} else if (exp->ex_uuid) {
if (fhp->fh_maxsize >= 64) {
if (root_export)
@@ -422,9 +424,7 @@ fh_compose(struct svc_fh *fhp, struct sv
else
fsid_type = FSID_UUID4_INUM;
}
- } else if (exp->ex_flags & NFSEXP_FSID)
- fsid_type = FSID_NUM;
- else if (!old_valid_dev(ex_dev))
+ } else if (!old_valid_dev(ex_dev))
/* for newer device numbers, we must use a newer fsid format */
fsid_type = FSID_ENCODE_DEV;
else
next reply other threads:[~2008-02-14 21:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-14 20:58 Steve Dickson [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-01-07 21:54 [PATCH] NFSD: FIDs need to take precedence over UUIDs Steve Dickson
[not found] ` <49652496.2000008-AfCzQyP5zfLQT0dZR+AlfA@public.gmane.org>
2009-01-07 22:23 ` J. Bruce Fields
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=47B4AB61.2060004@RedHat.com \
--to=steved@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.