[Bug 712181] New: quota for nfs4 mount returns no data from Solaris server
https://bugzilla.novell.com/show_bug.cgi?id=712181 https://bugzilla.novell.com/show_bug.cgi?id=712181#c0 Summary: quota for nfs4 mount returns no data from Solaris server Classification: openSUSE Product: openSUSE 11.4 Version: Factory Platform: All OS/Version: openSUSE 11.4 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: steve@math.tamu.edu QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux i686; rv:5.0) Gecko/20100101 Firefox/5.0 When using nfs4 to mount a filesystem from a Solaris 11 server with user quotas, the Linux quota command returns no data from the Solaris rquotad. This works between a Linux client and Linux server. It also works to the Solaris server using nfs3. Reproducible: Always Steps to Reproduce: 1. Solaris: zfs set userquota@myname=3g dpool/export/home 2. Solaris: share -F nfs -o rw=lnxclient /export/home 3. Linux: mount -o rw,vers=4 solaris:/export/home /home 4. Linux: quota -v myname [ returns nothing ] Actual Results: Nothing. Expected Results: Standard quota output. The problem is in this section of code in the the rpc_rquota_get function in rquota_client.c: /* For NFSv4, we send the filesystem path without initial /. Server prepends proper * NFS pseudoroot automatically and uses this for detection of NFSv4 mounts. */ if ((dquot->dq_h->qh_io_flags & IOFL_NFS_MIXED_PATHS) && !strcmp(dquot->dq_h->qh_fstype, MNTTYPE_NFS4)) { while (*pathname == '/') pathname++; } A truss on the Solaris rquotad shows that it indeed receives the path without the leading '/' and proceeds to return nothing to the client. We've patched our local installation by deleting these lines and quota on the nfs4 mount behaves properly. It also works correctly to a Linux NFS server. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=712181 https://bugzilla.novell.com/show_bug.cgi?id=712181#c zj jia <zjjia@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zjjia@novell.com AssignedTo|bnc-team-screening@forge.pr |nfbrown@novell.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=712181 https://bugzilla.novell.com/show_bug.cgi?id=712181#c1 Neil Brown <nfbrown@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO CC| |jack@novell.com InfoProvider| |steve@math.tamu.edu --- Comment #1 from Neil Brown <nfbrown@novell.com> 2011-08-16 22:11:31 UTC --- That is strange. The way I read the code, that piece of code should only be active if you pass the "-m" flag to 'quota'. Do you perhaps have an alias for 'quota' which adds "-m" ?? If you use the explicit path: /usr/bin/quota -v myname does it behave the same way? Jan: This is probably for you - care to take it? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=712181 https://bugzilla.novell.com/show_bug.cgi?id=712181#c2 --- Comment #2 from Jan Kara <jack@novell.com> 2011-08-16 22:44:53 UTC --- You actually read the code the other way around ;). Anyway, Steve, in such environment you should run quota with -m option and everything should work... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=712181 https://bugzilla.novell.com/show_bug.cgi?id=712181#c3 --- Comment #3 from Steve Johnson <steve@math.tamu.edu> 2011-08-16 23:18:28 UTC --- Indeed, the -m option works. I can either alias the quota command or wrap it in a script as a workaround for playing with Solaris nfs4 servers. Looking at quota.c and quotaio.c, the IOFL_NFS_MIXED_PATHS is set by default in and the -m option (--no-mixed-pathnames) shuts it off. FWIW, the Linux quota man page may be a bit off: "setquota will always send paths with a trailing slash." That may be true, but for the -m case in the man page: 1) "setquota" - should probably just be "quota" 2) "trailing" - should probably be "leading" Thanks for the help and clarification. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=712181 https://bugzilla.novell.com/show_bug.cgi?id=712181#c4 --- Comment #4 from Jan Kara <jack@novell.com> 2011-08-17 09:11:06 UTC --- Created an attachment (id=446136) --> (http://bugzilla.novell.com/attachment.cgi?id=446136) Patch fixing bug in quota.1 documentation Here is a patch that fixed the problem upstream. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=712181 https://bugzilla.novell.com/show_bug.cgi?id=712181#c5 Jan Kara <jack@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- InfoProvider|steve@math.tamu.edu |vcizek@novell.com --- Comment #5 from Jan Kara <jack@novell.com> 2011-08-17 09:12:32 UTC --- Vita, could you please include above documentation fix in SLE11 SP1/SP2 quota package? Thanks. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=712181 https://bugzilla.novell.com/show_bug.cgi?id=712181#c7 Jan Kara <jack@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #7 from Jan Kara <jack@novell.com> 2011-08-17 16:29:35 UTC --- OK, next openSUSE release will get this documentation fix from upstream, the fix has been added to SLE11SP2 as well. Closing the bug. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com