Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for AttachFileDevice (0.66 sec)

  1. pkg/volume/util/volumepathhandler/volume_path_handler_unsupported.go

    */
    
    package volumepathhandler
    
    import (
    	"fmt"
    
    	"k8s.io/apimachinery/pkg/types"
    )
    
    // AttachFileDevice takes a path to a regular file and makes it available as an
    // attached block device.
    func (v VolumePathHandler) AttachFileDevice(path string) (string, error) {
    	return "", fmt.Errorf("AttachFileDevice not supported for this build.")
    }
    
    // DetachFileDevice takes a path to the attached block device and
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 1.7K bytes
    - Viewed (0)
  2. pkg/volume/util/volumepathhandler/volume_path_handler_linux.go

    	"os"
    	"os/exec"
    	"path/filepath"
    	"strings"
    
    	"golang.org/x/sys/unix"
    
    	"k8s.io/apimachinery/pkg/types"
    	"k8s.io/klog/v2"
    )
    
    // AttachFileDevice takes a path to a regular file and makes it available as an
    // attached block device.
    func (v VolumePathHandler) AttachFileDevice(path string) (string, error) {
    	blockDevicePath, err := v.GetLoopDevice(path)
    	if err != nil && err.Error() != ErrDeviceNotFound {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 20 14:49:03 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  3. pkg/volume/util/volumepathhandler/volume_path_handler.go

    	FindGlobalMapPathUUIDFromPod(pluginDir, mapPath string, podUID types.UID) (string, error)
    	// AttachFileDevice takes a path to a regular file and makes it available as an
    	// attached block device.
    	AttachFileDevice(path string) (string, error)
    	// DetachFileDevice takes a path to the attached block device and
    	// detach it from block device.
    	DetachFileDevice(path string) error
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 20 14:49:03 UTC 2023
    - 10.7K bytes
    - Viewed (0)
  4. pkg/volume/util/util.go

    	// Container runtime can't handle this problem. To avoid unexpected condition fd lock
    	// for the block device is required.
    	_, mapErr = blkUtil.AttachFileDevice(filepath.Join(globalMapPath, string(podUID)))
    	if mapErr != nil {
    		return fmt.Errorf("blkUtil.AttachFileDevice failed. globalMapPath:%s, podUID: %s: %v",
    			globalMapPath, string(podUID), mapErr)
    	}
    
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  5. pkg/volume/testing/testing.go

    func (fv *FakeVolumePathHandler) FindGlobalMapPathUUIDFromPod(pluginDir, mapPath string, podUID types.UID) (string, error) {
    	// nil is success, else error
    	return "", nil
    }
    
    func (fv *FakeVolumePathHandler) AttachFileDevice(path string) (string, error) {
    	// nil is success, else error
    	return "", nil
    }
    
    func (fv *FakeVolumePathHandler) DetachFileDevice(path string) error {
    	// nil is success, else error
    	return nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  6. pkg/volume/util/operationexecutor/operation_generator.go

    		// kubelet, so evaluate it on the host and expect that it links to a device in /dev,
    		// which will be available to containerized kubelet. If still it does not exist,
    		// AttachFileDevice will fail. If kubelet is not containerized, eval it anyway.
    		kvh, ok := og.GetVolumePluginMgr().Host.(volume.KubeletVolumeHost)
    		if !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 101.4K bytes
    - Viewed (0)
Back to top