From: J. Bruce Fields Date: Fri, 30 Nov 2007 21:55:23 +0000 (-0500) Subject: nfsd: allow root to set uid and gid on create X-Git-Tag: v2.6.25-rc1~1072^2~60 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c002b3bb294a637312cab7ad92a0deafa05a758;p=pandora-kernel.git nfsd: allow root to set uid and gid on create The server silently ignores attempts to set the uid and gid on create. Based on the comment, this appears to have been done to prevent some overly-clever IRIX client from causing itself problems. Perhaps we should remove that hack completely. For now, at least, it makes sense to allow root (when no_root_squash is set) to set uid and gid. While we're there, since nfsd_create and nfsd_create_v3 share the same logic, pull that out into a separate function. And spell out the individual modifications of ia_valid instead of doing them both at once inside a conditional. Thanks to Roger Willcocks for the bug report and original patch on which this is based. Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed