Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,076 for fallocate (0.13 sec)

  1. subprojects/core/src/test/groovy/org/gradle/util/ports/ReservedPortRangeTest.groovy

                range.allocate()
            }
    
            then:
            10 * portDetector.isAvailable(_) >> { true }
    
            and:
            range.allocate() == -1
        }
    
        def "ports are allocated in sequence" () {
            when:
            def port1 = range.allocate()
            def port2 = range.allocate()
            def port3 = range.allocate()
    
            then:
            port2 == next(port1)
            port3 == next(port2)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Aug 06 13:37:30 UTC 2015
    - 3.1K bytes
    - Viewed (0)
  2. src/syscall/zsyscall_linux_riscv64.go

    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func Fallocate(fd int, mode uint32, off int64, len int64) (err error) {
    	_, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0)
    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:49 UTC 2023
    - 37.8K bytes
    - Viewed (0)
  3. src/syscall/zsyscall_linux_amd64.go

    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func Fallocate(fd int, mode uint32, off int64, len int64) (err error) {
    	_, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0)
    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:49 UTC 2023
    - 39.5K bytes
    - Viewed (0)
  4. pkg/registry/core/service/portallocator/operation.go

    		return nil
    	}
    
    	return errors
    }
    
    // Allocates a port, and record it for future rollback
    func (op *PortAllocationOperation) Allocate(port int) error {
    	if op.dryRun {
    		if op.pa.Has(port) {
    			return ErrAllocated
    		}
    		for _, a := range op.allocated {
    			if port == a {
    				return ErrAllocated
    			}
    		}
    		op.allocated = append(op.allocated, port)
    		return nil
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 4.2K bytes
    - Viewed (0)
  5. subprojects/core/src/testFixtures/groovy/org/gradle/util/ports/ReservedPortRange.groovy

        final List<Integer> allocated = []
        int current
    
        public ReservedPortRange(int startPort, int endPort) {
            this.startPort = startPort
            this.endPort = endPort
            current = startPort + new Random().nextInt(endPort - startPort)
        }
    
        /**
         * Allocate an available port
         *
         * @return the port that was allocated
         */
        public int allocate() {
            try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Aug 10 14:46:58 UTC 2017
    - 2.8K bytes
    - Viewed (0)
  6. src/syscall/zsyscall_linux_mips.go

    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func Fallocate(fd int, mode uint32, off int64, len int64) (err error) {
    	_, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off>>32), uintptr(off), uintptr(len>>32), uintptr(len))
    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:49 UTC 2023
    - 40.3K bytes
    - Viewed (0)
  7. src/syscall/zsyscall_linux_mips64.go

    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func Fallocate(fd int, mode uint32, off int64, len int64) (err error) {
    	_, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0)
    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:49 UTC 2023
    - 40.3K bytes
    - Viewed (0)
  8. src/syscall/zsyscall_linux_mipsle.go

    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func Fallocate(fd int, mode uint32, off int64, len int64) (err error) {
    	_, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(off>>32), uintptr(len), uintptr(len>>32))
    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:49 UTC 2023
    - 40.3K bytes
    - Viewed (0)
  9. src/syscall/zsyscall_linux_ppc64.go

    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func Fallocate(fd int, mode uint32, off int64, len int64) (err error) {
    	_, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0)
    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:49 UTC 2023
    - 41K bytes
    - Viewed (0)
  10. pkg/registry/core/service/storage/alloc.go

    				} else {
    					err = allocator.Allocate(parsedIP)
    				}
    			} else {
    				err = allocator.Allocate(parsedIP)
    			}
    			if err != nil {
    				el := field.ErrorList{field.Invalid(field.NewPath("spec", "clusterIPs"), service.Spec.ClusterIPs, fmt.Sprintf("failed to allocate IP %v: %v", ip, err))}
    				return allocated, errors.NewInvalid(api.Kind("Service"), service.Name, el)
    			}
    			allocated[family] = ip
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:05 UTC 2023
    - 37.3K bytes
    - Viewed (0)
Back to top