Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 349 for checkID (0.15 sec)

  1. cmd/storage-rest-server.go

    		return false
    	}
    
    	// If format.json is available and request sent the right disk-id, we allow the request
    	return true
    }
    
    // checkID - check if the disk-id in the request corresponds to the underlying disk.
    func (s *storageRESTServer) checkID(wantID string) bool {
    	if s.getStorage() == nil {
    		return false
    	}
    	if wantID == "" {
    		// Request sent empty disk-id, we allow the request
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 44.8K bytes
    - Viewed (0)
  2. cmd/xl-storage-disk-id-check.go

    	for {
    		select {
    		case <-ctx.Done():
    			return
    		case <-t.C:
    			if !monitor() {
    				return
    			}
    		}
    	}
    }
    
    // checkID will check if the disk ID matches the provided ID.
    func (p *xlStorageDiskIDCheck) checkID(wantID string) (err error) {
    	if wantID == "" {
    		return nil
    	}
    	id, err := p.storage.GetDiskID()
    	if err != nil {
    		return err
    	}
    	if id != wantID {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 33K bytes
    - Viewed (0)
  3. cmd/metacache-walk.go

    						internalLogIf(ctx, err)
    					}
    				}
    				dirStack = dirStack[:len(dirStack)-1]
    			}
    
    			// All objects will be returned as directories, there has been no object check yet.
    			// Check it by attempting to read metadata.
    			_, isDirObj := dirObjects[entry]
    			if isDirObj {
    				meta.name = meta.name[:len(meta.name)-1] + globalDirSuffixWithSlash
    			}
    
    			if s.walkReadMu != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 15 08:25:46 GMT 2024
    - 12.4K bytes
    - Viewed (0)
  4. internal/http/check_port_linux.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package http
    
    import (
    	"context"
    	"net"
    	"syscall"
    	"time"
    )
    
    // CheckPortAvailability - check if given host and port is already in use.
    // Note: The check method tries to listen on given port and closes it.
    // It is possible to have a disconnected client in this tiny window of time.
    func CheckPortAvailability(host, port string, opts TCPOptions) (err error) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 03 21:12:25 GMT 2023
    - 1.9K bytes
    - Viewed (0)
  5. cmd/net.go

    		// Host not empty, check if it is local
    		return false, err
    	}
    
    	if host2 == "" {
    		// If empty host means it is localhost
    		addr2Local = true
    	} else if addr2Local, err = isLocalHost(host2, port2, port2); err != nil {
    		// Host not empty, check if it is local
    		return false, err
    	}
    
    	// If both of addresses point to the same machine, check if
    	// have the same port
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Mar 26 15:00:38 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  6. istioctl/pkg/checkinject/checkinject.go

    	
      # Check the injection status of a pod under a deployment
      istioctl x check-inject deployment/details-v1
    
      # Check the injection status of a pod under a deployment in namespace test
      istioctl x check-inject deployment/details-v1 -n test
    
      # Check the injection status of label pairs in a specific namespace before actual injection 
      istioctl x check-inject -n test -l app=helloworld,version=v1
    `,
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  7. internal/hash/reader.go

    }
    
    // SetExpectedMax set expected max data expected from reader
    func (r *Reader) SetExpectedMax(expectedMax int64) {
    	r.expectedMax = expectedMax
    }
    
    // AddChecksum will add checksum checks as specified in
    // https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
    // Returns ErrInvalidChecksum if a problem with the checksum is found.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 18 17:00:54 GMT 2023
    - 10.8K bytes
    - Viewed (0)
  8. cmd/admin-heal-ops.go

    	// release lock
    	h.mutex.Unlock()
    
    	return nil
    }
    
    // healSequenceStart - this is the top-level background heal
    // routine. It launches another go-routine that actually traverses
    // on-disk data, checks and heals according to the selected
    // settings. This go-routine itself, (1) monitors the traversal
    // routine for completion, and (2) listens for external stop
    // signals. When either event happens, it sets the finish status for
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 25.1K bytes
    - Viewed (1)
  9. cmd/erasure-healing-common_test.go

    		if !testCase.time.Equal(ctime) {
    			t.Errorf("Test case %d, expect to pass but failed. Wanted modTime: %s, got modTime: %s\n", i+1, testCase.time, ctime)
    		}
    	}
    }
    
    // TestListOnlineDisks - checks if listOnlineDisks and outDatedDisks
    // are consistent with each other.
    func TestListOnlineDisks(t *testing.T) {
    	ctx, cancel := context.WithCancel(context.Background())
    	defer cancel()
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 23K bytes
    - Viewed (1)
  10. cmd/endpoint-ellipses.go

    		for y != 0 {
    			x, y = y, x%y
    		}
    		return x
    	}
    	result = totalSizes[0]
    	for i := 1; i < len(totalSizes); i++ {
    		result = gcd(result, totalSizes[i])
    	}
    	return result
    }
    
    // isValidSetSize - checks whether given count is a valid set size for erasure coding.
    var isValidSetSize = func(count uint64) bool {
    	return (count >= setSizes[0] && count <= setSizes[len(setSizes)-1])
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 15:54:03 GMT 2024
    - 14.7K bytes
    - Viewed (0)
Back to top