Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for MountSensitiveWithoutSystemd (0.8 sec)

  1. pkg/volume/fc/disk_manager.go

    	options := []string{"bind"}
    	if b.readOnly {
    		options = append(options, "ro")
    	}
    	mountOptions := util.JoinMountOptions(options, b.mountOptions)
    	err = mounter.MountSensitiveWithoutSystemd(globalPDPath, volPath, "", mountOptions, nil)
    	if err != nil {
    		klog.Errorf("Failed to bind mount: source:%s, target:%s, err:%v", globalPDPath, volPath, err)
    		noMnt, mntErr := b.mounter.IsLikelyNotMountPoint(volPath)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 03 19:34:37 UTC 2023
    - 3K bytes
    - Viewed (0)
  2. pkg/kubelet/util/swap/swap_util.go

    		}
    
    		defer func() {
    			err = os.RemoveAll(mountPath)
    			if err != nil {
    				klog.ErrorS(err, "error removing test tmpfs dir", "mount path", mountPath)
    			}
    		}()
    
    		err = mounter.MountSensitiveWithoutSystemd("tmpfs", mountPath, "tmpfs", []string{TmpfsNoswapOption}, nil)
    		if err != nil {
    			klog.InfoS("error mounting tmpfs with the noswap option. Assuming not supported", "error", err)
    			return false
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 10:07:06 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  3. pkg/volume/iscsi/disk_manager.go

    		b.iscsiDisk.Iface = b.iscsiDisk.Portals[0] + ":" + b.iscsiDisk.VolName
    	}
    	globalPDPath := manager.MakeGlobalPDName(*b.iscsiDisk)
    	mountOptions := util.JoinMountOptions(b.mountOptions, options)
    	err = mounter.MountSensitiveWithoutSystemd(globalPDPath, volPath, "", mountOptions, nil)
    	if err != nil {
    		klog.Errorf("Failed to bind mount: source:%s, target:%s, err:%v", globalPDPath, volPath, err)
    		noMnt, mntErr := b.mounter.IsLikelyNotMountPoint(volPath)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 03 19:34:37 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  4. pkg/volume/flexvolume/util.go

    // It is expected that prepareForMount has been called before.
    func doMount(mounter mount.Interface, devicePath, deviceMountPath, fsType string, options []string) error {
    	err := mounter.MountSensitiveWithoutSystemd(devicePath, deviceMountPath, fsType, options, nil)
    	if err != nil {
    		klog.Errorf("Failed to mount the volume at %s, device: %s, error: %s", deviceMountPath, devicePath, err.Error())
    		return err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 14 13:58:56 UTC 2021
    - 4.8K bytes
    - Viewed (0)
  5. pkg/volume/nfs/nfs.go

    	options := []string{}
    	if nfsMounter.readOnly {
    		options = append(options, "ro")
    	}
    	mountOptions := util.JoinMountOptions(nfsMounter.mountOptions, options)
    	err = nfsMounter.mounter.MountSensitiveWithoutSystemd(source, dir, "nfs", mountOptions, nil)
    	if err != nil {
    		notMnt, mntErr := mount.IsNotMountPoint(nfsMounter.mounter, dir)
    		if mntErr != nil {
    			klog.Errorf("IsNotMountPoint check failed: %v", mntErr)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 9.5K bytes
    - Viewed (0)
Back to top