Chuck Lever c05cefcc72 nfs: Fix ugly referral attributes
Before traversing a referral and performing a mount, the mounted-on
directory looks strange:

dr-xr-xr-x. 2 4294967294 4294967294 0 Dec 31  1969 dir.0

nfs4_get_referral is wiping out any cached attributes with what was
returned via GETATTR(fs_locations), but the bit mask for that
operation does not request any file attributes.

Retrieve owner and timestamp information so that the memcpy in
nfs4_get_referral fills in more attributes.

Changes since v1:
- Don't request attributes that the client unconditionally replaces
- Request only MOUNTED_ON_FILEID or FILEID attribute, not both
- encode_fs_locations() doesn't use the third bitmask word

Fixes: 6b97fd3da1ea ("NFSv4: Follow a referral")
Suggested-by: Pradeep Thomas <pradeepthomas@gmail.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Cc: stable@vger.kernel.org
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
2017-11-17 16:43:52 -05:00
..
2017-11-17 16:43:46 -05:00
2017-07-13 17:12:04 -04:00
2017-07-13 17:12:04 -04:00
2017-07-13 15:58:04 -04:00
2015-02-03 11:06:34 -08:00
2016-03-31 00:30:15 -04:00
2017-07-13 15:58:04 -04:00
2017-04-20 13:39:35 -04:00
2015-04-23 15:16:14 -04:00
2017-11-17 16:43:52 -05:00
2015-04-23 15:16:14 -04:00
2016-05-17 15:47:55 -04:00
2017-09-11 22:20:38 -04:00
2017-07-13 15:58:04 -04:00
2017-09-11 22:20:38 -04:00