All of lore.kernel.org
 help / color / mirror / Atom feed
* nfs4 mounts failing with 3.6.0-rc1
@ 2012-08-04  0:08 J. Bruce Fields
  2012-08-04  2:00 ` Jeff Layton
  0 siblings, 1 reply; 19+ messages in thread
From: J. Bruce Fields @ 2012-08-04  0:08 UTC (permalink / raw)
  To: Bryan Schumaker; +Cc: linux-nfs

I'm getting

	# mount -tnfs -onfsvers=4 pip1:/exports /mnt/

(OK, admittedly that's with 3.6.0-rc1 + a few experimental patches, but
I doubt they're related.)

Also:

	[root@pip2 ~]# modprobe nfs4
	[root@pip2 ~]# lsmod|grep nfs4
	[root@pip2 ~]# 

--b.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: nfs4 mounts failing with 3.6.0-rc1
  2012-08-04  0:08 nfs4 mounts failing with 3.6.0-rc1 J. Bruce Fields
@ 2012-08-04  2:00 ` Jeff Layton
  2012-08-04 19:01   ` J. Bruce Fields
  0 siblings, 1 reply; 19+ messages in thread
From: Jeff Layton @ 2012-08-04  2:00 UTC (permalink / raw)
  To: J. Bruce Fields; +Cc: Bryan Schumaker, linux-nfs

On Fri, 3 Aug 2012 20:08:19 -0400
"J. Bruce Fields" <bfields@fieldses.org> wrote:

> I'm getting
> 
> 	# mount -tnfs -onfsvers=4 pip1:/exports /mnt/
> 
> (OK, admittedly that's with 3.6.0-rc1 + a few experimental patches, but
> I doubt they're related.)
> 
> Also:
> 
> 	[root@pip2 ~]# modprobe nfs4
> 	[root@pip2 ~]# lsmod|grep nfs4
> 	[root@pip2 ~]# 
> 
> --b.

I hit the same problem...

Try removing /usr/lib/modprobe.d/nfs.conf (assuming you're running
Fedora).

-- 
Jeff Layton <jlayton@redhat.com>

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: nfs4 mounts failing with 3.6.0-rc1
  2012-08-04  2:00 ` Jeff Layton
@ 2012-08-04 19:01   ` J. Bruce Fields
  2012-08-04 20:02     ` Jeff Layton
  2012-08-07 17:09     ` Jeff Layton
  0 siblings, 2 replies; 19+ messages in thread
From: J. Bruce Fields @ 2012-08-04 19:01 UTC (permalink / raw)
  To: Jeff Layton; +Cc: Bryan Schumaker, linux-nfs

On Fri, Aug 03, 2012 at 10:00:39PM -0400, Jeff Layton wrote:
> On Fri, 3 Aug 2012 20:08:19 -0400
> "J. Bruce Fields" <bfields@fieldses.org> wrote:
> 
> > I'm getting
> > 
> > 	# mount -tnfs -onfsvers=4 pip1:/exports /mnt/
> > 
> > (OK, admittedly that's with 3.6.0-rc1 + a few experimental patches, but
> > I doubt they're related.)
> > 
> > Also:
> > 
> > 	[root@pip2 ~]# modprobe nfs4
> > 	[root@pip2 ~]# lsmod|grep nfs4
> > 	[root@pip2 ~]# 
> > 
> > --b.
> 
> I hit the same problem...
> 
> Try removing /usr/lib/modprobe.d/nfs.conf (assuming you're running
> Fedora).

Oog, right.

But, without testing--won't that make v4 mounts fail on older kernels?

--b.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: nfs4 mounts failing with 3.6.0-rc1
  2012-08-04 19:01   ` J. Bruce Fields
@ 2012-08-04 20:02     ` Jeff Layton
  2012-08-07 17:09     ` Jeff Layton
  1 sibling, 0 replies; 19+ messages in thread
From: Jeff Layton @ 2012-08-04 20:02 UTC (permalink / raw)
  To: J. Bruce Fields; +Cc: Bryan Schumaker, linux-nfs

On Sat, 4 Aug 2012 15:01:04 -0400
"J. Bruce Fields" <bfields@fieldses.org> wrote:

> On Fri, Aug 03, 2012 at 10:00:39PM -0400, Jeff Layton wrote:
> > On Fri, 3 Aug 2012 20:08:19 -0400
> > "J. Bruce Fields" <bfields@fieldses.org> wrote:
> > 
> > > I'm getting
> > > 
> > > 	# mount -tnfs -onfsvers=4 pip1:/exports /mnt/
> > > 
> > > (OK, admittedly that's with 3.6.0-rc1 + a few experimental patches, but
> > > I doubt they're related.)
> > > 
> > > Also:
> > > 
> > > 	[root@pip2 ~]# modprobe nfs4
> > > 	[root@pip2 ~]# lsmod|grep nfs4
> > > 	[root@pip2 ~]# 
> > > 
> > > --b.
> > 
> > I hit the same problem...
> > 
> > Try removing /usr/lib/modprobe.d/nfs.conf (assuming you're running
> > Fedora).
> 
> Oog, right.
> 
> But, without testing--won't that make v4 mounts fail on older kernels?
> 
> --b.

Yeah, possibly. Wonder if we should consider pushing an update to
stable kernels to add a "nfs4" module alias to nfs.ko?

-- 
Jeff Layton <jlayton@redhat.com>

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: nfs4 mounts failing with 3.6.0-rc1
  2012-08-04 19:01   ` J. Bruce Fields
  2012-08-04 20:02     ` Jeff Layton
@ 2012-08-07 17:09     ` Jeff Layton
  2012-08-07 19:42       ` J. Bruce Fields
  1 sibling, 1 reply; 19+ messages in thread
From: Jeff Layton @ 2012-08-07 17:09 UTC (permalink / raw)
  To: J. Bruce Fields; +Cc: Bryan Schumaker, linux-nfs

On Sat, 4 Aug 2012 15:01:04 -0400
"J. Bruce Fields" <bfields@fieldses.org> wrote:

> On Fri, Aug 03, 2012 at 10:00:39PM -0400, Jeff Layton wrote:
> > On Fri, 3 Aug 2012 20:08:19 -0400
> > "J. Bruce Fields" <bfields@fieldses.org> wrote:
> > 
> > > I'm getting
> > > 
> > > 	# mount -tnfs -onfsvers=4 pip1:/exports /mnt/
> > > 
> > > (OK, admittedly that's with 3.6.0-rc1 + a few experimental patches, but
> > > I doubt they're related.)
> > > 
> > > Also:
> > > 
> > > 	[root@pip2 ~]# modprobe nfs4
> > > 	[root@pip2 ~]# lsmod|grep nfs4
> > > 	[root@pip2 ~]# 
> > > 
> > > --b.
> > 
> > I hit the same problem...
> > 
> > Try removing /usr/lib/modprobe.d/nfs.conf (assuming you're running
> > Fedora).
> 
> Oog, right.
> 
> But, without testing--won't that make v4 mounts fail on older kernels?

Actually, now that I look, this does not seem to break on older kernels
as long as you use a syntax like:

    # mount -t nfs server:/export /mnt/point -o vers=4

...if, however you use a syntax like:

    # mount -t nfs4 server:/export /mnt/point

...then it fails without the above file in place. I guess the question
we have to answer is: Do we want to continue to support the "-t nfs4"
mount syntax?

-- 
Jeff Layton <jlayton@redhat.com>

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: nfs4 mounts failing with 3.6.0-rc1
  2012-08-07 17:09     ` Jeff Layton
@ 2012-08-07 19:42       ` J. Bruce Fields
  2012-08-07 19:44         ` Bryan Schumaker
  0 siblings, 1 reply; 19+ messages in thread
From: J. Bruce Fields @ 2012-08-07 19:42 UTC (permalink / raw)
  To: Jeff Layton; +Cc: Bryan Schumaker, linux-nfs

On Tue, Aug 07, 2012 at 01:09:32PM -0400, Jeff Layton wrote:
> On Sat, 4 Aug 2012 15:01:04 -0400
> "J. Bruce Fields" <bfields@fieldses.org> wrote:
> 
> > On Fri, Aug 03, 2012 at 10:00:39PM -0400, Jeff Layton wrote:
> > > On Fri, 3 Aug 2012 20:08:19 -0400
> > > "J. Bruce Fields" <bfields@fieldses.org> wrote:
> > > 
> > > > I'm getting
> > > > 
> > > > 	# mount -tnfs -onfsvers=4 pip1:/exports /mnt/
> > > > 
> > > > (OK, admittedly that's with 3.6.0-rc1 + a few experimental patches, but
> > > > I doubt they're related.)
> > > > 
> > > > Also:
> > > > 
> > > > 	[root@pip2 ~]# modprobe nfs4
> > > > 	[root@pip2 ~]# lsmod|grep nfs4
> > > > 	[root@pip2 ~]# 
> > > > 
> > > > --b.
> > > 
> > > I hit the same problem...
> > > 
> > > Try removing /usr/lib/modprobe.d/nfs.conf (assuming you're running
> > > Fedora).
> > 
> > Oog, right.
> > 
> > But, without testing--won't that make v4 mounts fail on older kernels?
> 
> Actually, now that I look, this does not seem to break on older kernels
> as long as you use a syntax like:
> 
>     # mount -t nfs server:/export /mnt/point -o vers=4
> 
> ...if, however you use a syntax like:
> 
>     # mount -t nfs4 server:/export /mnt/point
> 
> ...then it fails without the above file in place. I guess the question
> we have to answer is: Do we want to continue to support the "-t nfs4"
> mount syntax?

I think you're right that we want to deprecate it.

Though this is a bit of a harsh way to do it--would have been nice to
have some transition period with a warning or something.

--b.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: nfs4 mounts failing with 3.6.0-rc1
  2012-08-07 19:42       ` J. Bruce Fields
@ 2012-08-07 19:44         ` Bryan Schumaker
  2012-08-07 19:57           ` J. Bruce Fields
  0 siblings, 1 reply; 19+ messages in thread
From: Bryan Schumaker @ 2012-08-07 19:44 UTC (permalink / raw)
  To: J. Bruce Fields; +Cc: Jeff Layton, linux-nfs

On 08/07/2012 03:42 PM, J. Bruce Fields wrote:
> On Tue, Aug 07, 2012 at 01:09:32PM -0400, Jeff Layton wrote:
>> On Sat, 4 Aug 2012 15:01:04 -0400
>> "J. Bruce Fields" <bfields@fieldses.org> wrote:
>>
>>> On Fri, Aug 03, 2012 at 10:00:39PM -0400, Jeff Layton wrote:
>>>> On Fri, 3 Aug 2012 20:08:19 -0400
>>>> "J. Bruce Fields" <bfields@fieldses.org> wrote:
>>>>
>>>>> I'm getting
>>>>>
>>>>> 	# mount -tnfs -onfsvers=4 pip1:/exports /mnt/
>>>>>
>>>>> (OK, admittedly that's with 3.6.0-rc1 + a few experimental patches, but
>>>>> I doubt they're related.)
>>>>>
>>>>> Also:
>>>>>
>>>>> 	[root@pip2 ~]# modprobe nfs4
>>>>> 	[root@pip2 ~]# lsmod|grep nfs4
>>>>> 	[root@pip2 ~]# 
>>>>>
>>>>> --b.
>>>>
>>>> I hit the same problem...
>>>>
>>>> Try removing /usr/lib/modprobe.d/nfs.conf (assuming you're running
>>>> Fedora).
>>>
>>> Oog, right.
>>>
>>> But, without testing--won't that make v4 mounts fail on older kernels?
>>
>> Actually, now that I look, this does not seem to break on older kernels
>> as long as you use a syntax like:
>>
>>     # mount -t nfs server:/export /mnt/point -o vers=4
>>
>> ...if, however you use a syntax like:
>>
>>     # mount -t nfs4 server:/export /mnt/point
>>
>> ...then it fails without the above file in place. I guess the question
>> we have to answer is: Do we want to continue to support the "-t nfs4"
>> mount syntax?
> 
> I think you're right that we want to deprecate it.
> 
> Though this is a bit of a harsh way to do it--would have been nice to
> have some transition period with a warning or something.

I didn't expect this to be broken, both ways of mounting still work on my VMs so I expected them to work for everybody else too.

- Bryan

> 
> --b.
> 


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: nfs4 mounts failing with 3.6.0-rc1
  2012-08-07 19:44         ` Bryan Schumaker
@ 2012-08-07 19:57           ` J. Bruce Fields
  2012-08-07 20:10             ` Bryan Schumaker
  0 siblings, 1 reply; 19+ messages in thread
From: J. Bruce Fields @ 2012-08-07 19:57 UTC (permalink / raw)
  To: Bryan Schumaker; +Cc: Jeff Layton, linux-nfs

On Tue, Aug 07, 2012 at 03:44:53PM -0400, Bryan Schumaker wrote:
> On 08/07/2012 03:42 PM, J. Bruce Fields wrote:
> > On Tue, Aug 07, 2012 at 01:09:32PM -0400, Jeff Layton wrote:
> >> On Sat, 4 Aug 2012 15:01:04 -0400
> >> "J. Bruce Fields" <bfields@fieldses.org> wrote:
> >>
> >>> On Fri, Aug 03, 2012 at 10:00:39PM -0400, Jeff Layton wrote:
> >>>> On Fri, 3 Aug 2012 20:08:19 -0400
> >>>> "J. Bruce Fields" <bfields@fieldses.org> wrote:
> >>>>
> >>>>> I'm getting
> >>>>>
> >>>>> 	# mount -tnfs -onfsvers=4 pip1:/exports /mnt/
> >>>>>
> >>>>> (OK, admittedly that's with 3.6.0-rc1 + a few experimental patches, but
> >>>>> I doubt they're related.)
> >>>>>
> >>>>> Also:
> >>>>>
> >>>>> 	[root@pip2 ~]# modprobe nfs4
> >>>>> 	[root@pip2 ~]# lsmod|grep nfs4
> >>>>> 	[root@pip2 ~]# 
> >>>>>
> >>>>> --b.
> >>>>
> >>>> I hit the same problem...
> >>>>
> >>>> Try removing /usr/lib/modprobe.d/nfs.conf (assuming you're running
> >>>> Fedora).
> >>>
> >>> Oog, right.
> >>>
> >>> But, without testing--won't that make v4 mounts fail on older kernels?
> >>
> >> Actually, now that I look, this does not seem to break on older kernels
> >> as long as you use a syntax like:
> >>
> >>     # mount -t nfs server:/export /mnt/point -o vers=4
> >>
> >> ...if, however you use a syntax like:
> >>
> >>     # mount -t nfs4 server:/export /mnt/point
> >>
> >> ...then it fails without the above file in place. I guess the question
> >> we have to answer is: Do we want to continue to support the "-t nfs4"
> >> mount syntax?
> > 
> > I think you're right that we want to deprecate it.
> > 
> > Though this is a bit of a harsh way to do it--would have been nice to
> > have some transition period with a warning or something.
> 
> I didn't expect this to be broken, both ways of mounting still work on my VMs so I expected them to work for everybody else too.

Huh.  Just checked on an old kernel without an "alias nfs4 nfs" in
modprobe configuration, and sure enough I get "No such device".

Maybe you have some initscripts or something else that's loading the
nfs module for you before the mount?

--b.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: nfs4 mounts failing with 3.6.0-rc1
  2012-08-07 19:57           ` J. Bruce Fields
@ 2012-08-07 20:10             ` Bryan Schumaker
  2012-08-07 20:25               ` J. Bruce Fields
  0 siblings, 1 reply; 19+ messages in thread
From: Bryan Schumaker @ 2012-08-07 20:10 UTC (permalink / raw)
  To: J. Bruce Fields; +Cc: Jeff Layton, linux-nfs

On 08/07/2012 03:57 PM, J. Bruce Fields wrote:
> On Tue, Aug 07, 2012 at 03:44:53PM -0400, Bryan Schumaker wrote:
>> On 08/07/2012 03:42 PM, J. Bruce Fields wrote:
>>> On Tue, Aug 07, 2012 at 01:09:32PM -0400, Jeff Layton wrote:
>>>> On Sat, 4 Aug 2012 15:01:04 -0400
>>>> "J. Bruce Fields" <bfields@fieldses.org> wrote:
>>>>
>>>>> On Fri, Aug 03, 2012 at 10:00:39PM -0400, Jeff Layton wrote:
>>>>>> On Fri, 3 Aug 2012 20:08:19 -0400
>>>>>> "J. Bruce Fields" <bfields@fieldses.org> wrote:
>>>>>>
>>>>>>> I'm getting
>>>>>>>
>>>>>>> 	# mount -tnfs -onfsvers=4 pip1:/exports /mnt/
>>>>>>>
>>>>>>> (OK, admittedly that's with 3.6.0-rc1 + a few experimental patches, but
>>>>>>> I doubt they're related.)
>>>>>>>
>>>>>>> Also:
>>>>>>>
>>>>>>> 	[root@pip2 ~]# modprobe nfs4
>>>>>>> 	[root@pip2 ~]# lsmod|grep nfs4
>>>>>>> 	[root@pip2 ~]# 
>>>>>>>
>>>>>>> --b.
>>>>>>
>>>>>> I hit the same problem...
>>>>>>
>>>>>> Try removing /usr/lib/modprobe.d/nfs.conf (assuming you're running
>>>>>> Fedora).
>>>>>
>>>>> Oog, right.
>>>>>
>>>>> But, without testing--won't that make v4 mounts fail on older kernels?
>>>>
>>>> Actually, now that I look, this does not seem to break on older kernels
>>>> as long as you use a syntax like:
>>>>
>>>>     # mount -t nfs server:/export /mnt/point -o vers=4
>>>>
>>>> ...if, however you use a syntax like:
>>>>
>>>>     # mount -t nfs4 server:/export /mnt/point
>>>>
>>>> ...then it fails without the above file in place. I guess the question
>>>> we have to answer is: Do we want to continue to support the "-t nfs4"
>>>> mount syntax?
>>>
>>> I think you're right that we want to deprecate it.
>>>
>>> Though this is a bit of a harsh way to do it--would have been nice to
>>> have some transition period with a warning or something.
>>
>> I didn't expect this to be broken, both ways of mounting still work on my VMs so I expected them to work for everybody else too.
> 
> Huh.  Just checked on an old kernel without an "alias nfs4 nfs" in
> modprobe configuration, and sure enough I get "No such device".
> 
> Maybe you have some initscripts or something else that's loading the
> nfs module for you before the mount?

My nfs-common daemon script loads sunrpc, nfs and nfsd but not nfs2, nfs3 or nfs4.

Could we rename the module to avoid the alias name collision?  Something like this (untested) maybe?



diff --git a/fs/nfs/Makefile b/fs/nfs/Makefile
index 8bf3a3f..b7db608 100644
--- a/fs/nfs/Makefile
+++ b/fs/nfs/Makefile
@@ -12,19 +12,19 @@ nfs-$(CONFIG_ROOT_NFS)      += nfsroot.o
 nfs-$(CONFIG_SYSCTL)   += sysctl.o
 nfs-$(CONFIG_NFS_FSCACHE) += fscache.o fscache-index.o
 
-obj-$(CONFIG_NFS_V2) += nfs2.o
-nfs2-y := nfs2super.o proc.o nfs2xdr.o
+obj-$(CONFIG_NFS_V2) += nfsv2.o
+nfsv2-y := nfs2super.o proc.o nfs2xdr.o
 
-obj-$(CONFIG_NFS_V3) += nfs3.o
-nfs3-y := nfs3super.o nfs3client.o nfs3proc.o nfs3xdr.o
-nfs3-$(CONFIG_NFS_V3_ACL) += nfs3acl.o
+obj-$(CONFIG_NFS_V3) += nfsv3.o
+nfsv3-y := nfs3super.o nfs3client.o nfs3proc.o nfs3xdr.o
+nfsv3-$(CONFIG_NFS_V3_ACL) += nfs3acl.o
 
-obj-$(CONFIG_NFS_V4) += nfs4.o
-nfs4-y := nfs4proc.o nfs4xdr.o nfs4state.o nfs4renewd.o nfs4super.o nfs4file.o \
+obj-$(CONFIG_NFS_V4) += nfsv4.o
+nfsv4-y := nfs4proc.o nfs4xdr.o nfs4state.o nfs4renewd.o nfs4super.o nfs4file.o \
          delegation.o idmap.o callback.o callback_xdr.o callback_proc.o \
          nfs4namespace.o nfs4getroot.o nfs4client.o
-nfs4-$(CONFIG_SYSCTL)  += nfs4sysctl.o
-nfs4-$(CONFIG_NFS_V4_1)        += pnfs.o pnfs_dev.o
+nfsv4-$(CONFIG_SYSCTL) += nfs4sysctl.o
+nfsv4-$(CONFIG_NFS_V4_1)       += pnfs.o pnfs_dev.o
 
 obj-$(CONFIG_PNFS_FILE_LAYOUT) += nfs_layout_nfsv41_files.o
 nfs_layout_nfsv41_files-y := nfs4filelayout.o nfs4filelayoutdev.o
diff --git a/fs/nfs/client.c b/fs/nfs/client.c
index 9fc0d9d..9969444 100644
--- a/fs/nfs/client.c
+++ b/fs/nfs/client.c
@@ -105,7 +105,7 @@ struct nfs_subversion *get_nfs_version(unsigned int version)
 
        if (IS_ERR(nfs)) {
                mutex_lock(&nfs_version_mutex);
-               request_module("nfs%d", version);
+               request_module("nfsv%d", version);
                nfs = find_nfs_version(version);
                mutex_unlock(&nfs_version_mutex);
        }


> 
> --b.
> 


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* Re: nfs4 mounts failing with 3.6.0-rc1
  2012-08-07 20:10             ` Bryan Schumaker
@ 2012-08-07 20:25               ` J. Bruce Fields
  2012-08-07 21:23                 ` Myklebust, Trond
  0 siblings, 1 reply; 19+ messages in thread
From: J. Bruce Fields @ 2012-08-07 20:25 UTC (permalink / raw)
  To: Bryan Schumaker; +Cc: Jeff Layton, linux-nfs

On Tue, Aug 07, 2012 at 04:10:49PM -0400, Bryan Schumaker wrote:
> On 08/07/2012 03:57 PM, J. Bruce Fields wrote:
> > On Tue, Aug 07, 2012 at 03:44:53PM -0400, Bryan Schumaker wrote:
> >> On 08/07/2012 03:42 PM, J. Bruce Fields wrote:
> >>> On Tue, Aug 07, 2012 at 01:09:32PM -0400, Jeff Layton wrote:
> >>>> On Sat, 4 Aug 2012 15:01:04 -0400
> >>>> "J. Bruce Fields" <bfields@fieldses.org> wrote:
> >>>>
> >>>>> On Fri, Aug 03, 2012 at 10:00:39PM -0400, Jeff Layton wrote:
> >>>>>> On Fri, 3 Aug 2012 20:08:19 -0400
> >>>>>> "J. Bruce Fields" <bfields@fieldses.org> wrote:
> >>>>>>
> >>>>>>> I'm getting
> >>>>>>>
> >>>>>>> 	# mount -tnfs -onfsvers=4 pip1:/exports /mnt/
> >>>>>>>
> >>>>>>> (OK, admittedly that's with 3.6.0-rc1 + a few experimental patches, but
> >>>>>>> I doubt they're related.)
> >>>>>>>
> >>>>>>> Also:
> >>>>>>>
> >>>>>>> 	[root@pip2 ~]# modprobe nfs4
> >>>>>>> 	[root@pip2 ~]# lsmod|grep nfs4
> >>>>>>> 	[root@pip2 ~]# 
> >>>>>>>
> >>>>>>> --b.
> >>>>>>
> >>>>>> I hit the same problem...
> >>>>>>
> >>>>>> Try removing /usr/lib/modprobe.d/nfs.conf (assuming you're running
> >>>>>> Fedora).
> >>>>>
> >>>>> Oog, right.
> >>>>>
> >>>>> But, without testing--won't that make v4 mounts fail on older kernels?
> >>>>
> >>>> Actually, now that I look, this does not seem to break on older kernels
> >>>> as long as you use a syntax like:
> >>>>
> >>>>     # mount -t nfs server:/export /mnt/point -o vers=4
> >>>>
> >>>> ...if, however you use a syntax like:
> >>>>
> >>>>     # mount -t nfs4 server:/export /mnt/point
> >>>>
> >>>> ...then it fails without the above file in place. I guess the question
> >>>> we have to answer is: Do we want to continue to support the "-t nfs4"
> >>>> mount syntax?
> >>>
> >>> I think you're right that we want to deprecate it.
> >>>
> >>> Though this is a bit of a harsh way to do it--would have been nice to
> >>> have some transition period with a warning or something.
> >>
> >> I didn't expect this to be broken, both ways of mounting still work on my VMs so I expected them to work for everybody else too.
> > 
> > Huh.  Just checked on an old kernel without an "alias nfs4 nfs" in
> > modprobe configuration, and sure enough I get "No such device".
> > 
> > Maybe you have some initscripts or something else that's loading the
> > nfs module for you before the mount?
> 
> My nfs-common daemon script loads sunrpc, nfs

Yep, that's why you're not seeing it.

> and nfsd but not nfs2, nfs3 or nfs4.
> 
> Could we rename the module to avoid the alias name collision?  Something like this (untested) maybe?

I don't think that will help.

--b.

> 
> 
> 
> diff --git a/fs/nfs/Makefile b/fs/nfs/Makefile
> index 8bf3a3f..b7db608 100644
> --- a/fs/nfs/Makefile
> +++ b/fs/nfs/Makefile
> @@ -12,19 +12,19 @@ nfs-$(CONFIG_ROOT_NFS)      += nfsroot.o
>  nfs-$(CONFIG_SYSCTL)   += sysctl.o
>  nfs-$(CONFIG_NFS_FSCACHE) += fscache.o fscache-index.o
>  
> -obj-$(CONFIG_NFS_V2) += nfs2.o
> -nfs2-y := nfs2super.o proc.o nfs2xdr.o
> +obj-$(CONFIG_NFS_V2) += nfsv2.o
> +nfsv2-y := nfs2super.o proc.o nfs2xdr.o
>  
> -obj-$(CONFIG_NFS_V3) += nfs3.o
> -nfs3-y := nfs3super.o nfs3client.o nfs3proc.o nfs3xdr.o
> -nfs3-$(CONFIG_NFS_V3_ACL) += nfs3acl.o
> +obj-$(CONFIG_NFS_V3) += nfsv3.o
> +nfsv3-y := nfs3super.o nfs3client.o nfs3proc.o nfs3xdr.o
> +nfsv3-$(CONFIG_NFS_V3_ACL) += nfs3acl.o
>  
> -obj-$(CONFIG_NFS_V4) += nfs4.o
> -nfs4-y := nfs4proc.o nfs4xdr.o nfs4state.o nfs4renewd.o nfs4super.o nfs4file.o \
> +obj-$(CONFIG_NFS_V4) += nfsv4.o
> +nfsv4-y := nfs4proc.o nfs4xdr.o nfs4state.o nfs4renewd.o nfs4super.o nfs4file.o \
>           delegation.o idmap.o callback.o callback_xdr.o callback_proc.o \
>           nfs4namespace.o nfs4getroot.o nfs4client.o
> -nfs4-$(CONFIG_SYSCTL)  += nfs4sysctl.o
> -nfs4-$(CONFIG_NFS_V4_1)        += pnfs.o pnfs_dev.o
> +nfsv4-$(CONFIG_SYSCTL) += nfs4sysctl.o
> +nfsv4-$(CONFIG_NFS_V4_1)       += pnfs.o pnfs_dev.o
>  
>  obj-$(CONFIG_PNFS_FILE_LAYOUT) += nfs_layout_nfsv41_files.o
>  nfs_layout_nfsv41_files-y := nfs4filelayout.o nfs4filelayoutdev.o
> diff --git a/fs/nfs/client.c b/fs/nfs/client.c
> index 9fc0d9d..9969444 100644
> --- a/fs/nfs/client.c
> +++ b/fs/nfs/client.c
> @@ -105,7 +105,7 @@ struct nfs_subversion *get_nfs_version(unsigned int version)
>  
>         if (IS_ERR(nfs)) {
>                 mutex_lock(&nfs_version_mutex);
> -               request_module("nfs%d", version);
> +               request_module("nfsv%d", version);
>                 nfs = find_nfs_version(version);
>                 mutex_unlock(&nfs_version_mutex);
>         }
> 
> 
> > 
> > --b.
> > 
> 

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: nfs4 mounts failing with 3.6.0-rc1
  2012-08-07 20:25               ` J. Bruce Fields
@ 2012-08-07 21:23                 ` Myklebust, Trond
  2012-08-07 22:26                   ` Jeff Layton
  2012-08-08 14:42                   ` Bryan Schumaker
  0 siblings, 2 replies; 19+ messages in thread
From: Myklebust, Trond @ 2012-08-07 21:23 UTC (permalink / raw)
  To: J. Bruce Fields; +Cc: Schumaker, Bryan, Jeff Layton, linux-nfs

T24gVHVlLCAyMDEyLTA4LTA3IGF0IDE2OjI1IC0wND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0KPiA+ID4gDQo+
ID4gDQo+IC0tDQo+IFRvIHVuc3Vic2NyaWJlIGZyb20gdGhpcyBsaXN0OiBzZW5kIHRoZSBsaW5l
ICJ1bnN1YnNjcmliZSBsaW51eC1uZnMiIGluDQo+IHRoZSBib2R5IG9mIGEgbWVzc2FnZSB0byBt
YWpvcmRvbW9Admdlci5rZXJuZWwub3JnDQo+IE1vcmUgbWFqb3Jkb21vIGluZm8gYXQgIGh0dHA6
Ly92Z2VyLmtlcm5lbC5vcmcvbWFqb3Jkb21vLWluZm8uaHRtbA0KDQotLSANClRyb25kIE15a2xl
YnVzdA0KTGludXggTkZTIGNsaWVudCBtYWludGFpbmVyDQoNCk5ldEFwcA0KVHJvbmQuTXlrbGVi
dXN0QG5ldGFwcC5jb20NCnd3dy5uZXRhcHAuY29tDQoNCg==

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: nfs4 mounts failing with 3.6.0-rc1
  2012-08-07 21:23                 ` Myklebust, Trond
@ 2012-08-07 22:26                   ` Jeff Layton
  2012-08-07 22:36                     ` Myklebust, Trond
  2012-08-08 14:42                   ` Bryan Schumaker
  1 sibling, 1 reply; 19+ messages in thread
From: Jeff Layton @ 2012-08-07 22:26 UTC (permalink / raw)
  To: Myklebust, Trond; +Cc: J. Bruce Fields, Schumaker, Bryan, linux-nfs, steved

On Tue, 7 Aug 2012 21:23:34 +0000
"Myklebust, Trond" <Trond.Myklebust@netapp.com> wrote:

> On Tue, 2012-08-07 at 16:25 -0400, J. Bruce Fields wrote:
> > On Tue, Aug 07, 2012 at 04:10:49PM -0400, Bryan Schumaker wrote:
> > > On 08/07/2012 03:57 PM, J. Bruce Fields wrote:
> > > > On Tue, Aug 07, 2012 at 03:44:53PM -0400, Bryan Schumaker wrote:
> > > >> On 08/07/2012 03:42 PM, J. Bruce Fields wrote:
> > > >>> On Tue, Aug 07, 2012 at 01:09:32PM -0400, Jeff Layton wrote:
> > > >>>> On Sat, 4 Aug 2012 15:01:04 -0400
> > > >>>> "J. Bruce Fields" <bfields@fieldses.org> wrote:
> > > >>>>
> > > >>>>> On Fri, Aug 03, 2012 at 10:00:39PM -0400, Jeff Layton wrote:
> > > >>>>>> On Fri, 3 Aug 2012 20:08:19 -0400
> > > >>>>>> "J. Bruce Fields" <bfields@fieldses.org> wrote:
> > > >>>>>>
> > > >>>>>>> I'm getting
> > > >>>>>>>
> > > >>>>>>> 	# mount -tnfs -onfsvers=4 pip1:/exports /mnt/
> > > >>>>>>>
> > > >>>>>>> (OK, admittedly that's with 3.6.0-rc1 + a few experimental patches, but
> > > >>>>>>> I doubt they're related.)
> > > >>>>>>>
> > > >>>>>>> Also:
> > > >>>>>>>
> > > >>>>>>> 	[root@pip2 ~]# modprobe nfs4
> > > >>>>>>> 	[root@pip2 ~]# lsmod|grep nfs4
> > > >>>>>>> 	[root@pip2 ~]# 
> > > >>>>>>>
> > > >>>>>>> --b.
> > > >>>>>>
> > > >>>>>> I hit the same problem...
> > > >>>>>>
> > > >>>>>> Try removing /usr/lib/modprobe.d/nfs.conf (assuming you're running
> > > >>>>>> Fedora).
> > > >>>>>
> > > >>>>> Oog, right.
> > > >>>>>
> > > >>>>> But, without testing--won't that make v4 mounts fail on older kernels?
> > > >>>>
> > > >>>> Actually, now that I look, this does not seem to break on older kernels
> > > >>>> as long as you use a syntax like:
> > > >>>>
> > > >>>>     # mount -t nfs server:/export /mnt/point -o vers=4
> > > >>>>
> > > >>>> ...if, however you use a syntax like:
> > > >>>>
> > > >>>>     # mount -t nfs4 server:/export /mnt/point
> > > >>>>
> > > >>>> ...then it fails without the above file in place. I guess the question
> > > >>>> we have to answer is: Do we want to continue to support the "-t nfs4"
> > > >>>> mount syntax?
> > > >>>
> > > >>> I think you're right that we want to deprecate it.
> > > >>>
> > > >>> Though this is a bit of a harsh way to do it--would have been nice to
> > > >>> have some transition period with a warning or something.
> > > >>
> > > >> I didn't expect this to be broken, both ways of mounting still work on my VMs so I expected them to work for everybody else too.
> > > > 
> > > > Huh.  Just checked on an old kernel without an "alias nfs4 nfs" in
> > > > modprobe configuration, and sure enough I get "No such device".
> > > > 
> > > > Maybe you have some initscripts or something else that's loading the
> > > > nfs module for you before the mount?
> > > 
> > > My nfs-common daemon script loads sunrpc, nfs
> > 
> > Yep, that's why you're not seeing it.
> > 
> > > and nfsd but not nfs2, nfs3 or nfs4.
> > > 
> > > Could we rename the module to avoid the alias name collision?  Something like this (untested) maybe?
> > 
> > I don't think that will help.
> 
> It should if we also add back in
> 
> struct file_system_type nfs4_fs_type = {
>         .owner          = THIS_MODULE,
>         .name           = "nfs4",
>         .mount          = nfs_fs_mount,
>         .kill_sb        = nfs_kill_super,
>         .fs_flags       = FS_RENAME_DOES_D_MOVE|FS_REVAL_DOT|FS_BINARY_MOUNTDATA,
> };
> 
> and then add that to register_nfs_fs()/unregister_nfs_fs(). As far as I
> can see, that will trigger all the right incantations in
> nfs_validate_mount_data() to mount an NFSv4 filesystem.
> 

So, move the nfs4 fstype definition back into nfs.ko? That would
ensure that you could still do a "-t nfs4" mount with that modprobe
alias in place.

I think Bryan is correct though. We'll also need to rename nfs4.ko or
you won't ever be able to call request_module for it in order to plug
it in if you have that module alias in place.

Does this mean that we plan to support the "-t nfs4" mount syntax in
perpetuity?

-- 
Jeff Layton <jlayton@redhat.com>

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: nfs4 mounts failing with 3.6.0-rc1
  2012-08-07 22:26                   ` Jeff Layton
@ 2012-08-07 22:36                     ` Myklebust, Trond
  2012-08-08 11:48                       ` Jeff Layton
  0 siblings, 1 reply; 19+ messages in thread
From: Myklebust, Trond @ 2012-08-07 22:36 UTC (permalink / raw)
  To: Jeff Layton; +Cc: J. Bruce Fields, Schumaker, Bryan, linux-nfs, steved

T24gVHVlLCAyMDEyLTA4LTA3IGF0IDE4OjI2IC0wNDAwLCBKZWZmIExheXRvbiB3cm90ZToNCj4g
T24gVHVlLCA3IEF1ZyAyMDEyIDIxOjIzOjM0ICswMDAwDQo+ICJNeWtsZWJ1c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y4NCg0KLS0gDQpUcm9uZCBNeWtsZWJ1c3QNCkxpbnV4IE5GUyBjbGllbnQgbWFpbnRhaW5l
cg0KDQpOZXRBcHANClRyb25kLk15a2xlYnVzdEBuZXRhcHAuY29tDQp3d3cubmV0YXBwLmNvbQ0K
DQo=

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: nfs4 mounts failing with 3.6.0-rc1
  2012-08-07 22:36                     ` Myklebust, Trond
@ 2012-08-08 11:48                       ` Jeff Layton
  0 siblings, 0 replies; 19+ messages in thread
From: Jeff Layton @ 2012-08-08 11:48 UTC (permalink / raw)
  To: Myklebust, Trond; +Cc: J. Bruce Fields, Schumaker, Bryan, linux-nfs, steved

On Tue, 7 Aug 2012 22:36:12 +0000
"Myklebust, Trond" <Trond.Myklebust@netapp.com> wrote:

> On Tue, 2012-08-07 at 18:26 -0400, Jeff Layton wrote:
> > On Tue, 7 Aug 2012 21:23:34 +0000
> > "Myklebust, Trond" <Trond.Myklebust@netapp.com> wrote:
> > 
> > > On Tue, 2012-08-07 at 16:25 -0400, J. Bruce Fields wrote:
> > > > On Tue, Aug 07, 2012 at 04:10:49PM -0400, Bryan Schumaker wrote:
> > > > > On 08/07/2012 03:57 PM, J. Bruce Fields wrote:
> > > > > > On Tue, Aug 07, 2012 at 03:44:53PM -0400, Bryan Schumaker wrote:
> > > > > >> On 08/07/2012 03:42 PM, J. Bruce Fields wrote:
> > > > > >>> On Tue, Aug 07, 2012 at 01:09:32PM -0400, Jeff Layton wrote:
> > > > > >>>> On Sat, 4 Aug 2012 15:01:04 -0400
> > > > > >>>> "J. Bruce Fields" <bfields@fieldses.org> wrote:
> > > > > >>>>
> > > > > >>>>> On Fri, Aug 03, 2012 at 10:00:39PM -0400, Jeff Layton wrote:
> > > > > >>>>>> On Fri, 3 Aug 2012 20:08:19 -0400
> > > > > >>>>>> "J. Bruce Fields" <bfields@fieldses.org> wrote:
> > > > > >>>>>>
> > > > > >>>>>>> I'm getting
> > > > > >>>>>>>
> > > > > >>>>>>> 	# mount -tnfs -onfsvers=4 pip1:/exports /mnt/
> > > > > >>>>>>>
> > > > > >>>>>>> (OK, admittedly that's with 3.6.0-rc1 + a few experimental patches, but
> > > > > >>>>>>> I doubt they're related.)
> > > > > >>>>>>>
> > > > > >>>>>>> Also:
> > > > > >>>>>>>
> > > > > >>>>>>> 	[root@pip2 ~]# modprobe nfs4
> > > > > >>>>>>> 	[root@pip2 ~]# lsmod|grep nfs4
> > > > > >>>>>>> 	[root@pip2 ~]# 
> > > > > >>>>>>>
> > > > > >>>>>>> --b.
> > > > > >>>>>>
> > > > > >>>>>> I hit the same problem...
> > > > > >>>>>>
> > > > > >>>>>> Try removing /usr/lib/modprobe.d/nfs.conf (assuming you're running
> > > > > >>>>>> Fedora).
> > > > > >>>>>
> > > > > >>>>> Oog, right.
> > > > > >>>>>
> > > > > >>>>> But, without testing--won't that make v4 mounts fail on older kernels?
> > > > > >>>>
> > > > > >>>> Actually, now that I look, this does not seem to break on older kernels
> > > > > >>>> as long as you use a syntax like:
> > > > > >>>>
> > > > > >>>>     # mount -t nfs server:/export /mnt/point -o vers=4
> > > > > >>>>
> > > > > >>>> ...if, however you use a syntax like:
> > > > > >>>>
> > > > > >>>>     # mount -t nfs4 server:/export /mnt/point
> > > > > >>>>
> > > > > >>>> ...then it fails without the above file in place. I guess the question
> > > > > >>>> we have to answer is: Do we want to continue to support the "-t nfs4"
> > > > > >>>> mount syntax?
> > > > > >>>
> > > > > >>> I think you're right that we want to deprecate it.
> > > > > >>>
> > > > > >>> Though this is a bit of a harsh way to do it--would have been nice to
> > > > > >>> have some transition period with a warning or something.
> > > > > >>
> > > > > >> I didn't expect this to be broken, both ways of mounting still work on my VMs so I expected them to work for everybody else too.
> > > > > > 
> > > > > > Huh.  Just checked on an old kernel without an "alias nfs4 nfs" in
> > > > > > modprobe configuration, and sure enough I get "No such device".
> > > > > > 
> > > > > > Maybe you have some initscripts or something else that's loading the
> > > > > > nfs module for you before the mount?
> > > > > 
> > > > > My nfs-common daemon script loads sunrpc, nfs
> > > > 
> > > > Yep, that's why you're not seeing it.
> > > > 
> > > > > and nfsd but not nfs2, nfs3 or nfs4.
> > > > > 
> > > > > Could we rename the module to avoid the alias name collision?  Something like this (untested) maybe?
> > > > 
> > > > I don't think that will help.
> > > 
> > > It should if we also add back in
> > > 
> > > struct file_system_type nfs4_fs_type = {
> > >         .owner          = THIS_MODULE,
> > >         .name           = "nfs4",
> > >         .mount          = nfs_fs_mount,
> > >         .kill_sb        = nfs_kill_super,
> > >         .fs_flags       = FS_RENAME_DOES_D_MOVE|FS_REVAL_DOT|FS_BINARY_MOUNTDATA,
> > > };
> > > 
> > > and then add that to register_nfs_fs()/unregister_nfs_fs(). As far as I
> > > can see, that will trigger all the right incantations in
> > > nfs_validate_mount_data() to mount an NFSv4 filesystem.
> > > 
> > 
> > So, move the nfs4 fstype definition back into nfs.ko? That would
> > ensure that you could still do a "-t nfs4" mount with that modprobe
> > alias in place.
> 
> No. I mean to add a separate nfs4_fstype definition in nfs.ko, and
> register it so that the VFS recognises the 'nfs4' filesystem name.
> 
> > I think Bryan is correct though. We'll also need to rename nfs4.ko or
> > you won't ever be able to call request_module for it in order to plug
> > it in if you have that module alias in place.
> 
> You did note my use of the word "also" above?
> 
> > Does this mean that we plan to support the "-t nfs4" mount syntax in
> > perpetuity?
> 
> No, but I also agree with Bruce's point that we shouldn't pull the plug
> without some prior notice. We should at least keep an entry in
> Documentation/feature-removal-schedule.txt for a few kernel revisions.
> 

Ok, I follow you now...

Fair warning is reasonable, perhaps we should shoot for removing
support in 3.9 or 3.10?

I think we'll also need to consider retiring the nfs4_fs_type
altogether, or at least make them all show up as "nfs"
in /proc/self/mounts. Otherwise remounts could be problematic...

-- 
Jeff Layton <jlayton@redhat.com>

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: nfs4 mounts failing with 3.6.0-rc1
  2012-08-07 21:23                 ` Myklebust, Trond
  2012-08-07 22:26                   ` Jeff Layton
@ 2012-08-08 14:42                   ` Bryan Schumaker
  2012-08-08 15:08                     ` Myklebust, Trond
  1 sibling, 1 reply; 19+ messages in thread
From: Bryan Schumaker @ 2012-08-08 14:42 UTC (permalink / raw)
  To: Myklebust, Trond
  Cc: J. Bruce Fields, Schumaker, Bryan, Jeff Layton, linux-nfs

On 08/07/2012 05:23 PM, Myklebust, Trond wrote:
> On Tue, 2012-08-07 at 16:25 -0400, J. Bruce Fields wrote:
>> On Tue, Aug 07, 2012 at 04:10:49PM -0400, Bryan Schumaker wrote:
>>> On 08/07/2012 03:57 PM, J. Bruce Fields wrote:
>>>> On Tue, Aug 07, 2012 at 03:44:53PM -0400, Bryan Schumaker wrote:
>>>>> On 08/07/2012 03:42 PM, J. Bruce Fields wrote:
>>>>>> On Tue, Aug 07, 2012 at 01:09:32PM -0400, Jeff Layton wrote:
>>>>>>> On Sat, 4 Aug 2012 15:01:04 -0400
>>>>>>> "J. Bruce Fields" <bfields@fieldses.org> wrote:
>>>>>>>
>>>>>>>> On Fri, Aug 03, 2012 at 10:00:39PM -0400, Jeff Layton wrote:
>>>>>>>>> On Fri, 3 Aug 2012 20:08:19 -0400
>>>>>>>>> "J. Bruce Fields" <bfields@fieldses.org> wrote:
>>>>>>>>>
>>>>>>>>>> I'm getting
>>>>>>>>>>
>>>>>>>>>> 	# mount -tnfs -onfsvers=4 pip1:/exports /mnt/
>>>>>>>>>>
>>>>>>>>>> (OK, admittedly that's with 3.6.0-rc1 + a few experimental patches, but
>>>>>>>>>> I doubt they're related.)
>>>>>>>>>>
>>>>>>>>>> Also:
>>>>>>>>>>
>>>>>>>>>> 	[root@pip2 ~]# modprobe nfs4
>>>>>>>>>> 	[root@pip2 ~]# lsmod|grep nfs4
>>>>>>>>>> 	[root@pip2 ~]# 
>>>>>>>>>>
>>>>>>>>>> --b.
>>>>>>>>>
>>>>>>>>> I hit the same problem...
>>>>>>>>>
>>>>>>>>> Try removing /usr/lib/modprobe.d/nfs.conf (assuming you're running
>>>>>>>>> Fedora).
>>>>>>>>
>>>>>>>> Oog, right.
>>>>>>>>
>>>>>>>> But, without testing--won't that make v4 mounts fail on older kernels?
>>>>>>>
>>>>>>> Actually, now that I look, this does not seem to break on older kernels
>>>>>>> as long as you use a syntax like:
>>>>>>>
>>>>>>>     # mount -t nfs server:/export /mnt/point -o vers=4
>>>>>>>
>>>>>>> ...if, however you use a syntax like:
>>>>>>>
>>>>>>>     # mount -t nfs4 server:/export /mnt/point
>>>>>>>
>>>>>>> ...then it fails without the above file in place. I guess the question
>>>>>>> we have to answer is: Do we want to continue to support the "-t nfs4"
>>>>>>> mount syntax?
>>>>>>
>>>>>> I think you're right that we want to deprecate it.
>>>>>>
>>>>>> Though this is a bit of a harsh way to do it--would have been nice to
>>>>>> have some transition period with a warning or something.
>>>>>
>>>>> I didn't expect this to be broken, both ways of mounting still work on my VMs so I expected them to work for everybody else too.
>>>>
>>>> Huh.  Just checked on an old kernel without an "alias nfs4 nfs" in
>>>> modprobe configuration, and sure enough I get "No such device".
>>>>
>>>> Maybe you have some initscripts or something else that's loading the
>>>> nfs module for you before the mount?
>>>
>>> My nfs-common daemon script loads sunrpc, nfs
>>
>> Yep, that's why you're not seeing it.
>>
>>> and nfsd but not nfs2, nfs3 or nfs4.
>>>
>>> Could we rename the module to avoid the alias name collision?  Something like this (untested) maybe?
>>
>> I don't think that will help.
> 
> It should if we also add back in
> 
> struct file_system_type nfs4_fs_type = {
>         .owner          = THIS_MODULE,
>         .name           = "nfs4",
>         .mount          = nfs_fs_mount,
>         .kill_sb        = nfs_kill_super,
>         .fs_flags       = FS_RENAME_DOES_D_MOVE|FS_REVAL_DOT|FS_BINARY_MOUNTDATA,
> };
> 
> and then add that to register_nfs_fs()/unregister_nfs_fs(). As far as I
> can see, that will trigger all the right incantations in
> nfs_validate_mount_data() to mount an NFSv4 filesystem.

So you're suggesting something like this?  I can split it into two patches for the final submission, one to rename the modules and one to move the nfs4_fs_type back to nfs.ko.

diff --git a/fs/nfs/Makefile b/fs/nfs/Makefile
index 8bf3a3f..b7db608 100644
--- a/fs/nfs/Makefile
+++ b/fs/nfs/Makefile
@@ -12,19 +12,19 @@ nfs-$(CONFIG_ROOT_NFS)	+= nfsroot.o
 nfs-$(CONFIG_SYSCTL)	+= sysctl.o
 nfs-$(CONFIG_NFS_FSCACHE) += fscache.o fscache-index.o
 
-obj-$(CONFIG_NFS_V2) += nfs2.o
-nfs2-y := nfs2super.o proc.o nfs2xdr.o
+obj-$(CONFIG_NFS_V2) += nfsv2.o
+nfsv2-y := nfs2super.o proc.o nfs2xdr.o
 
-obj-$(CONFIG_NFS_V3) += nfs3.o
-nfs3-y := nfs3super.o nfs3client.o nfs3proc.o nfs3xdr.o
-nfs3-$(CONFIG_NFS_V3_ACL) += nfs3acl.o
+obj-$(CONFIG_NFS_V3) += nfsv3.o
+nfsv3-y := nfs3super.o nfs3client.o nfs3proc.o nfs3xdr.o
+nfsv3-$(CONFIG_NFS_V3_ACL) += nfs3acl.o
 
-obj-$(CONFIG_NFS_V4) += nfs4.o
-nfs4-y := nfs4proc.o nfs4xdr.o nfs4state.o nfs4renewd.o nfs4super.o nfs4file.o \
+obj-$(CONFIG_NFS_V4) += nfsv4.o
+nfsv4-y := nfs4proc.o nfs4xdr.o nfs4state.o nfs4renewd.o nfs4super.o nfs4file.o \
 	  delegation.o idmap.o callback.o callback_xdr.o callback_proc.o \
 	  nfs4namespace.o nfs4getroot.o nfs4client.o
-nfs4-$(CONFIG_SYSCTL)	+= nfs4sysctl.o
-nfs4-$(CONFIG_NFS_V4_1)	+= pnfs.o pnfs_dev.o
+nfsv4-$(CONFIG_SYSCTL)	+= nfs4sysctl.o
+nfsv4-$(CONFIG_NFS_V4_1)	+= pnfs.o pnfs_dev.o
 
 obj-$(CONFIG_PNFS_FILE_LAYOUT) += nfs_layout_nfsv41_files.o
 nfs_layout_nfsv41_files-y := nfs4filelayout.o nfs4filelayoutdev.o
diff --git a/fs/nfs/client.c b/fs/nfs/client.c
index 9fc0d9d..9969444 100644
--- a/fs/nfs/client.c
+++ b/fs/nfs/client.c
@@ -105,7 +105,7 @@ struct nfs_subversion *get_nfs_version(unsigned int version)
 
 	if (IS_ERR(nfs)) {
 		mutex_lock(&nfs_version_mutex);
-		request_module("nfs%d", version);
+		request_module("nfsv%d", version);
 		nfs = find_nfs_version(version);
 		mutex_unlock(&nfs_version_mutex);
 	}
diff --git a/fs/nfs/nfs4_fs.h b/fs/nfs/nfs4_fs.h
index 19c1a56..43f4971 100644
--- a/fs/nfs/nfs4_fs.h
+++ b/fs/nfs/nfs4_fs.h
@@ -205,6 +205,9 @@ extern const struct dentry_operations nfs4_dentry_operations;
 int nfs_atomic_open(struct inode *, struct dentry *, struct file *,
 
+/* super.c */
+extern struct file_system_type nfs4_fs_type;
+
 /* nfs4namespace.c */
 rpc_authflavor_t nfs_find_best_sec(struct nfs4_secinfo_flavors *);
 struct rpc_clnt *nfs4_create_sec_client(struct rpc_clnt *, struct inode *, struct qstr *);
diff --git a/fs/nfs/nfs4super.c b/fs/nfs/nfs4super.c
index 12a31a9..bd61221 100644
--- a/fs/nfs/nfs4super.c
+++ b/fs/nfs/nfs4super.c
@@ -23,14 +23,6 @@ static struct dentry *nfs4_referral_mount(struct file_system_type *fs_type,
 static struct dentry *nfs4_remote_referral_mount(struct file_system_type *fs_type,
 	int flags, const char *dev_name, void *raw_data);
 
-static struct file_system_type nfs4_fs_type = {
-	.owner		= THIS_MODULE,
-	.name		= "nfs4",
-	.mount		= nfs_fs_mount,
-	.kill_sb	= nfs_kill_super,
-	.fs_flags	= FS_RENAME_DOES_D_MOVE|FS_REVAL_DOT|FS_BINARY_MOUNTDATA,
-};
-
 static struct file_system_type nfs4_remote_fs_type = {
 	.owner		= THIS_MODULE,
 	.name		= "nfs4",
@@ -344,14 +336,8 @@ static int __init init_nfs_v4(void)
 	if (err)
 		goto out1;
 
-	err = register_filesystem(&nfs4_fs_type);
-	if (err < 0)
-		goto out2;
-
 	register_nfs_version(&nfs_v4);
 	return 0;
-out2:
-	nfs4_unregister_sysctl();
 out1:
 	nfs_idmap_quit();
 out:
@@ -361,7 +347,6 @@ out:
 static void __exit exit_nfs_v4(void)
 {
 	unregister_nfs_version(&nfs_v4);
-	unregister_filesystem(&nfs4_fs_type);
 	nfs4_unregister_sysctl();
 	nfs_idmap_quit();
 }
diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index ac6a3c5..49b2dfa 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -319,6 +319,15 @@ EXPORT_SYMBOL_GPL(nfs_sops);
 static void nfs4_validate_mount_flags(struct nfs_parsed_mount_data *);
 static int nfs4_validate_mount_data(void *options,
 	struct nfs_parsed_mount_data *args, const char *dev_name);
+
+struct file_system_type nfs4_fs_type = {
+	.owner		= THIS_MODULE,
+	.name		= "nfs4",
+	.mount		= nfs_fs_mount,
+	.kill_sb	= nfs_kill_super,
+	.fs_flags	= FS_RENAME_DOES_D_MOVE|FS_REVAL_DOT|FS_BINARY_MOUNTDATA,
+};
+EXPORT_SYMBOL_GPL(nfs4_fs_type);
 #endif
 
 static struct shrinker acl_shrinker = {
@@ -326,6 +335,27 @@ static struct shrinker acl_shrinker = {
 	.seeks		= DEFAULT_SEEKS,
 };
 
+#if IS_ENABLED(CONFIG_NFS_V4)
+static int __init register_nfs4_fs(void)
+{
+	return register_filesystem(&nfs4_fs_type);
+}
+
+static void unregister_nfs4_fs(void)
+{
+	unregister_filesystem(&nfs4_fs_type);
+}
+#else
+static int __init register_nfs4_fs(void)
+{
+	return 0;
+}
+
+static void unregister_nfs4_fs(void)
+{
+}
+#endif /* CONFIG_NFS_V4 */
+
 /*
  * Register the NFS filesystems
  */
@@ -337,12 +367,18 @@ int __init register_nfs_fs(void)
 	if (ret < 0)
 		goto error_0;
 
-	ret = nfs_register_sysctl();
+	ret = register_nfs4_fs();
 	if (ret < 0)
 		goto error_1;
+
+	ret = nfs_register_sysctl();
+	if (ret < 0)
+		goto error_2;
 	register_shrinker(&acl_shrinker);
 	return 0;
 
+error_2:
+	unregister_nfs4_fs();
 error_1:
 	unregister_filesystem(&nfs_fs_type);
 error_0:
@@ -356,6 +392,7 @@ void __exit unregister_nfs_fs(void)
 {
 	unregister_shrinker(&acl_shrinker);
 	nfs_unregister_sysctl();
+	unregister_nfs4_fs();
 	unregister_filesystem(&nfs_fs_type);
 }
 


> 
>>>
>>>
>>>
>>> diff --git a/fs/nfs/Makefile b/fs/nfs/Makefile
>>> index 8bf3a3f..b7db608 100644
>>> --- a/fs/nfs/Makefile
>>> +++ b/fs/nfs/Makefile
>>> @@ -12,19 +12,19 @@ nfs-$(CONFIG_ROOT_NFS)      += nfsroot.o
>>>  nfs-$(CONFIG_SYSCTL)   += sysctl.o
>>>  nfs-$(CONFIG_NFS_FSCACHE) += fscache.o fscache-index.o
>>>  
>>> -obj-$(CONFIG_NFS_V2) += nfs2.o
>>> -nfs2-y := nfs2super.o proc.o nfs2xdr.o
>>> +obj-$(CONFIG_NFS_V2) += nfsv2.o
>>> +nfsv2-y := nfs2super.o proc.o nfs2xdr.o
>>>  
>>> -obj-$(CONFIG_NFS_V3) += nfs3.o
>>> -nfs3-y := nfs3super.o nfs3client.o nfs3proc.o nfs3xdr.o
>>> -nfs3-$(CONFIG_NFS_V3_ACL) += nfs3acl.o
>>> +obj-$(CONFIG_NFS_V3) += nfsv3.o
>>> +nfsv3-y := nfs3super.o nfs3client.o nfs3proc.o nfs3xdr.o
>>> +nfsv3-$(CONFIG_NFS_V3_ACL) += nfs3acl.o
>>>  
>>> -obj-$(CONFIG_NFS_V4) += nfs4.o
>>> -nfs4-y := nfs4proc.o nfs4xdr.o nfs4state.o nfs4renewd.o nfs4super.o nfs4file.o \
>>> +obj-$(CONFIG_NFS_V4) += nfsv4.o
>>> +nfsv4-y := nfs4proc.o nfs4xdr.o nfs4state.o nfs4renewd.o nfs4super.o nfs4file.o \
>>>           delegation.o idmap.o callback.o callback_xdr.o callback_proc.o \
>>>           nfs4namespace.o nfs4getroot.o nfs4client.o
>>> -nfs4-$(CONFIG_SYSCTL)  += nfs4sysctl.o
>>> -nfs4-$(CONFIG_NFS_V4_1)        += pnfs.o pnfs_dev.o
>>> +nfsv4-$(CONFIG_SYSCTL) += nfs4sysctl.o
>>> +nfsv4-$(CONFIG_NFS_V4_1)       += pnfs.o pnfs_dev.o
>>>  
>>>  obj-$(CONFIG_PNFS_FILE_LAYOUT) += nfs_layout_nfsv41_files.o
>>>  nfs_layout_nfsv41_files-y := nfs4filelayout.o nfs4filelayoutdev.o
>>> diff --git a/fs/nfs/client.c b/fs/nfs/client.c
>>> index 9fc0d9d..9969444 100644
>>> --- a/fs/nfs/client.c
>>> +++ b/fs/nfs/client.c
>>> @@ -105,7 +105,7 @@ struct nfs_subversion *get_nfs_version(unsigned int version)
>>>  
>>>         if (IS_ERR(nfs)) {
>>>                 mutex_lock(&nfs_version_mutex);
>>> -               request_module("nfs%d", version);
>>> +               request_module("nfsv%d", version);
>>>                 nfs = find_nfs_version(version);
>>>                 mutex_unlock(&nfs_version_mutex);
>>>         }
>>>
>>>
>>>>
>>>> --b.
>>>>
>>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* Re: nfs4 mounts failing with 3.6.0-rc1
  2012-08-08 14:42                   ` Bryan Schumaker
@ 2012-08-08 15:08                     ` Myklebust, Trond
  2012-08-08 15:15                       ` Bryan Schumaker
  0 siblings, 1 reply; 19+ messages in thread
From: Myklebust, Trond @ 2012-08-08 15:08 UTC (permalink / raw)
  To: Schumaker, Bryan
  Cc: J. Bruce Fields, Schumaker, Bryan, Jeff Layton, linux-nfs

T24gV2VkLCAyMDEyLTA4LTA4IGF0IDEwOjQyIC0wNDAwLCBCcnlhbiBTY2h1bWFrZXIgd3JvdGU6
DQo+IFNvIHlvdSdyZSBzdWdnZXN0aW5nIHNvbWV0aGluZyBsaWtlIHRoaXM/IC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thread

* Re: nfs4 mounts failing with 3.6.0-rc1
  2012-08-08 15:08                     ` Myklebust, Trond
@ 2012-08-08 15:15                       ` Bryan Schumaker
  2012-08-08 15:24                         ` Myklebust, Trond
  0 siblings, 1 reply; 19+ messages in thread
From: Bryan Schumaker @ 2012-08-08 15:15 UTC (permalink / raw)
  To: Myklebust, Trond
  Cc: Schumaker, Bryan, J. Bruce Fields, Jeff Layton, linux-nfs

On 08/08/2012 11:08 AM, Myklebust, Trond wrote:
> On Wed, 2012-08-08 at 10:42 -0400, Bryan Schumaker wrote:
>> So you're suggesting something like this?  I can split it into two patches for the final submission, one to rename the modules and one to move the nfs4_fs_type back to nfs.ko.
> 
> One patch should suffice, since you can't split this up into something
> that fixes both issues.
> 
> Then maybe we can add a separate patch with a MODULE_ALIAS("nfs4") so
> that distros can start removing the /etc/modprobe.conf alias entries.

Sure.  That goes in the v4 module?

> 
>> diff --git a/fs/nfs/Makefile b/fs/nfs/Makefile
>> index 8bf3a3f..b7db608 100644
>> --- a/fs/nfs/Makefile
>> +++ b/fs/nfs/Makefile
>> @@ -12,19 +12,19 @@ nfs-$(CONFIG_ROOT_NFS)	+= nfsroot.o
>>  nfs-$(CONFIG_SYSCTL)	+= sysctl.o
>>  nfs-$(CONFIG_NFS_FSCACHE) += fscache.o fscache-index.o
>>  
>> -obj-$(CONFIG_NFS_V2) += nfs2.o
>> -nfs2-y := nfs2super.o proc.o nfs2xdr.o
>> +obj-$(CONFIG_NFS_V2) += nfsv2.o
>> +nfsv2-y := nfs2super.o proc.o nfs2xdr.o
>>  
>> -obj-$(CONFIG_NFS_V3) += nfs3.o
>> -nfs3-y := nfs3super.o nfs3client.o nfs3proc.o nfs3xdr.o
>> -nfs3-$(CONFIG_NFS_V3_ACL) += nfs3acl.o
>> +obj-$(CONFIG_NFS_V3) += nfsv3.o
>> +nfsv3-y := nfs3super.o nfs3client.o nfs3proc.o nfs3xdr.o
>> +nfsv3-$(CONFIG_NFS_V3_ACL) += nfs3acl.o
>>  
>> -obj-$(CONFIG_NFS_V4) += nfs4.o
>> -nfs4-y := nfs4proc.o nfs4xdr.o nfs4state.o nfs4renewd.o nfs4super.o nfs4file.o \
>> +obj-$(CONFIG_NFS_V4) += nfsv4.o
>> +nfsv4-y := nfs4proc.o nfs4xdr.o nfs4state.o nfs4renewd.o nfs4super.o nfs4file.o \
>>  	  delegation.o idmap.o callback.o callback_xdr.o callback_proc.o \
>>  	  nfs4namespace.o nfs4getroot.o nfs4client.o
>> -nfs4-$(CONFIG_SYSCTL)	+= nfs4sysctl.o
>> -nfs4-$(CONFIG_NFS_V4_1)	+= pnfs.o pnfs_dev.o
>> +nfsv4-$(CONFIG_SYSCTL)	+= nfs4sysctl.o
>> +nfsv4-$(CONFIG_NFS_V4_1)	+= pnfs.o pnfs_dev.o
>>  
>>  obj-$(CONFIG_PNFS_FILE_LAYOUT) += nfs_layout_nfsv41_files.o
>>  nfs_layout_nfsv41_files-y := nfs4filelayout.o nfs4filelayoutdev.o
>> diff --git a/fs/nfs/client.c b/fs/nfs/client.c
>> index 9fc0d9d..9969444 100644
>> --- a/fs/nfs/client.c
>> +++ b/fs/nfs/client.c
>> @@ -105,7 +105,7 @@ struct nfs_subversion *get_nfs_version(unsigned int version)
>>  
>>  	if (IS_ERR(nfs)) {
>>  		mutex_lock(&nfs_version_mutex);
>> -		request_module("nfs%d", version);
>> +		request_module("nfsv%d", version);
>>  		nfs = find_nfs_version(version);
>>  		mutex_unlock(&nfs_version_mutex);
>>  	}
>> diff --git a/fs/nfs/nfs4_fs.h b/fs/nfs/nfs4_fs.h
>> index 19c1a56..43f4971 100644
>> --- a/fs/nfs/nfs4_fs.h
>> +++ b/fs/nfs/nfs4_fs.h
>> @@ -205,6 +205,9 @@ extern const struct dentry_operations nfs4_dentry_operations;
>>  int nfs_atomic_open(struct inode *, struct dentry *, struct file *,
>>  
>> +/* super.c */
>> +extern struct file_system_type nfs4_fs_type;
>> +
>>  /* nfs4namespace.c */
>>  rpc_authflavor_t nfs_find_best_sec(struct nfs4_secinfo_flavors *);
>>  struct rpc_clnt *nfs4_create_sec_client(struct rpc_clnt *, struct inode *, struct qstr *);
>> diff --git a/fs/nfs/nfs4super.c b/fs/nfs/nfs4super.c
>> index 12a31a9..bd61221 100644
>> --- a/fs/nfs/nfs4super.c
>> +++ b/fs/nfs/nfs4super.c
>> @@ -23,14 +23,6 @@ static struct dentry *nfs4_referral_mount(struct file_system_type *fs_type,
>>  static struct dentry *nfs4_remote_referral_mount(struct file_system_type *fs_type,
>>  	int flags, const char *dev_name, void *raw_data);
>>  
>> -static struct file_system_type nfs4_fs_type = {
>> -	.owner		= THIS_MODULE,
>> -	.name		= "nfs4",
>> -	.mount		= nfs_fs_mount,
>> -	.kill_sb	= nfs_kill_super,
>> -	.fs_flags	= FS_RENAME_DOES_D_MOVE|FS_REVAL_DOT|FS_BINARY_MOUNTDATA,
>> -};
>> -
>>  static struct file_system_type nfs4_remote_fs_type = {
>>  	.owner		= THIS_MODULE,
>>  	.name		= "nfs4",
>> @@ -344,14 +336,8 @@ static int __init init_nfs_v4(void)
>>  	if (err)
>>  		goto out1;
>>  
>> -	err = register_filesystem(&nfs4_fs_type);
>> -	if (err < 0)
>> -		goto out2;
>> -
>>  	register_nfs_version(&nfs_v4);
>>  	return 0;
>> -out2:
>> -	nfs4_unregister_sysctl();
>>  out1:
>>  	nfs_idmap_quit();
>>  out:
>> @@ -361,7 +347,6 @@ out:
>>  static void __exit exit_nfs_v4(void)
>>  {
>>  	unregister_nfs_version(&nfs_v4);
>> -	unregister_filesystem(&nfs4_fs_type);
>>  	nfs4_unregister_sysctl();
>>  	nfs_idmap_quit();
>>  }
>> diff --git a/fs/nfs/super.c b/fs/nfs/super.c
>> index ac6a3c5..49b2dfa 100644
>> --- a/fs/nfs/super.c
>> +++ b/fs/nfs/super.c
>> @@ -319,6 +319,15 @@ EXPORT_SYMBOL_GPL(nfs_sops);
>>  static void nfs4_validate_mount_flags(struct nfs_parsed_mount_data *);
>>  static int nfs4_validate_mount_data(void *options,
>>  	struct nfs_parsed_mount_data *args, const char *dev_name);
>> +
>> +struct file_system_type nfs4_fs_type = {
>> +	.owner		= THIS_MODULE,
>> +	.name		= "nfs4",
>> +	.mount		= nfs_fs_mount,
>> +	.kill_sb	= nfs_kill_super,
>> +	.fs_flags	= FS_RENAME_DOES_D_MOVE|FS_REVAL_DOT|FS_BINARY_MOUNTDATA,
>> +};
>> +EXPORT_SYMBOL_GPL(nfs4_fs_type);
>>  #endif
>>  
>>  static struct shrinker acl_shrinker = {
>> @@ -326,6 +335,27 @@ static struct shrinker acl_shrinker = {
>>  	.seeks		= DEFAULT_SEEKS,
>>  };
>>  
>> +#if IS_ENABLED(CONFIG_NFS_V4)
>> +static int __init register_nfs4_fs(void)
>> +{
>> +	return register_filesystem(&nfs4_fs_type);
>> +}
>> +
>> +static void unregister_nfs4_fs(void)
>> +{
>> +	unregister_filesystem(&nfs4_fs_type);
>> +}
>> +#else
>> +static int __init register_nfs4_fs(void)
>> +{
>> +	return 0;
>> +}
>> +
>> +static void unregister_nfs4_fs(void)
>> +{
>> +}
>> +#endif /* CONFIG_NFS_V4 */
> 
> Why not put these helpers in the same section as the declaration of
> nfs4_fs_type?

Because I had scrolled away from that section of code when I was writing these functions.  I'll move them...

- Bryan

> 
>> +
>>  /*
>>   * Register the NFS filesystems
>>   */
>> @@ -337,12 +367,18 @@ int __init register_nfs_fs(void)
>>  	if (ret < 0)
>>  		goto error_0;
>>  
>> -	ret = nfs_register_sysctl();
>> +	ret = register_nfs4_fs();
>>  	if (ret < 0)
>>  		goto error_1;
>> +
>> +	ret = nfs_register_sysctl();
>> +	if (ret < 0)
>> +		goto error_2;
>>  	register_shrinker(&acl_shrinker);
>>  	return 0;
>>  
>> +error_2:
>> +	unregister_nfs4_fs();
>>  error_1:
>>  	unregister_filesystem(&nfs_fs_type);
>>  error_0:
>> @@ -356,6 +392,7 @@ void __exit unregister_nfs_fs(void)
>>  {
>>  	unregister_shrinker(&acl_shrinker);
>>  	nfs_unregister_sysctl();
>> +	unregister_nfs4_fs();
>>  	unregister_filesystem(&nfs_fs_type);
>>  }
>>  
> 


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: nfs4 mounts failing with 3.6.0-rc1
  2012-08-08 15:15                       ` Bryan Schumaker
@ 2012-08-08 15:24                         ` Myklebust, Trond
  2012-08-08 15:25                           ` Bryan Schumaker
  0 siblings, 1 reply; 19+ messages in thread
From: Myklebust, Trond @ 2012-08-08 15:24 UTC (permalink / raw)
  To: Schumaker, Bryan
  Cc: Schumaker, Bryan, J. Bruce Fields, Jeff Layton, linux-nfs

T24gV2VkLCAyMDEyLTA4LTA4IGF0IDExOjE1IC0wNDAwLCBCcnlhbiBTY2h1bWFrZXIgd3JvdGU6
DQo+IE9uIDA4LzA4LzIwMTIgMTE6MDggQU0sIE15a2xlYnVzdCwgVHJvbmQgd3JvdGU6DQo+ID4g
T24gV2VkLCAyMDEyLTA4LTA4IGF0IDEwOjQyIC0wNDAwLCBCcnlhbiBTY2h1bWFrZXIgd3JvdGU6
DQo+ID4+IFNvIHlvdSdyZSBzdWdnZXN0aW5nIHNvbWV0aGluZyBsaWtlIHRoaXM/ICBJIGNhbiBz
cGxpdCBpdCBpbnRvIHR3byBwYXRjaGVzIGZvciB0aGUgZmluYWwgc3VibWlzc2lvbiwgb25lIHRv
IHJlbmFtZSB0aGUgbW9kdWxlcyBhbmQgb25lIHRvIG1vdmUgdGhlIG5mczRfZnNfdHlwZSBiYWNr
IHRvIG5mcy5rby4NCj4gPiANCj4gPiBPbmUgcGF0Y2ggc2hvdWxkIHN1ZmZpY2UsIHNpbmNlIHlv
dSBjYW4ndCBzcGxpdCB0aGlzIHVwIGludG8gc29tZXRoaW5nDQo+ID4gdGhhdCBmaXhlcyBib3Ro
IGlzc3Vlcy4NCj4gPiANCj4gPiBUaGVuIG1heWJlIHdlIGNhbiBhZGQgYSBzZXBhcmF0ZSBwYXRj
aCB3aXRoIGEgTU9EVUxFX0FMSUFTKCJuZnM0Iikgc28NCj4gPiB0aGF0IGRpc3Ryb3MgY2FuIHN0
YXJ0IHJlbW92aW5nIHRoZSAvZXRjL21vZHByb2JlLmNvbmYgYWxpYXMgZW50cmllcy4NCj4gDQo+
IFN1cmUuICBUaGF0IGdvZXMgaW4gdGhlIHY0IG1vZHVsZT8NCg0KTm8uIFRoZSBuZnMgbW9kdWxl
LCBzaW5jZSB0aGF0IGlzIHdoYXQgY2FsbHMgcmVnaXN0ZXJfbmZzNF9mcygpLi4uDQoNCi0tIA0K
VHJvbmQgTXlrbGVidXN0DQpMaW51eCBORlMgY2xpZW50IG1haW50YWluZXINCg0KTmV0QXBwDQpU
cm9uZC5NeWtsZWJ1c3RAbmV0YXBwLmNvbQ0Kd3d3Lm5ldGFwcC5jb20NCg0K

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: nfs4 mounts failing with 3.6.0-rc1
  2012-08-08 15:24                         ` Myklebust, Trond
@ 2012-08-08 15:25                           ` Bryan Schumaker
  0 siblings, 0 replies; 19+ messages in thread
From: Bryan Schumaker @ 2012-08-08 15:25 UTC (permalink / raw)
  To: Myklebust, Trond
  Cc: Schumaker, Bryan, J. Bruce Fields, Jeff Layton, linux-nfs

On 08/08/2012 11:24 AM, Myklebust, Trond wrote:
> On Wed, 2012-08-08 at 11:15 -0400, Bryan Schumaker wrote:
>> On 08/08/2012 11:08 AM, Myklebust, Trond wrote:
>>> On Wed, 2012-08-08 at 10:42 -0400, Bryan Schumaker wrote:
>>>> So you're suggesting something like this?  I can split it into two patches for the final submission, one to rename the modules and one to move the nfs4_fs_type back to nfs.ko.
>>>
>>> One patch should suffice, since you can't split this up into something
>>> that fixes both issues.
>>>
>>> Then maybe we can add a separate patch with a MODULE_ALIAS("nfs4") so
>>> that distros can start removing the /etc/modprobe.conf alias entries.
>>
>> Sure.  That goes in the v4 module?
> 
> No. The nfs module, since that is what calls register_nfs4_fs()...
> 

Ok.  I'm testing patch 1 now, I'll add in the alias next.

- Bryan

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2012-08-08 15:25 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-04  0:08 nfs4 mounts failing with 3.6.0-rc1 J. Bruce Fields
2012-08-04  2:00 ` Jeff Layton
2012-08-04 19:01   ` J. Bruce Fields
2012-08-04 20:02     ` Jeff Layton
2012-08-07 17:09     ` Jeff Layton
2012-08-07 19:42       ` J. Bruce Fields
2012-08-07 19:44         ` Bryan Schumaker
2012-08-07 19:57           ` J. Bruce Fields
2012-08-07 20:10             ` Bryan Schumaker
2012-08-07 20:25               ` J. Bruce Fields
2012-08-07 21:23                 ` Myklebust, Trond
2012-08-07 22:26                   ` Jeff Layton
2012-08-07 22:36                     ` Myklebust, Trond
2012-08-08 11:48                       ` Jeff Layton
2012-08-08 14:42                   ` Bryan Schumaker
2012-08-08 15:08                     ` Myklebust, Trond
2012-08-08 15:15                       ` Bryan Schumaker
2012-08-08 15:24                         ` Myklebust, Trond
2012-08-08 15:25                           ` Bryan Schumaker

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.