* [PATCH] SGI 910137: fsid export option broken in 2.6
@ 2004-02-27 9:55 Greg Banks
2004-02-27 10:24 ` Neil Brown
0 siblings, 1 reply; 3+ messages in thread
From: Greg Banks @ 2004-02-27 9:55 UTC (permalink / raw)
To: Neil Brown, Linux NFS Mailing List
G'day,
This patch against 2.6.3 fixes a bug where the fsid= export option
is ignored if the export point is on a device with an old dev_t.
--- linux.base/fs/nfsd/nfsfh.c Wed Feb 18 14:57:25 2004
+++ linux/fs/nfsd/nfsfh.c Fri Feb 27 20:37:27 2004
@@ -344,6 +344,9 @@ fh_compose(struct svc_fh *fhp, struct sv
ref_fh_fsid_type = ref_fh->fh_handle.fh_fsid_type;
if (!(exp->ex_flags & NFSEXP_FSID) || ref_fh_fsid_type == 2)
ref_fh_fsid_type = 0;
+ } else if (exp->ex_flags & NFSEXP_FSID) {
+ ref_fh_version = 1;
+ ref_fh_fsid_type = 1;
}
if (ref_fh == fhp)
fh_put(ref_fh);
Greg.
--
Greg Banks, R&D Software Engineer, SGI Australian Software Group.
I don't speak for SGI.
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
NFS maillist - NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] SGI 910137: fsid export option broken in 2.6
2004-02-27 9:55 [PATCH] SGI 910137: fsid export option broken in 2.6 Greg Banks
@ 2004-02-27 10:24 ` Neil Brown
2004-02-27 10:28 ` Greg Banks
0 siblings, 1 reply; 3+ messages in thread
From: Neil Brown @ 2004-02-27 10:24 UTC (permalink / raw)
To: Greg Banks; +Cc: Linux NFS Mailing List
On Friday February 27, gnb@melbourne.sgi.com wrote:
> G'day,
>
> This patch against 2.6.3 fixes a bug where the fsid= export option
> is ignored if the export point is on a device with an old dev_t.
>
>
> --- linux.base/fs/nfsd/nfsfh.c Wed Feb 18 14:57:25 2004
> +++ linux/fs/nfsd/nfsfh.c Fri Feb 27 20:37:27 2004
> @@ -344,6 +344,9 @@ fh_compose(struct svc_fh *fhp, struct sv
> ref_fh_fsid_type = ref_fh->fh_handle.fh_fsid_type;
> if (!(exp->ex_flags & NFSEXP_FSID) || ref_fh_fsid_type == 2)
> ref_fh_fsid_type = 0;
> + } else if (exp->ex_flags & NFSEXP_FSID) {
> + ref_fh_version = 1;
> + ref_fh_fsid_type = 1;
> }
> if (ref_fh == fhp)
> fh_put(ref_fh);
>
WHAT!!! Where did all this fsid_type==2 stuff come from....
Al Viro it would appear.
I don't like it at all!
I'll look into it and fix it all up early next week.
Thanks for pointing it out to me.
NeilBrown
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
NFS maillist - NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] SGI 910137: fsid export option broken in 2.6
2004-02-27 10:24 ` Neil Brown
@ 2004-02-27 10:28 ` Greg Banks
0 siblings, 0 replies; 3+ messages in thread
From: Greg Banks @ 2004-02-27 10:28 UTC (permalink / raw)
To: Neil Brown; +Cc: Linux NFS Mailing List
Neil Brown wrote:
>
> WHAT!!! Where did all this fsid_type==2 stuff come from....
> Al Viro it would appear.
Yes.
> I don't like it at all!
Oh. I was thinking of writing an Ethereal disector for it. Guess I won't now.
Greg.
--
Greg Banks, R&D Software Engineer, SGI Australian Software Group.
I don't speak for SGI.
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
NFS maillist - NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-02-27 10:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-27 9:55 [PATCH] SGI 910137: fsid export option broken in 2.6 Greg Banks
2004-02-27 10:24 ` Neil Brown
2004-02-27 10:28 ` Greg Banks
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.