Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 71 for detect (0.17 sec)

  1. cmd/admin-handlers-users.go

    	}
    
    	var updReq madmin.GroupAddRemove
    	err = json.Unmarshal(data, &updReq)
    	if err != nil {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrInvalidRequest), r.URL)
    		return
    	}
    
    	// Reject if the group add and remove are temporary credentials, or root credential.
    	for _, member := range updReq.Members {
    		ok, _, err := globalIAMSys.IsTempUser(member)
    		if err != nil && err != errNoSuchUser {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 12:41:13 GMT 2024
    - 77.5K bytes
    - Viewed (0)
  2. cmd/erasure-sets.go

    				return
    			}
    
    			if currentDisk := s.erasureDisks[setIndex][diskIndex]; currentDisk != nil {
    				if !reflect.DeepEqual(currentDisk.Endpoint(), disk.Endpoint()) {
    					err = fmt.Errorf("Detected unexpected drive ordering refusing to use the drive: expecting %s, found %s, refusing to use the drive",
    						currentDisk.Endpoint(), disk.Endpoint())
    					printEndpointError(endpoint, err, false)
    					disk.Close()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 37.7K bytes
    - Viewed (5)
  3. src/archive/tar/reader_test.go

    func (rbs *readBadSeeker) Seek(int64, int) (int64, error) { return 0, fmt.Errorf("illegal seek") }
    
    // TestReadTruncation test the ending condition on various truncated files and
    // that truncated files are still detected even if the underlying io.Reader
    // satisfies io.Seeker.
    func TestReadTruncation(t *testing.T) {
    	var ss []string
    	for _, p := range []string{
    		"testdata/gnu.tar",
    		"testdata/ustar-file-reg.tar",
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Nov 21 21:14:38 GMT 2022
    - 47.1K bytes
    - Viewed (0)
  4. cmd/object-handlers_test.go

    		t.Fatalf("Test %s: Failed to fetch the copied object: <ERROR> %s", instanceType, err)
    	}
    	r.Close()
    	if !bytes.Equal(buf.Bytes(), bytesData[0].byteData) {
    		t.Fatalf("Test: %s returned data is not expected corruption detected:", instanceType)
    	}
    }
    
    // Wrapper for calling Copy Object Part API handler tests for both Erasure multiple disks and single node setup.
    func TestAPICopyObjectPartHandler(t *testing.T) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 160K bytes
    - Viewed (0)
  5. cni/pkg/repair/repaircontroller.go

    	})
    	if err != nil {
    		c.events.Write(pod, corev1.EventTypeWarning, ReasonDeleteBrokenPod, "pod detected as broken, but failed to delete: %v", err)
    		m.With(resultLabel.Value(resultFail)).Increment()
    		return err
    	}
    	c.events.Write(pod, corev1.EventTypeWarning, ReasonDeleteBrokenPod, "pod detected as broken, deleted")
    	m.With(resultLabel.Value(resultSuccess)).Increment()
    	return nil
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  6. internal/ioutil/ioutil.go

    // this function to return error.
    //
    // This code is similar in spirit to io.Copy but it is only to be
    // used with DIRECT I/O based file descriptor and it is expected that
    // input writer *os.File not a generic io.Writer. Make sure to have
    // the file opened for writes with syscall.O_DIRECT flag.
    func CopyAligned(w io.Writer, r io.Reader, alignedBuf []byte, totalSize int64, file *os.File) (int64, error) {
    	if totalSize == 0 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 11:26:59 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  7. internal/disk/stat_windows.go

    		uintptr(unsafe.Pointer(&lpTotalNumberOfBytes)),
    		uintptr(unsafe.Pointer(&lpTotalNumberOfFreeBytes)))
    
    	if uint64(lpTotalNumberOfFreeBytes) > uint64(lpTotalNumberOfBytes) {
    		return info, fmt.Errorf("detected free space (%d) > total drive space (%d), fs corruption at (%s). please run 'fsck'",
    			uint64(lpTotalNumberOfFreeBytes), uint64(lpTotalNumberOfBytes), path)
    	}
    
    	info = Info{
    		Total:  uint64(lpTotalNumberOfBytes),
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  8. cmd/object-lambda-handlers.go

    	"HTTP Version Not Supported":      http.StatusHTTPVersionNotSupported,
    	"Variant Also Negotiates":         http.StatusVariantAlsoNegotiates,
    	"Insufficient Storage":            http.StatusInsufficientStorage,
    	"Loop Detected":                   http.StatusLoopDetected,
    	"Not Extended":                    http.StatusNotExtended,
    	"Network Authentication Required": http.StatusNetworkAuthenticationRequired,
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Sep 15 04:58:17 GMT 2023
    - 10.2K bytes
    - Viewed (1)
  9. src/cmd/cgo/doc.go

    entirely using GODEBUG=cgocheck=0. Complete checking of pointer
    handling, at some cost in run time, is available by setting
    GOEXPERIMENT=cgocheck2 at build time.
    
    It is possible to defeat this enforcement by using the unsafe package,
    and of course there is nothing stopping the C code from doing anything
    it likes. However, programs that break these rules are likely to fail
    in unexpected and unpredictable ways.
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  10. internal/logger/target/http/http.go

    		currentGlobalBuffer, ok := logChBuffers[name]
    		logChLock.Unlock()
    		if !ok {
    			return
    		}
    
    		for _, v := range entries {
    			select {
    			case currentGlobalBuffer <- v:
    			default:
    			}
    		}
    
    		if mainWorker {
    		drain:
    			for {
    				select {
    				case v, ok := <-h.logCh:
    					if !ok {
    						break drain
    					}
    
    					currentGlobalBuffer <- v
    				default:
    					break drain
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 25 16:44:20 GMT 2024
    - 14.9K bytes
    - Viewed (0)
Back to top