From 9fbf9932e625fff0658143c549954a160b654d53 Mon Sep 17 00:00:00 2001 From: AlbeeSo Date: Tue, 9 Jan 2024 16:50:39 +0800 Subject: [PATCH 1/3] use -o mime instead --- pkg/mounter/ossfs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/mounter/ossfs.go b/pkg/mounter/ossfs.go index e76fd15b1..85f62700f 100644 --- a/pkg/mounter/ossfs.go +++ b/pkg/mounter/ossfs.go @@ -106,7 +106,7 @@ func (f *fuseOssfs) buildPodSpec( mimeMountDir = OssfsDefMimeTypesFilePath } else if strings.ToLower(f.config.Extra["mime-support"]) == "true" { // mime.types not exists, use csi-mime.types - options = append(options, fmt.Sprintf("mime_types_file=%s", OssfsCsiMimeTypesFilePath)) + options = append(options, fmt.Sprintf("mime=%s", OssfsCsiMimeTypesFilePath)) mimeMountDir = OssfsCsiMimeTypesFilePath } From 36f22e06c959d83b9504da86f975d774dbd34f96 Mon Sep 17 00:00:00 2001 From: AlbeeSo Date: Tue, 9 Jan 2024 17:06:26 +0800 Subject: [PATCH 2/3] use ossfs_1.88.3_centos8.0_x86_64.rpm instead --- build/fuse-clients/ossfs/install-ossfs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/fuse-clients/ossfs/install-ossfs.sh b/build/fuse-clients/ossfs/install-ossfs.sh index b13dc4768..7c40ba7fc 100644 --- a/build/fuse-clients/ossfs/install-ossfs.sh +++ b/build/fuse-clients/ossfs/install-ossfs.sh @@ -4,7 +4,7 @@ echo "TARGETPLATFORM: $TARGETPLATFORM" echo "installing ossfs" case $TARGETPLATFORM in linux/amd64) - yum install -y https://ack-csiplugin.oss-cn-hangzhou.aliyuncs.com/pre/ossfs/ossfs_1.88.3_centos8_x86_64.rpm + yum install -y https://ack-csiplugin.oss-cn-hangzhou.aliyuncs.com/pre/ossfs/ossfs_1.88.3_centos8.0_x86_64.rpm ;; linux/arm64) yum install -y \ From a418c2d5cf1b231eec7358e988536c586a41ba67 Mon Sep 17 00:00:00 2001 From: AlbeeSo Date: Tue, 9 Jan 2024 17:23:09 +0800 Subject: [PATCH 3/3] bump ossfs image --- pkg/mounter/ossfs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/mounter/ossfs.go b/pkg/mounter/ossfs.go index 85f62700f..d1c667118 100644 --- a/pkg/mounter/ossfs.go +++ b/pkg/mounter/ossfs.go @@ -20,7 +20,7 @@ import ( "k8s.io/utils/pointer" ) -var defaultOssfsImageTag = "705dbf0-aliyun" +var defaultOssfsImageTag = "36f22e0-aliyun" const ( hostPrefix = "/host"