Commit 2d18f8a
committed
NodeVolumeUnpublish: tolerate repeated requests
NodeVolumeUnpublish handling has to be idempotent,
i.e. has to tolerate repeated requests.
That means, we can not attempt umount and return failure
without checking is targetPath really a mount point.
Re-arranged "not mount point" checking to be simpler.
Removed switch about VolAccessTypes as targetPath has
to be removed in both cases by CSI spec.1 parent 9fdddc2 commit 2d18f8a
1 file changed
+12
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
215 | 210 | | |
216 | 211 | | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
221 | 215 | | |
222 | 216 | | |
223 | 217 | | |
224 | | - | |
225 | 218 | | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
226 | 225 | | |
227 | 226 | | |
228 | 227 | | |
| |||
0 commit comments