Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for mapsPath (0.13 sec)

  1. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/toolchain/internal/gcc/metadata/GccMetadataProviderTest.groovy

            expect:
            runsCompiler(gccCygwin64, gccVerboseOutput('7.3', includes))
            mapsPath(cygpath, '/usr/include', 'C:\\cygwin\\usr\\include')
            mapsPath(cygpath, '/usr/local/include', 'C:\\cygwin\\usr\\local\\include')
            def provider = new GccMetadataProvider(execActionFactory, GCC)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 16 06:01:47 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  2. pkg/volume/util/volumepathhandler/volume_path_handler.go

    	_, err := os.Stat(mapPath)
    	if err != nil && !os.IsNotExist(err) {
    		return fmt.Errorf("cannot validate map path: %s: %v", mapPath, err)
    	}
    	if err = os.MkdirAll(mapPath, 0750); err != nil {
    		return fmt.Errorf("failed to mkdir %s: %v", mapPath, err)
    	}
    
    	if bindMount {
    		return mapBindMountDevice(v, devicePath, mapPath, linkName)
    	}
    	return mapSymlinkDevice(v, devicePath, mapPath, linkName)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 20 14:49:03 UTC 2023
    - 10.7K bytes
    - Viewed (0)
  3. pkg/volume/fc/fc.go

    func (c *fcDiskUnmapper) TearDownDevice(mapPath, devicePath string) error {
    	err := c.manager.DetachBlockFCDisk(*c, mapPath, devicePath)
    	if err != nil {
    		return fmt.Errorf("fc: failed to detach disk: %s\nError: %v", mapPath, err)
    	}
    	klog.V(4).Infof("fc: %s is unmounted, deleting the directory", mapPath)
    	if err = os.RemoveAll(mapPath); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  4. pkg/volume/util/volumepathhandler/volume_path_handler_linux.go

    		if err != nil {
    			return err
    		}
    		if (fi.Mode()&os.ModeDevice == os.ModeDevice) && (fi.Name() == string(podUID)) {
    			klog.V(5).Infof("FindGlobalMapPathFromPod: path %s, mapPath %s", path, mapPath)
    			if res, err := compareBindMountAndSymlinks(path, mapPath); err == nil && res {
    				globalMapPathUUID = path
    			}
    		}
    		return nil
    	})
    	if err != nil {
    		return "", fmt.Errorf("FindGlobalMapPathUUIDFromPod failed: %v", err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 20 14:49:03 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  5. pkg/volume/iscsi/iscsi.go

    func (c *iscsiDiskUnmapper) TearDownDevice(mapPath, _ string) error {
    	err := c.manager.DetachBlockISCSIDisk(*c, mapPath)
    	if err != nil {
    		return fmt.Errorf("iscsi: failed to detach disk: %s\nError: %v", mapPath, err)
    	}
    	klog.V(4).Infof("iscsi: %q is unmounted, deleting the directory", mapPath)
    	err = os.RemoveAll(mapPath)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  6. pkg/volume/fc/fc_util.go

    	}
    
    	// Check if global map path is valid
    	// global map path examples:
    	//   wwn+lun: plugins/kubernetes.io/fc/volumeDevices/50060e801049cfd1-lun-0/
    	//   wwid: plugins/kubernetes.io/fc/volumeDevices/3600508b400105e210000900000490000/
    	if pathExists, pathErr := checkPathExists(mapPath); !pathExists || pathErr != nil {
    		return pathErr
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 16 11:12:06 UTC 2022
    - 12.8K bytes
    - Viewed (0)
  7. pkg/volume/util/volumepathhandler/volume_path_handler_unsupported.go

    // FindGlobalMapPathUUIDFromPod finds {pod uuid} bind mount under globalMapPath
    // corresponding to map path symlink, and then return global map path with pod uuid.
    func (v VolumePathHandler) FindGlobalMapPathUUIDFromPod(pluginDir, mapPath string, podUID types.UID) (string, error) {
    	return "", fmt.Errorf("FindGlobalMapPathUUIDFromPod not supported for this build.")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 1.7K bytes
    - Viewed (0)
  8. pkg/volume/iscsi/iscsi_util.go

    func (util *ISCSIUtil) DetachBlockISCSIDisk(c iscsiDiskUnmapper, mapPath string) error {
    	if pathExists, pathErr := mount.PathExists(mapPath); pathErr != nil {
    		return fmt.Errorf("error checking if path exists: %w", pathErr)
    	} else if !pathExists {
    		klog.Warningf("Warning: Unmap skipped because path does not exist: %v", mapPath)
    		return nil
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 22 12:53:01 UTC 2022
    - 34.1K bytes
    - Viewed (0)
  9. pkg/volume/testing/testing.go

    	return nil
    }
    
    func (fv *FakeVolumePathHandler) RemoveMapPath(mapPath string) error {
    	// nil is success, else error
    	return nil
    }
    
    func (fv *FakeVolumePathHandler) IsSymlinkExist(mapPath string) (bool, error) {
    	// nil is success, else error
    	return true, nil
    }
    
    func (fv *FakeVolumePathHandler) IsDeviceBindMountExist(mapPath string) (bool, error) {
    	// nil is success, else error
    	return true, 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)
  10. pkg/volume/fc/fc_test.go

    	err := os.RemoveAll(globalPath)
    	if err != nil {
    		return err
    	}
    	fake.detachCalled = true
    	return nil
    }
    
    func (fake *fakeDiskManager) DetachBlockFCDisk(c fcDiskUnmapper, mapPath, devicePath string) error {
    	err := os.RemoveAll(mapPath)
    	if err != nil {
    		return err
    	}
    	fake.detachCalled = true
    	return nil
    }
    
    func doTestPlugin(t *testing.T, spec *volume.Spec) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 01 15:56:32 UTC 2022
    - 14.1K bytes
    - Viewed (0)
Back to top