Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for createSocketFile (0.4 sec)

  1. pkg/volume/util/hostutil/hostutil_test.go

    				}
    				return
    			}
    
    			expectedPath := filepath.FromSlash(tc.expectedPath)
    			assert.Equal(t, expectedPath, path)
    		})
    	}
    }
    
    func createSocketFile(socketDir string) (string, error) {
    	testSocketFile := filepath.Join(socketDir, "mt.sock")
    
    	// Switch to volume path and create the socket file
    	// socket file can not have length of more than 108 character
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 01 16:02:07 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  2. pkg/volume/util/subpath/subpath_linux_test.go

    				socketFile, socketError := createSocketFile(base)
    
    				if socketError != nil {
    					return fmt.Errorf("error preparing socket file %s with %w", socketFile, socketError)
    				}
    				return nil
    			},
    			"mt.sock",
    			false,
    		},
    		{
    			"mounting-unix-socket-in-middle",
    			func(base string) error {
    				testSocketFile, socketError := createSocketFile(base)
    
    				if socketError != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 10 16:52:55 UTC 2021
    - 37.3K bytes
    - Viewed (0)
Back to top