Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 57 for mntPath (0.25 sec)

  1. pkg/volume/iscsi/iscsi_util.go

    	}
    	return iscsiTransport
    }
    
    func extractDeviceAndPrefix(mntPath string) (string, string, error) {
    	ind := strings.LastIndex(mntPath, "/")
    	if ind < 0 {
    		return "", "", fmt.Errorf("iscsi detach disk: malformatted mnt path: %s", mntPath)
    	}
    	device := mntPath[(ind + 1):]
    	// strip -lun- from mount path
    	ind = strings.LastIndex(mntPath, "-lun-")
    	if ind < 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 22 12:53:01 UTC 2022
    - 34.1K bytes
    - Viewed (0)
  2. pkg/volume/iscsi/disk_manager.go

    	AttachDisk(b iscsiDiskMounter) (string, error)
    	// Detaches the disk from the kubelet's host machine.
    	DetachDisk(disk iscsiDiskUnmounter, mntPath string) error
    	// Detaches the block disk from the kubelet's host machine.
    	DetachBlockISCSIDisk(disk iscsiDiskUnmapper, mntPath string) error
    }
    
    // utility to mount a disk based filesystem
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 03 19:34:37 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  3. pkg/volume/fc/disk_manager.go

    	// Detaches the disk from the kubelet's host machine.
    	DetachDisk(disk fcDiskUnmounter, devicePath string) error
    	// Detaches the block disk from the kubelet's host machine.
    	DetachBlockFCDisk(disk fcDiskUnmapper, mntPath, devicePath string) error
    }
    
    // utility to mount a disk based filesystem
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 03 19:34:37 UTC 2023
    - 3K bytes
    - Viewed (0)
  4. pkg/volume/iscsi/iscsi_test.go

    	return "/dev/sdb", nil
    }
    
    func (fake *fakeDiskManager) DetachDisk(c iscsiDiskUnmounter, mntPath string) error {
    	globalPath := c.manager.MakeGlobalPDName(*c.iscsiDisk)
    	err := os.RemoveAll(globalPath)
    	if err != nil {
    		return err
    	}
    	return nil
    }
    
    func (fake *fakeDiskManager) DetachBlockISCSIDisk(c iscsiDiskUnmapper, mntPath string) error {
    	globalPath := c.manager.MakeGlobalVDPDName(*c.iscsiDisk)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 01 15:56:32 UTC 2022
    - 16.4K bytes
    - Viewed (0)
  5. pkg/volume/fc/fc_test.go

    	err := os.MkdirAll(globalPath, 0750)
    	if err != nil {
    		return "", err
    	}
    	fake.attachCalled = true
    	return "", nil
    }
    
    func (fake *fakeDiskManager) DetachDisk(c fcDiskUnmounter, mntPath string) error {
    	globalPath := c.manager.MakeGlobalPDName(*c.fcDisk)
    	err := os.RemoveAll(globalPath)
    	if err != nil {
    		return err
    	}
    	fake.detachCalled = true
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 01 15:56:32 UTC 2022
    - 14.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/math/IntMath.java

     * values, see {@link com.google.common.primitives.Ints}.
     *
     * @author Louis Wasserman
     * @since 11.0
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    public final class IntMath {
      // NOTE: Whenever both tests are cheap and functional, it's faster to use &, | instead of &&, ||
    
      @VisibleForTesting static final int MAX_SIGNED_POWER_OF_TWO = 1 << (Integer.SIZE - 2);
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/math/IntMath.java

     * values, see {@link com.google.common.primitives.Ints}.
     *
     * @author Louis Wasserman
     * @since 11.0
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    public final class IntMath {
      // NOTE: Whenever both tests are cheap and functional, it's faster to use &, | instead of &&, ||
    
      @VisibleForTesting static final int MAX_SIGNED_POWER_OF_TWO = 1 << (Integer.SIZE - 2);
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/math/IntMathTest.java

    import junit.framework.TestCase;
    
    /**
     * Tests for {@link IntMath}.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible(emulated = true)
    public class IntMathTest extends TestCase {
      public void testMaxSignedPowerOfTwo() {
        assertTrue(IntMath.isPowerOfTwo(IntMath.MAX_SIGNED_POWER_OF_TWO));
    
        // Extra work required to make GWT happy.
        long value = IntMath.MAX_SIGNED_POWER_OF_TWO * 2L;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  9. guava-tests/benchmark/com/google/common/math/IntMathBenchmark.java

        int tmp = 0;
        for (int i = 0; i < reps; i++) {
          int j = i & ARRAY_MASK;
          tmp += IntMath.pow(positive[j], exponent[j]);
        }
        return tmp;
      }
    
      @Benchmark
      int mod(int reps) {
        int tmp = 0;
        for (int i = 0; i < reps; i++) {
          int j = i & ARRAY_MASK;
          tmp += IntMath.mod(ints[j], positive[j]);
        }
        return tmp;
      }
    
      @Benchmark
      int gCD(int reps) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.2K bytes
    - Viewed (0)
  10. guava-tests/benchmark/com/google/common/math/IntMathRoundingBenchmark.java

        int tmp = 0;
        for (int i = 0; i < reps; i++) {
          int j = i & ARRAY_MASK;
          tmp += IntMath.log2(positive[j], mode);
        }
        return tmp;
      }
    
      @Benchmark
      int log10(int reps) {
        int tmp = 0;
        for (int i = 0; i < reps; i++) {
          int j = i & ARRAY_MASK;
          tmp += IntMath.log10(positive[j], mode);
        }
        return tmp;
      }
    
      @Benchmark
      int sqrt(int reps) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2.6K bytes
    - Viewed (0)
Back to top