Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 49 for partNumbers (0.13 sec)

  1. cmd/storage-datatypes_test.go

    	var buf bytes.Buffer
    	msgp.Encode(&buf, &v)
    	rd := msgp.NewEndlessReader(buf.Bytes(), b)
    	dc := msgp.NewReader(rd)
    	b.Log("Size:", buf.Len(), "bytes")
    	b.SetBytes(1)
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 9.4K bytes
    - Viewed (0)
  2. internal/etag/etag.go

    	etag, err := hex.DecodeString(prefix)
    	if err != nil {
    		return nil, err
    	}
    	partNumber, err := strconv.Atoi(suffix[1:]) // suffix[0] == '-' Therefore, we start parsing at suffix[1]
    	if err != nil {
    		return nil, err
    	}
    	if strict && (partNumber == 0 || partNumber > 10000) {
    		return nil, fmt.Errorf("etag: invalid part number %d", partNumber)
    	}
    	return ETag(append(etag, suffix...)), nil
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Sun Mar 10 21:09:36 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  3. buildscripts/multipart-quorum-test.sh

    		find ${WORK_DIR}/disk${i}/.minio.sys/multipart/ -type f -name "part.1" -delete
    	done
    	cat <<EOF >parts.json
    {
        "Parts": [
            {
                "PartNumber": 1,
                "ETag": "5f363e0e58a95f06cbe9bbc662c5dfb6"
            },
            {
                "PartNumber": 2,
                "ETag": "5f363e0e58a95f06cbe9bbc662c5dfb6"
            }
        ]
    }
    EOF
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Fri Sep 06 10:51:23 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  4. cmd/object-handlers_test.go

    	a := 0
    	b := globalMinPartSize
    	var parts []CompletePart
    	for partNumber := 1; partNumber <= 2; partNumber++ {
    		// initialize HTTP NewRecorder, this records any mutations to response writer inside the handler.
    		rec := httptest.NewRecorder()
    		cpPartURL := getCopyObjectPartURL("", bucketName, testObject, uploadID, fmt.Sprintf("%d", partNumber))
    
    		// construct HTTP request for copy object.
    		var req *http.Request
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu Sep 12 20:10:44 UTC 2024
    - 163.2K bytes
    - Viewed (0)
  5. docs/site-replication/run-replication-with-checksum-header.sh

    	PART_ETAG=$(echo "${UPLOAD_PART_OUT}" | jq '.ETag')
    	if [ "${idx}" == 10 ]; then
    		PARTS="${PARTS}{\"ETag\": ${PART_ETAG}, \"ChecksumSHA256\": \"${PART_CHKSUM}\", \"PartNumber\": ${idx}}"
    	else
    		PARTS="${PARTS}{\"ETag\": ${PART_ETAG}, \"ChecksumSHA256\": \"${PART_CHKSUM}\", \"PartNumber\": ${idx}},"
    	fi
    done
    
    echo "{\"Parts\":[${PARTS}]}" >fileparts.json
    jq <fileparts.json
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Mon Jul 29 08:02:16 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  6. cmd/xl-storage-format-v1.go

    }
    
    // ChecksumInfo - carries checksums of individual scattered parts per disk.
    type ChecksumInfo struct {
    	PartNumber int
    	Algorithm  BitrotAlgorithm
    	Hash       []byte
    }
    
    type checksumInfoJSON struct {
    	Name      string `json:"name"`
    	Algorithm string `json:"algorithm"`
    	Hash      string `json:"hash,omitempty"`
    }
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  7. cmd/object-lambda-handlers.go

    		Region:    globalSite.Region(),
    	})
    	if err != nil {
    		return levent.Event{}, err
    	}
    
    	reqParams := url.Values{}
    	if partNumberStr := r.Form.Get("partNumber"); partNumberStr != "" {
    		reqParams.Set("partNumber", partNumberStr)
    	}
    	for k := range supportedHeadGetReqParams {
    		if v := r.Form.Get(k); v != "" {
    			reqParams.Set(k, v)
    		}
    	}
    
    	extraHeaders := http.Header{}
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Mon Jul 22 07:04:48 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  8. cmd/xl-storage-format-v1_gen.go

    		zb0001--
    		field, err = dc.ReadMapKeyPtr()
    		if err != nil {
    			err = msgp.WrapError(err)
    			return
    		}
    		switch msgp.UnsafeString(field) {
    		case "PartNumber":
    			z.PartNumber, err = dc.ReadInt()
    			if err != nil {
    				err = msgp.WrapError(err, "PartNumber")
    				return
    			}
    		case "Algorithm":
    			{
    				var zb0002 uint
    				zb0002, err = dc.ReadUint()
    				if err != nil {
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 41.2K bytes
    - Viewed (0)
  9. cmd/object-api-utils.go

    }
    
    // Returns the part file name which matches the partNumber and etag.
    func getPartFile(entriesTrie *trie.Trie, partNumber int, etag string) (partFile string) {
    	for _, match := range entriesTrie.PrefixMatch(fmt.Sprintf("%.5d.%s.", partNumber, etag)) {
    		partFile = match
    		break
    	}
    	return partFile
    }
    
    func partNumberToRangeSpec(oi ObjectInfo, partNumber int) *HTTPRangeSpec {
    	if oi.Size == 0 || len(oi.Parts) == 0 {
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  10. cmd/object-api-errors.go

    }
    
    // InvalidPart One or more of the specified parts could not be found
    type InvalidPart struct {
    	PartNumber int
    	ExpETag    string
    	GotETag    string
    }
    
    func (e InvalidPart) Error() string {
    	return fmt.Sprintf("Specified part could not be found. PartNumber %d, Expected %s, got %s",
    		e.PartNumber, e.ExpETag, e.GotETag)
    }
    
    // PartTooSmall - error if part size is less than 5MB.
    type PartTooSmall struct {
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Fri Aug 09 02:05:14 UTC 2024
    - 22.1K bytes
    - Viewed (0)
Back to top