Lukas Hejtmanek | 2 Sep 12:47 2008
Picon

NFSv4 over RDMA

Hello,

should RDMA and Kerberos authentication work?

Anyway, this or similar patch (against 2.6.26.3) should be applied 
otherwise Ctrl-c of mount.nfs4 causes an oops when rdma has been requested.

--- a/net/sunrpc/xprtrdma/verbs.c	2008-09-02 12:45:44.900009820 +0200
+++ b/net/sunrpc/xprtrdma/verbs.c	2008-09-02 12:25:56.363842595 +0200
 <at>  <at>  -135,7 +135,8  <at>  <at> 
 		__func__, event->event, event->device->name, context);
 	if (ep->rep_connected == 1) {
 		ep->rep_connected = -EIO;
-		ep->rep_func(ep);
+		if(ep->rep_func)
+			ep->rep_func(ep);
 		wake_up_all(&ep->rep_connect_wait);
 	}
 }

--

-- 
Lukáš Hejtmánek
J. Bruce Fields | 2 Sep 17:59 2008

Re: NFSv4 over RDMA

On Tue, Sep 02, 2008 at 12:47:50PM +0200, Lukas Hejtmanek wrote:
> Hello,
> 
> should RDMA and Kerberos authentication work?

Good question...

> Anyway, this or similar patch (against 2.6.26.3) should be applied 
> otherwise Ctrl-c of mount.nfs4 causes an oops when rdma has been requested.

... but yes, we shouldn't oops!

--b.

> 
> --- a/net/sunrpc/xprtrdma/verbs.c	2008-09-02 12:45:44.900009820 +0200
> +++ b/net/sunrpc/xprtrdma/verbs.c	2008-09-02 12:25:56.363842595 +0200
>  <at>  <at>  -135,7 +135,8  <at>  <at> 
>  		__func__, event->event, event->device->name, context);
>  	if (ep->rep_connected == 1) {
>  		ep->rep_connected = -EIO;
> -		ep->rep_func(ep);
> +		if(ep->rep_func)
> +			ep->rep_func(ep);
>  		wake_up_all(&ep->rep_connect_wait);
>  	}
>  }
> 
> 
> -- 
(Continue reading)

Laurent Dormoy | 3 Sep 15:54 2008
Picon

Fwd: Re: ACLs over NFSv4 with standard kernel and acl tools

Hello Bruce,

So you think there's no way I can use nfsv4 acls with this editor (I mean, to 
find a way to resolve my problem)?

Using the nfs4-acl-editor, I get "Operator to request attribute not supported" 
in the shell, while it displays: "ERROR: file not found, or perhaps it's not 
on an NFSv4 mount".

Laurent

On Thursday 28 August 2008 15:21:36 you wrote:
> On Thu, Aug 28, 2008 at 09:41:44AM +0200, Laurent Dormoy wrote:
> > I understand that it's not working to set nfsv4 ACLs, but I thought
> > POSIX ACLs would still be available.
>
> No.  Not without patching libacl.
>
> > And even when I try to set nfsv4 ACLs using the nfs4_setfacl or
> > nfs4_editfacl or nfs4-acl-editor, it justs brings me a "Operation to
> > request an attribute not supported" (not sure of the exact sentence, but
> > it looked like that).
>
> OK, that's a bug.
>
> > So ,if I understand correctly, once I'm using NFSv4 (at its current state
> > of development), I cannot use POSIX ACLs on my imported directories ?
>
> The NFSv4 protocol has no support for POSIX ACLs.  If you want to use
> getfacl/setfacl, you have to patch libacl.
(Continue reading)

david m. richter | 3 Sep 16:51 2008
Picon

Re: Fwd: Re: ACLs over NFSv4 with standard kernel and acl tools

On Wed, 3 Sep 2008, Laurent Dormoy wrote:

> Hello Bruce,
> 
> So you think there's no way I can use nfsv4 acls with this editor (I mean, to 
> find a way to resolve my problem)?
> 
> Using the nfs4-acl-editor, I get "Operator to request attribute not supported" 
> in the shell, while it displays: "ERROR: file not found, or perhaps it's not 
> on an NFSv4 mount".

	hello, laurent,

	just to jump in here, i'm curious: did nfs4_getfacl and 
nfs4_setfacl ever work for you?  if they didn't, then the GUI tool 
definitely won't work.  anyway, that's the first thing to check -- please 
let me know.  if those tools do work for you, then it's likely a bug in 
the GUI tool.

[an aside about the GUI tool]
	as to the GUI tool, i should say that nfs4-acl-editor is basically 
just a prototype.  the version of Qt that was out when i started hacking 
on the tool had some bizarre issue with one or two of the main GUI 
components (they'd taken something out, and i think it's since gone back 
in) -- the upshot is that managing the GUI with that specific version of 
the API was way more complicated than something that trivial should've 
been.  time ran short, there was more work to do on the "real" tools (the 
commandline ones), and at the time it wasn't time-efficient to put more 
effort into a tool that wasn't a primary part of the contract.

(Continue reading)

J. Bruce Fields | 3 Sep 16:54 2008

Re: Fwd: Re: ACLs over NFSv4 with standard kernel and acl tools

On Wed, Sep 03, 2008 at 03:54:26PM +0200, Laurent Dormoy wrote:
> Hello Bruce,
> 
> So you think there's no way I can use nfsv4 acls with this editor (I mean, to 
> find a way to resolve my problem)?
> 
> Using the nfs4-acl-editor, I get "Operator to request attribute not supported" 
> in the shell, while it displays: "ERROR: file not found, or perhaps it's not 
> on an NFSv4 mount".

If nfs4_getfacl is failing that way, then something is quite wrong....
Some possible debugging steps:

	- Look at the output of mount, make sure that the filesystem you
	  are requeusting this from is actually type "nfs4" (and not
	  just "nfs")
	- Run nfs4_getfacl under strace, and look for the "getxattr"
	  call.  Check which error it's returning.
	- Run wireshark while running nfs4_getfacl, check that a GETATTR
	  operation for the acl attribute goes across the wire, and if so,
	  check what error it gets back from the server.

--b.
Laurent Dormoy | 3 Sep 17:20 2008
Picon

Re: Fwd: Re: ACLs over NFSv4 with standard kernel and acl tools

Hi David,

Yes I already tried before with nfs4_setfacl. Just to be sure I'm not 
misundertanding the use of this command, here's an example of what I tried:

user <at> pc:/import/folder> nfs4_setfacl -a A::user <at> domainname.intern:rx test_file
Operation to request attribute not supported.
Failed to instantiate ACL.

I use the development you suggested me last time, but I had the same error 
with the previous 0.3.2 version.

I precise one more time that my fstab, exports files are correct (mount 
command displays nfs4 for the imported filesystem) and daemons are all 
launched, according to the numerous documentations I read :-)

I'll try now Bruce's tricks with tcpdump and strace.

Thanks for your help,

Laurent

On Wednesday 03 September 2008 16:51:42 you wrote:
> On Wed, 3 Sep 2008, Laurent Dormoy wrote:
> > Hello Bruce,
> >
> > So you think there's no way I can use nfsv4 acls with this editor (I
> > mean, to find a way to resolve my problem)?
> >
> > Using the nfs4-acl-editor, I get "Operator to request attribute not
(Continue reading)

david m. richter | 3 Sep 17:33 2008
Picon

Re: Fwd: Re: ACLs over NFSv4 with standard kernel and acl tools

On Wed, 3 Sep 2008, Laurent Dormoy wrote:

> Hi David,
> 
> Yes I already tried before with nfs4_setfacl. Just to be sure I'm not 

	oh okay, i'm sorry if i missed that..

> misundertanding the use of this command, here's an example of what I tried:
> 
> user <at> pc:/import/folder> nfs4_setfacl -a A::user <at> domainname.intern:rx test_file
> Operation to request attribute not supported.
> Failed to instantiate ACL.

	i see -- nope, you're not misunderstanding it at all.  i imagine 
that you get the same basic error with nfs4_getfacl.

 
> I use the development you suggested me last time, but I had the same error 
> with the previous 0.3.2 version.

	okay, so it looks like all the evidence is pointing to some kind 
of configuration issue.  thanks for going to the trouble to try out the 
new code, though! :)

> I precise one more time that my fstab, exports files are correct (mount 
> command displays nfs4 for the imported filesystem) and daemons are all 
> launched, according to the numerous documentations I read :-)
> 
> I'll try now Bruce's tricks with tcpdump and strace.
(Continue reading)

Laurent Dormoy | 3 Sep 17:50 2008
Picon

Re: Fwd: Re: ACLs over NFSv4 with standard kernel and acl tools

Talking about your development version, when compiling the GUI source, I got 
an error related to strlcpy (line 573 of nfs4acleditor.cpp), and found no 
opensuse official rpm providing it.

Si I just replaced it in the code with strncpy (I read that strlcpy was used 
in openBSD), in case it's not supported by Linux. Maybe I just didn't take 
the time to look for the correct rpm or source :-)

Laurent

On Wednesday 03 September 2008 17:33:03 david m. richter wrote:
> On Wed, 3 Sep 2008, Laurent Dormoy wrote:
> > Hi David,
> >
> > Yes I already tried before with nfs4_setfacl. Just to be sure I'm not
>
> 	oh okay, i'm sorry if i missed that..
>
> > misundertanding the use of this command, here's an example of what I
> > tried:
> >
> > user <at> pc:/import/folder> nfs4_setfacl -a A::user <at> domainname.intern:rx
> > test_file Operation to request attribute not supported.
> > Failed to instantiate ACL.
>
> 	i see -- nope, you're not misunderstanding it at all.  i imagine
> that you get the same basic error with nfs4_getfacl.
>
> > I use the development you suggested me last time, but I had the same
> > error with the previous 0.3.2 version.
(Continue reading)

david m. richter | 3 Sep 17:54 2008
Picon

Re: Fwd: Re: ACLs over NFSv4 with standard kernel and acl tools

On Wed, Sep 3, 2008 at 11:50 AM, Laurent Dormoy <dormoy <at> rapideye.de> wrote:
> Talking about your development version, when compiling the GUI source, I got
> an error related to strlcpy (line 573 of nfs4acleditor.cpp), and found no
> opensuse official rpm providing it.
>
> Si I just replaced it in the code with strncpy (I read that strlcpy was used
> in openBSD), in case it's not supported by Linux. Maybe I just didn't take
> the time to look for the correct rpm or source :-)

well thank you, i'll go fix that in the git repo.  :)

thanks, d.

>
> Laurent
>
> On Wednesday 03 September 2008 17:33:03 david m. richter wrote:
>> On Wed, 3 Sep 2008, Laurent Dormoy wrote:
>> > Hi David,
>> >
>> > Yes I already tried before with nfs4_setfacl. Just to be sure I'm not
>>
>>       oh okay, i'm sorry if i missed that..
>>
>> > misundertanding the use of this command, here's an example of what I
>> > tried:
>> >
>> > user <at> pc:/import/folder> nfs4_setfacl -a A::user <at> domainname.intern:rx
>> > test_file Operation to request attribute not supported.
>> > Failed to instantiate ACL.
(Continue reading)

Jan Sievers | 3 Sep 18:35 2008
Picon
Picon

Re: Strange NFSv4 issue on Debian Etch

Hi Bruce, hi Trond, hi all,

J. Bruce Fields wrote:
>> There is only *one* OPEN of the first 'cat file'.
>> Here is the Sequence:
>>
>> Server: echo "DATA" > file
>> Client: ls -l
>>  PUTFH (dir)
>>  READDIR
>>
>> Client: ls -li file
>>  PUTFH (dir)
>>  LOOKUP
>>  GETFH
>>  GETATTR
>>  +
>>  PUTFH (file)
>>  GETATTR
>>
>> Client: cat file
>>  PUTFH (dir)
>>  SAVEFH
>>  OPEN Filename: file (Reply: OPEN_DELEGATION_NONE)
>>  GETFH
>>  GETATTR
>>  RESTOREFH
>>  GETATTR
>>  +
>>  PUTFH (file)
(Continue reading)


Gmane