Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for MountSensitiveWithoutSystemd (0.64 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/emptydir/empty_dir.go

    	klog.V(3).Infof("pod %v: mounting tmpfs for volume %v", ed.pod.UID, ed.volName)
    	return ed.mounter.MountSensitiveWithoutSystemd("tmpfs", dir, "tmpfs", options, nil)
    }
    
    // setupHugepages creates a hugepage mount at the specified directory.
    func (ed *emptyDir) setupHugepages(dir string) error {
    	if ed.mounter == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:18:16 UTC 2024
    - 19K bytes
    - Viewed (0)
  6. 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)
  7. pkg/volume/util/volumepathhandler/volume_path_handler.go

    	}
    
    	// Bind mount file
    	mounter := &mount.SafeFormatAndMount{Interface: mount.New(""), Exec: utilexec.New()}
    	if err := mounter.MountSensitiveWithoutSystemd(devicePath, linkPath, "" /* fsType */, []string{"bind"}, nil); err != nil {
    		return fmt.Errorf("failed to bind mount devicePath: %s to linkPath %s: %v", devicePath, linkPath, err)
    	}
    
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 20 14:49:03 UTC 2023
    - 10.7K bytes
    - Viewed (0)
  8. pkg/volume/iscsi/iscsi_test.go

    	err := os.MkdirAll(globalPath, 0750)
    	if err != nil {
    		return "", err
    	}
    	// Simulate the global mount so that the fakeMounter returns the
    	// expected number of mounts for the attached disk.
    	b.mounter.MountSensitiveWithoutSystemd(globalPath, globalPath, b.fsType, nil, nil)
    
    	return "/dev/sdb", nil
    }
    
    func (fake *fakeDiskManager) DetachDisk(c iscsiDiskUnmounter, mntPath string) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 01 15:56:32 UTC 2022
    - 16.4K bytes
    - Viewed (0)
  9. pkg/volume/local/local.go

    	}
    	mountOptions := util.JoinMountOptions(options, m.mountOptions)
    
    	klog.V(4).Infof("attempting to mount %s", dir)
    	globalPath := util.MakeAbsolutePath(runtime.GOOS, m.globalPath)
    	err = m.mounter.MountSensitiveWithoutSystemd(globalPath, dir, "", mountOptions, nil)
    	if err != nil {
    		klog.Errorf("Mount of volume %s failed: %v", dir, err)
    		notMnt, mntErr := mount.IsNotMountPoint(m.mounter, dir)
    		if mntErr != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 22.2K bytes
    - Viewed (0)
Back to top