aboutsummaryrefslogtreecommitdiff
path: root/pkg/driver/volume.go
diff options
context:
space:
mode:
authorchrislusf <chris.lu@gmail.com>2025-12-03 19:42:31 -0800
committerChris Lu <chrislusf@users.noreply.github.com>2025-12-03 20:52:27 -0800
commitd432e63322e0237f2f5ced3580f6233f401e9e48 (patch)
tree4287add8705e443840cddd7bb9b7ca24fae5605a /pkg/driver/volume.go
parentdfad8b9747b114c863838cf48223fcebe3049890 (diff)
downloadseaweedfs-csi-driver-d432e63322e0237f2f5ced3580f6233f401e9e48.tar.xz
seaweedfs-csi-driver-d432e63322e0237f2f5ced3580f6233f401e9e48.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/volume.go')
0 files changed, 0 insertions, 0 deletions