Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 81 for zeros (0.23 sec)

  1. docs/debugging/xl-meta/main.go

    					if err := json.Unmarshal(buf.Bytes(), &ei); err == nil && ei.V2Obj != nil {
    						verID := uuid.UUID(header.VersionID).String()
    						if verID == "00000000-0000-0000-0000-000000000000" {
    							// If the version ID is all zeros, use the signature as version ID.
    							verID = fmt.Sprintf("null/%08x", header.Signature)
    							v0 = verID
    						}
    						idx := ei.V2Obj.EcIndex
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 17:56:22 GMT 2024
    - 20.2K bytes
    - Viewed (1)
  2. internal/lock/lock.go

    var ErrAlreadyLocked = errors.New("file already locked")
    
    // RLockedFile represents a read locked file, implements a special
    // closer which only closes the associated *os.File when the ref count.
    // has reached zero, i.e when all the readers have given up their locks.
    type RLockedFile struct {
    	*LockedFile
    	mutex sync.Mutex
    	refs  int // Holds read lock refs.
    }
    
    // IsClosed - Check if the rlocked file is already closed.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 2.5K bytes
    - Viewed (0)
  3. internal/grid/types.go

    		pool: sync.Pool{
    			New: func() interface{} {
    				var t T
    				return &t
    			},
    		},
    		emptySz: sz,
    	}
    }
    
    func (p *JSONPool[T]) new() *T {
    	var zero T
    	t := p.pool.Get().(*T)
    	*t = zero
    	return t
    }
    
    // JSON is a wrapper around a T object that can be serialized.
    // There is an internal value
    type JSON[T any] struct {
    	p   *JSONPool[T]
    	val *T
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 01 23:42:09 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  4. docs/throttle/README.md

    export MINIO_ROOT_PASSWORD=your-secret-key
    minio server http://server{1...8}/mnt/hdd{1...16}
    ```
    
    or
    
    ```sh
    mc admin config set myminio/ api requests_max=1600
    mc admin service restart myminio/
    ```
    
    > NOTE: A zero value of `requests_max` means MinIO will automatically calculate requests based on available RAM size and that is the default behavior.
    
    ### Configuring connection (wait) deadline
    
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Feb 12 00:51:25 GMT 2022
    - 2.4K bytes
    - Viewed (0)
  5. docs/debugging/xattr/main.go

    	flag.BoolVar(&set, "set", false, "this is a set attribute operation")
    
    	flag.Parse()
    
    	if set && value == 0 {
    		log.Fatalln("setting an attribute requires a non-zero value")
    	}
    
    	if !set && value > 0 {
    		log.Fatalln("to set a value please specify --set along with --value")
    	}
    
    	table := tablewriter.NewWriter(os.Stdout)
    	table.SetHeader([]string{"Name", "Value"})
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Dec 29 23:52:41 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  6. cmd/untar.go

    						return
    					}
    					asyncErrMu.Lock()
    					if asyncErr == nil {
    						asyncErr = err
    					}
    					asyncErrMu.Unlock()
    				}
    			}(name, header.FileInfo(), b)
    			continue
    		}
    
    		// If zero or earlier modtime, set to current.
    		// Otherwise the resulting objects will be invalid.
    		if header.ModTime.UnixNano() <= 0 {
    			header.ModTime = time.Now()
    		}
    
    		// Sync upload.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6K bytes
    - Viewed (0)
  7. cmd/object-multipart-handlers.go

    	uploadID, _, _, _, s3Error := getObjectResources(r.Form)
    	if s3Error != ErrNone {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Error), r.URL)
    		return
    	}
    
    	// Content-Length is required and should be non-zero
    	if r.ContentLength <= 0 {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrMissingPart), r.URL)
    		return
    	}
    
    	complMultipartUpload := &CompleteMultipartUpload{}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 39K bytes
    - Viewed (0)
  8. cmd/erasure-object.go

    		if _, _, err := rs.GetOffsetLength(objInfo.Size); err != nil {
    			// Make sure to return object info to provide extra information.
    			return &GetObjectReader{
    				ObjInfo: objInfo,
    			}, err
    		}
    
    		// Zero byte objects don't even need to further initialize pipes etc.
    		return NewGetObjectReaderFromReader(bytes.NewReader(nil), objInfo, opts)
    	}
    
    	if objInfo.IsRemote() {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 77.2K bytes
    - Viewed (2)
  9. cmd/api-errors.go

    	},
    	ErrInvalidCopyPartRange: {
    		Code:           "InvalidArgument",
    		Description:    "The x-amz-copy-source-range value must be of the form bytes=first-last where first and last are the zero-based offsets of the first and last bytes to copy",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrInvalidCopyPartRangeSource: {
    		Code:           "InvalidArgument",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 91.4K bytes
    - Viewed (7)
  10. cmd/object-api-utils.go

    	pr, pw := io.Pipe()
    	// Copy input to compressor
    	opts := compressOpts
    	if encrypted {
    		// The values used for padding are not a security concern,
    		// but we choose pseudo-random numbers instead of just zeros.
    		rng := rand.New(rand.NewSource(time.Now().UnixNano()))
    		opts = append([]s2.WriterOption{s2.WriterPadding(compPadEncrypted), s2.WriterPaddingSrc(rng)}, compressOpts...)
    	}
    	comp := s2.NewWriter(pw, opts...)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 11 11:55:34 GMT 2024
    - 35.6K bytes
    - Viewed (1)
Back to top