diff options
| author | chrislusf <chris.lu@gmail.com> | 2025-12-03 19:42:31 -0800 |
|---|---|---|
| committer | chrislusf <chris.lu@gmail.com> | 2025-12-03 19:42:31 -0800 |
| commit | 098fd583dc5a5704dec3f2af433fbe28e60e1097 (patch) | |
| tree | 88b0f12883402ca7d5e179f2fa02a51bef2d1405 /pkg/driver/mount_util.go | |
| parent | 51aef3c1d61bc4fd095a51c989c3957692a2a172 (diff) | |
| download | seaweedfs-csi-driver-098fd583dc5a5704dec3f2af433fbe28e60e1097.tar.xz seaweedfs-csi-driver-098fd583dc5a5704dec3f2af433fbe28e60e1097.zip | |
fix: preserve healthy mounts in NodeStageVolume instead of re-staging
Address CodeRabbit review - when a healthy staging path exists after driver
restart, rebuild the cache using rebuildVolumeFromStaging() instead of
cleaning up and re-staging. This:
- Maintains consistency with NodePublishVolume behavior
- Avoids disrupting existing published volumes that are bind-mounted
- Makes NodeStageVolume idempotent as per CSI spec
Diffstat (limited to 'pkg/driver/mount_util.go')
0 files changed, 0 insertions, 0 deletions
