Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for IsBlock (0.15 sec)

  1. pkg/volume/hostpath/host_path_test.go

    				t.Errorf("[%d: %q] expected character device, got unexpected socket file: %s", i, tc.name, path)
    			}
    			if oftc.IsBlock() {
    				t.Errorf("[%d: %q] expected character device, got unexpected block device: %s", i, tc.name, path)
    			}
    		}
    
    		if tc.isBlock {
    			if !oftc.IsBlock() {
    				t.Errorf("[%d: %q] expected block device, got unexpected: %s", i, tc.name, path)
    			}
    			if oftc.IsDir() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 00:37:30 UTC 2023
    - 20.5K bytes
    - Viewed (0)
  2. pkg/volume/hostpath/host_path.go

    }
    
    type hostPathTypeChecker interface {
    	Exists() bool
    	IsFile() bool
    	MakeFile() error
    	IsDir() bool
    	MakeDir() error
    	IsBlock() bool
    	IsChar() bool
    	IsSocket() bool
    	GetPath() string
    }
    
    type fileTypeChecker struct {
    	path string
    	hu   hostutil.HostUtils
    }
    
    func (ftc *fileTypeChecker) Exists() bool {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  3. pkg/volume/local/local_test.go

    	}
    	if plug.GetPluginName() != localVolumePluginName {
    		t.Errorf("Wrong name: %s", plug.GetPluginName())
    	}
    	return source, plug
    }
    
    func getTestVolume(readOnly bool, path string, isBlock bool, mountOptions []string) *volume.Spec {
    	pv := &v1.PersistentVolume{
    		ObjectMeta: metav1.ObjectMeta{
    			Name: testPVName,
    		},
    		Spec: v1.PersistentVolumeSpec{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 08 10:53:39 UTC 2023
    - 22.5K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/_gen/rulegen.go

    		if d != 0 {
    			log.Fatalf("imbalanced expression: %q", s)
    		}
    		if nonsp {
    			r = append(r, strings.TrimSpace(s))
    		}
    		break
    	}
    	return r
    }
    
    // isBlock reports whether this op is a block opcode.
    func isBlock(name string, arch arch) bool {
    	for _, b := range genericBlocks {
    		if b.name == name {
    			return true
    		}
    	}
    	for _, b := range arch.blocks {
    		if b.name == name {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 02 22:09:21 UTC 2023
    - 48.7K bytes
    - Viewed (0)
  5. cmd/namespace-lock.go

    	nsMutex := nsLockMap{
    		isDistErasure: isDistErasure,
    	}
    	if isDistErasure {
    		return &nsMutex
    	}
    	nsMutex.lockMap = make(map[string]*nsLock)
    	return &nsMutex
    }
    
    // nsLock - provides primitives for locking critical namespace regions.
    type nsLock struct {
    	ref int32
    	*lsync.LRWMutex
    }
    
    // nsLockMap - namespace lock map, provides primitives to Lock,
    // Unlock, RLock and RUnlock.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 05 23:56:35 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  6. subprojects/core/src/test/groovy/org/gradle/internal/resource/local/DefaultPathKeyFileStoreTest.groovy

                throw failure
            } as Action<File>)
            then:
            def e = thrown(FileStoreAddActionException)
            e.cause == failure
    
            !fsBase.file("a").exists()
            !fsBase.file("a.fslock").exists()
        }
    
        def "cleans up left-over files when action fails"() {
            when:
            store.add("a", { File f ->
                new File(f, "child").text = "delete-me"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 20 09:57:05 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/locking/UsingLockingOnNonProjectConfigurationsIntegrationTest.groovy

            }
        }
        dependencyLocking {
            lockFile = file("\$projectDir/gradle/bslock.file")
        }
        configurations.classpath {
            resolutionStrategy.activateDependencyLocking()
        }
        dependencies {
            classpath 'org.foo:foo-plugin:[1.0,2.0)'
        }
    }
    """
            def lockFile = testDirectory.file('gradle', 'bslock.file')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  8. cmd/admin-handlers.go

    		return
    	}
    
    	nsLock := objectAPI.NewNSLock(minioMetaBucket, "site-net-perf")
    	lkctx, err := nsLock.GetLock(ctx, globalOperationTimeout)
    	if err != nil {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(toAPIErrorCode(ctx, err)), r.URL)
    		return
    	}
    	ctx = lkctx.Context()
    	defer nsLock.Unlock(lkctx)
    
    	durationStr := r.Form.Get(peerRESTDuration)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 98K bytes
    - Viewed (0)
Back to top