@@ -165,9 +165,9 @@ func (t *gcsFuseCSIGCSFuseIntegrationTestSuite) DefineTests(driver storageframew
165165 framework .ExpectNoError (err , "while cleaning up" )
166166 }
167167
168- isKernelParamSupported := func (ctx context. Context ) bool {
168+ isKernelParamSupported := func () bool {
169169 if l .gcsfuseBranch != "" || l .gcsfuseVersion == nil {
170- l .gcsfuseVersion , l .gcsfuseBranch = specs .GCSFuseVersionAndBranch (ctx )
170+ l .gcsfuseVersion , l .gcsfuseBranch = specs .GCSFuseVersionAndBranch ()
171171 }
172172 return l .gcsfuseBranch == utils .MasterBranchName || l .gcsfuseVersion .AtLeast (version .MustParseSemantic (utils .MinGCSFuseKernelParamsVersion ))
173173 }
@@ -246,7 +246,7 @@ func (t *gcsFuseCSIGCSFuseIntegrationTestSuite) DefineTests(driver storageframew
246246 // Check if the GCSFuseVersion is already set, if not, we should set it.
247247 // This is for the case that we run this test suite individually.
248248 if GCSFuseVersionStr == "" {
249- GCSFuseVersionStr = specs .GetGCSFuseVersion (ctx )
249+ GCSFuseVersionStr = specs .GetGCSFuseVersion ()
250250 }
251251 gcsfuseVersion := version .MustParseSemantic (GCSFuseVersionStr )
252252
@@ -576,7 +576,7 @@ func (t *gcsFuseCSIGCSFuseIntegrationTestSuite) DefineTests(driver storageframew
576576 init ()
577577 defer cleanup ()
578578 mountOptions := []string {"implicit-dirs=true" }
579- if isKernelParamSupported (ctx ) {
579+ if isKernelParamSupported () {
580580 mountOptions = append (mountOptions , "file-system:enable-kernel-reader:false" )
581581 }
582582 gcsfuseIntegrationTest (testNameReadLargeFiles , false , mountOptions ... )
@@ -643,7 +643,7 @@ func (t *gcsFuseCSIGCSFuseIntegrationTestSuite) DefineTests(driver storageframew
643643 defer cleanup ()
644644
645645 mountOptions := []string {"implicit-dirs=true" , "kernel-list-cache-ttl-secs=-1" }
646- if isKernelParamSupported (ctx ) {
646+ if isKernelParamSupported () {
647647 mountOptions = append (mountOptions , "file-system:enable-kernel-reader:false" )
648648 }
649649 gcsfuseIntegrationTest (testNameConcurrentOperations , false , mountOptions ... )
@@ -772,7 +772,7 @@ func (t *gcsFuseCSIGCSFuseIntegrationTestSuite) DefineTests(driver storageframew
772772 init ()
773773 defer cleanup ()
774774 mountOptions := []string {"read-inactive-stream-timeout=0s" , "logging:format:json" , fmt .Sprintf ("logging:file-path:%s" , inactive_stream_timeout_log_file ), "log-severity=trace" }
775- if isKernelParamSupported (ctx ) {
775+ if isKernelParamSupported () {
776776 mountOptions = append (mountOptions , "file-system:enable-kernel-reader:false" )
777777 }
778778 gcsfuseIntegrationTest (testNameInactiveStreamTimeout + ":TestTimeoutDisabledSuite" , false , mountOptions ... )
@@ -782,7 +782,7 @@ func (t *gcsFuseCSIGCSFuseIntegrationTestSuite) DefineTests(driver storageframew
782782 init ()
783783 defer cleanup ()
784784 mountOptions := []string {"read-inactive-stream-timeout=1s" , "logging:format:json" , fmt .Sprintf ("logging:file-path:%s" , inactive_stream_timeout_log_file ), "log-severity=trace" }
785- if isKernelParamSupported (ctx ) {
785+ if isKernelParamSupported () {
786786 mountOptions = append (mountOptions , "file-system:enable-kernel-reader:false" )
787787 }
788788 gcsfuseIntegrationTest (testNameInactiveStreamTimeout + ":TestTimeoutEnabledSuite/TestReaderCloses" , false , mountOptions ... )
@@ -792,7 +792,7 @@ func (t *gcsFuseCSIGCSFuseIntegrationTestSuite) DefineTests(driver storageframew
792792 init ()
793793 defer cleanup ()
794794 mountOptions := []string {"read-inactive-stream-timeout=1s" , "logging:format:json" , fmt .Sprintf ("logging:file-path:%s" , inactive_stream_timeout_log_file ), "log-severity=trace" }
795- if isKernelParamSupported (ctx ) {
795+ if isKernelParamSupported () {
796796 mountOptions = append (mountOptions , "file-system:enable-kernel-reader:false" )
797797 }
798798 gcsfuseIntegrationTest (testNameInactiveStreamTimeout + ":TestTimeoutEnabledSuite/TestReaderStaysOpenWithinTimeout" , false , mountOptions ... )
@@ -802,7 +802,7 @@ func (t *gcsFuseCSIGCSFuseIntegrationTestSuite) DefineTests(driver storageframew
802802 init ()
803803 defer cleanup ()
804804 mountOptions := []string {"enable-buffered-read" , "read-block-size-mb=8" , "read-max-blocks-per-handle=20" , "read-start-blocks-per-handle=1" , "read-min-blocks-per-handle=2" , "logging:format:json" , fmt .Sprintf ("logging:file-path:%s" , buffered_reads_log_file ), "log-severity=trace" }
805- if isKernelParamSupported (ctx ) {
805+ if isKernelParamSupported () {
806806 mountOptions = append (mountOptions , "file-system:enable-kernel-reader:false" )
807807 }
808808 gcsfuseIntegrationTest (testNameBufferedReads + ":TestSequentialReadSuite" , false , mountOptions ... )
@@ -812,7 +812,7 @@ func (t *gcsFuseCSIGCSFuseIntegrationTestSuite) DefineTests(driver storageframew
812812 init ()
813813 defer cleanup ()
814814 mountOptions := []string {"enable-buffered-read" , "read-block-size-mb=8" , "read-max-blocks-per-handle=20" , "read-start-blocks-per-handle=2" , "read-min-blocks-per-handle=2" , "logging:format:json" , fmt .Sprintf ("logging:file-path:%s" , buffered_reads_log_file ), "log-severity=trace" }
815- if isKernelParamSupported (ctx ) {
815+ if isKernelParamSupported () {
816816 mountOptions = append (mountOptions , "file-system:enable-kernel-reader:false" )
817817 }
818818 gcsfuseIntegrationTest (testNameBufferedReads + ":TestFallbackSuites/TestRandomRead_LargeFile_Fallback" , false , mountOptions ... )
@@ -822,7 +822,7 @@ func (t *gcsFuseCSIGCSFuseIntegrationTestSuite) DefineTests(driver storageframew
822822 init ()
823823 defer cleanup ()
824824 mountOptions := []string {"enable-buffered-read" , "read-block-size-mb=8" , "read-max-blocks-per-handle=20" , "read-start-blocks-per-handle=2" , "read-min-blocks-per-handle=2" , "logging:format:json" , fmt .Sprintf ("logging:file-path:%s" , buffered_reads_log_file ), "log-severity=trace" }
825- if isKernelParamSupported (ctx ) {
825+ if isKernelParamSupported () {
826826 mountOptions = append (mountOptions , "file-system:enable-kernel-reader:false" )
827827 }
828828 gcsfuseIntegrationTest (testNameBufferedReads + ":TestFallbackSuites/TestRandomRead_SmallFile_NoFallback" , false , mountOptions ... )
@@ -832,7 +832,7 @@ func (t *gcsFuseCSIGCSFuseIntegrationTestSuite) DefineTests(driver storageframew
832832 init ()
833833 defer cleanup ()
834834 mountOptions := []string {"enable-buffered-read" , "read-block-size-mb=8" , "read-max-blocks-per-handle=10" , "read-start-blocks-per-handle=2" , "read-min-blocks-per-handle=2" , "read-global-max-blocks=1" , "logging:format:json" , fmt .Sprintf ("logging:file-path:%s" , buffered_reads_log_file ), "log-severity=trace" }
835- if isKernelParamSupported (ctx ) {
835+ if isKernelParamSupported () {
836836 mountOptions = append (mountOptions , "file-system:enable-kernel-reader:false" )
837837 }
838838 gcsfuseIntegrationTest (testNameBufferedReads + ":TestFallbackSuites/TestNewBufferedReader_InsufficientGlobalPool_NoReaderAdded" , false , mountOptions ... )
0 commit comments