Commit 28568c9
NFSv4.1 enforce rootpath check in fs_location query
In commit 4ca9f31 ("NFSv4.1 test and add 4.1 trunking transport"),
we introduce the ability to query the NFS server for possible trunking
locations of the existing filesystem. However, we never checked the
returned file system path for these alternative locations. According
to the RFC, the server can say that the filesystem currently known
under "fs_root" of fs_location also resides under these server
locations under the following "rootpath" pathname. The client cannot
handle trunking a filesystem that reside under different location
under different paths other than what the main path is. This patch
enforces the check that fs_root path and rootpath path in fs_location
reply is the same.
Fixes: 4ca9f31 ("NFSv4.1 test and add 4.1 trunking transport")
Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>1 parent 296f4ce commit 28568c9
1 file changed
+22
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4023 | 4023 | | |
4024 | 4024 | | |
4025 | 4025 | | |
| 4026 | + | |
| 4027 | + | |
| 4028 | + | |
| 4029 | + | |
| 4030 | + | |
| 4031 | + | |
| 4032 | + | |
| 4033 | + | |
| 4034 | + | |
| 4035 | + | |
| 4036 | + | |
| 4037 | + | |
| 4038 | + | |
| 4039 | + | |
| 4040 | + | |
| 4041 | + | |
| 4042 | + | |
4026 | 4043 | | |
4027 | 4044 | | |
4028 | 4045 | | |
| |||
4056 | 4073 | | |
4057 | 4074 | | |
4058 | 4075 | | |
4059 | | - | |
| 4076 | + | |
| 4077 | + | |
| 4078 | + | |
| 4079 | + | |
4060 | 4080 | | |
4061 | 4081 | | |
| 4082 | + | |
4062 | 4083 | | |
4063 | 4084 | | |
4064 | 4085 | | |
| |||
0 commit comments