diff --git a/docs/releases/v0.0.1.yml b/docs/releases/v0.0.1.yml index 111f8a65..b9ce32c6 100644 --- a/docs/releases/v0.0.1.yml +++ b/docs/releases/v0.0.1.yml @@ -315,7 +315,7 @@ spec: - name: socket-dir mountPath: /var/lib/csi/sockets/pluginproxy/ - name: vultr-csi-plugin - image: ddymko/vultr-csi:v0.7.1 + image: vultr/vultr-csi:v0.0.1 args : - "--endpoint=$(CSI_ENDPOINT)" - "--token=$(VULTR_API_KEY)" @@ -383,7 +383,7 @@ spec: - name: registration-dir mountPath: /registration/ - name: csi-vultr-plugin - image: ddymko/vultr-csi:v0.7.1 + image: vultr/vultr-csi:v0.0.1 args : - "--endpoint=$(CSI_ENDPOINT)" - "--token=$(VULTR_API_KEY)" diff --git a/driver/mounter.go b/driver/mounter.go index db80c279..e4458c5f 100644 --- a/driver/mounter.go +++ b/driver/mounter.go @@ -149,6 +149,14 @@ func (m *mounter) Mount(source, target, fs string, opts ...string) error { err, mountCommand, strings.Join(mountArguments, " "), string(out)) } + if _, err := os.Stat(target + "/lost+found"); err == nil { + os.Remove(target + "/lost+found") + } else if os.IsNotExist(err) { + m.log.WithFields(logrus.Fields{ + "error": err, + }).Info("mount command - removal of lost+found error") + } + return nil }