Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for Tata (0.14 sec)

  1. cmd/test-utils_test.go

    		2 // CRLF
    }
    
    func mustGetPutObjReader(t TestErrHandler, data io.Reader, size int64, md5hex, sha256hex string) *PutObjReader {
    	hr, err := hash.NewReader(context.Background(), data, size, md5hex, sha256hex, size)
    	if err != nil {
    		t.Fatal(err)
    	}
    	return NewPutObjReader(hr)
    }
    
    // calculateSignedChunkLength - calculates the length of the overall stream (data + metadata)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  2. cmd/xl-storage.go

    	attr := "user.total_deletes"
    
    	data := make([]byte, 8)
    	binary.LittleEndian.PutUint64(data, deleteCount)
    	return xattr.LSet(s.formatFile, attr, data)
    }
    
    func (s *xlStorage) setWriteAttribute(writeCount uint64) error {
    	attr := "user.total_writes"
    
    	data := make([]byte, 8)
    	binary.LittleEndian.PutUint64(data, writeCount)
    	return xattr.LSet(s.formatFile, attr, data)
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  3. cmd/iam-store.go

    // from policy.Policy to PolicyDoc. To avoid a migration, loading supports
    // both the old and the new formats.
    func (d *PolicyDoc) parseJSON(data []byte) error {
    	json := jsoniter.ConfigCompatibleWithStandardLibrary
    	var doc PolicyDoc
    	err := json.Unmarshal(data, &doc)
    	if err != nil {
    		err2 := json.Unmarshal(data, &doc.Policy)
    		if err2 != nil {
    			// Just return the first error.
    			return err
    		}
    		d.Policy = doc.Policy
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Apr 27 10:04:10 GMT 2024
    - 75.2K bytes
    - Viewed (2)
  4. cmd/object-api-listobjects_test.go

    			}
    			if oi.DeleteMarker != object.addDeleteMarker {
    				t.Fatalf("Expected, marker %t : got %t", object.addDeleteMarker, oi.DeleteMarker)
    			}
    		}
    	}
    
    	// Formulating the result data set to be expected from ListObjects call inside the tests,
    	// This will be used in testCases and used for asserting the correctness of ListObjects output in the tests.
    
    	resultCases := []ListObjectsInfo{
    		{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 11:07:40 GMT 2024
    - 73.1K bytes
    - Viewed (0)
  5. cmd/erasure-object.go

    			if !metaArr[index].InlineData() {
    				// If the data is not inlined, we may end up incorrectly
    				// inlining the data here, that leads to an inconsistent
    				// situation where some objects are were not inlined
    				// were now inlined, make sure to `nil` the Data such
    				// that xl.meta is written as expected.
    				metaArr[index].Data = nil
    			}
    			metaArr[index].Metadata = srcInfo.UserDefined
    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)
  6. cmd/erasure-server-pool.go

    	b := z.BackendInfo()
    	poolReadQuorums := make([]int, len(b.StandardSCData))
    	poolWriteQuorums := make([]int, len(b.StandardSCData))
    	for i, data := range b.StandardSCData {
    		poolReadQuorums[i] = data
    		poolWriteQuorums[i] = data
    		if data == b.StandardSCParity {
    			poolWriteQuorums[i] = data + 1
    		}
    	}
    
    	// Check if disks are healing on in-case of VMware vsphere deployments.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 80.5K bytes
    - Viewed (0)
  7. cmd/api-errors.go

    	},
    	ErrCastFailed: {
    		Code:           "CastFailed",
    		Description:    "Attempt to convert from one data type to another using CAST failed in the SQL expression.",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrInvalidCast: {
    		Code:           "InvalidCast",
    		Description:    "Attempt to convert from one data type to another using CAST failed in the SQL expression.",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    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)
  8. cmd/admin-handlers-users.go

    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(s3Err), r.URL)
    		return
    	}
    	data, err := io.ReadAll(r.Body)
    	if err != nil {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrInvalidRequest), r.URL)
    		return
    	}
    	reader := bytes.NewReader(data)
    	zr, err := zip.NewReader(reader, int64(len(data)))
    	if err != nil {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrInvalidRequest), r.URL)
    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)
  9. cmd/batch-handlers.go

    		}
    		return err
    	}
    	if len(data) == 0 {
    		// Seems to be empty create a new batchRepl object.
    		return nil
    	}
    	if len(data) <= 4 {
    		return fmt.Errorf("%s: no data", ri.JobType)
    	}
    	// Read header
    	switch binary.LittleEndian.Uint16(data[0:2]) {
    	case format:
    	default:
    		return fmt.Errorf("%s: unknown format: %d", ri.JobType, binary.LittleEndian.Uint16(data[0:2]))
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 55.2K bytes
    - Viewed (0)
Back to top