Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for Truong (0.19 sec)

  1. internal/config/compress/legacy.go

    	"github.com/minio/minio/internal/config"
    )
    
    // Legacy envs.
    const (
    	EnvCompress                 = "MINIO_COMPRESS"
    	EnvCompressMimeTypesLegacy1 = "MINIO_COMPRESS_MIMETYPES"
    
    	// These envs were wrong but we supported them for a long time
    	// so keep them here to support existing deployments.
    	EnvCompressAllowEncryptionLegacy = "MINIO_COMPRESS_ALLOW_ENCRYPTION"
    	EnvCompressExtensionsLegacy      = "MINIO_COMPRESS_EXTENSIONS"
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Jul 17 15:43:14 GMT 2022
    - 1.8K bytes
    - Viewed (0)
  2. internal/disk/stat_linux_s390x.go

    		Free:   uint64(s.Frsize) * s.Bavail,
    		Files:  s.Files,
    		Ffree:  s.Ffree,
    		FSType: getFSType(s.Type),
    	}
    	// Check for overflows.
    	// https://github.com/minio/minio/issues/8035
    	// XFS can show wrong values at times error out
    	// in such scenarios.
    	if info.Free > info.Total {
    		return info, fmt.Errorf("detected free space (%d) > total drive space (%d), fs corruption at (%s). please run 'fsck'", info.Free, info.Total, path)
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 2.6K bytes
    - Viewed (2)
  3. cmd/xl-storage-format-v2_test.go

    	if v0.header.Signature != wantSig {
    		t.Errorf("Wrong signature, want %#v, got %#v", wantSig, v0.header.Signature)
    	}
    	v, err := xl.getIdx(0)
    	if err != nil {
    		t.Fatal(err)
    	}
    	wantTimeStamp := "2022-10-27T07:40:53.195813291Z"
    	got := string(v.DeleteMarker.MetaSys[ReservedMetadataPrefixLower+ReplicationTimestamp])
    	if wantTimeStamp != got {
    		t.Errorf("Wrong timestamp, want %v, got %v", wantTimeStamp, got)
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Mar 08 17:50:48 GMT 2024
    - 36.4K bytes
    - Viewed (0)
  4. internal/s3select/sql/evaluate.go

    		return nil, errInvalidASTNode
    	}
    	rhs = *eltVal
    
    	// If RHS is array compare each element.
    	if arr, ok := rhs.ToArray(); ok {
    		for _, element := range arr {
    			// If we have an array we are on the wrong level.
    			if cmp(element, *lhs) {
    				return FromBool(true), nil
    			}
    		}
    		return FromBool(false), nil
    	}
    
    	return FromBool(cmp(rhs, *lhs)), nil
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 12K bytes
    - Viewed (0)
  5. internal/crypto/header_test.go

    	},
    	{
    		Header: http.Header{
    			"X-Amz-Server-Side-Encryption-Customer-Algorithm": []string{"AES256"},
    			"X-Amz-Server-Side-Encryption-Customer-Key":       []string{"DzJieXRlc2xvbmdzZWNyZXRrZXltdXN0cHJvdmlkZWQ="}, // wrong client key
    			"X-Amz-Server-Side-Encryption-Customer-Key-Md5":   []string{"7PpPLAK26ONlVUGOWlusfg=="},
    		},
    		ExpectedErr: ErrCustomerKeyMD5Mismatch, // 5
    	},
    	{
    		Header: http.Header{
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Jul 13 14:52:15 GMT 2022
    - 21.4K bytes
    - Viewed (0)
  6. internal/bucket/lifecycle/noncurrentversion.go

    }
    
    // IsDaysNull returns true if days field is null
    func (n NoncurrentVersionExpiration) IsDaysNull() bool {
    	return n.NoncurrentDays == ExpirationDays(0)
    }
    
    // Validate returns an error with wrong value
    func (n NoncurrentVersionExpiration) Validate() error {
    	if !n.set {
    		return nil
    	}
    	val := int(n.NoncurrentDays)
    	switch {
    	case val == 0 && n.NewerNoncurrentVersions == 0:
    		// both fields can't be zero
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Dec 14 17:41:44 GMT 2021
    - 5.3K bytes
    - Viewed (1)
  7. internal/ioutil/ioutil_test.go

    		r := NewSkipReader(testCase.src, testCase.skipLen)
    		b, err := io.ReadAll(r)
    		if err != nil {
    			t.Errorf("Case %d: Unexpected err %v", i, err)
    		}
    		if string(b) != testCase.expected {
    			t.Errorf("Case %d: Got wrong result: %v", i, string(b))
    		}
    	}
    }
    
    func TestSameFile(t *testing.T) {
    	f, err := os.CreateTemp("", "")
    	if err != nil {
    		t.Errorf("Error creating tmp file: %v", err)
    	}
    	tmpFile := f.Name()
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Feb 02 11:02:31 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  8. internal/crypto/key_test.go

    		if err != nil {
    			t.Fatalf("Test %d failed to decode expected part-key: %v", i, err)
    		}
    		partKey := key.DerivePartKey(test.PartID)
    		if !bytes.Equal(partKey[:], expectedPartKey) {
    			t.Errorf("Test %d derives wrong part-key: got '%s' want: '%s'", i, hex.EncodeToString(partKey[:]), test.PartKey)
    		}
    	}
    }
    
    var sealUnsealETagTests = []string{
    	"",
    	"90682b8e8cc7609c",
    	"90682b8e8cc7609c4671e1d64c73fc30",
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Feb 02 00:13:57 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  9. internal/disk/stat_linux_32bit.go

    		Free:   uint64(s.Frsize) * s.Bavail,
    		Files:  s.Files,
    		Ffree:  s.Ffree,
    		FSType: getFSType(s.Type),
    	}
    	// Check for overflows.
    	// https://github.com/minio/minio/issues/8035
    	// XFS can show wrong values at times error out
    	// in such scenarios.
    	if info.Free > info.Total {
    		return info, fmt.Errorf("detected free space (%d) > total drive space (%d), fs corruption at (%s). please run 'fsck'", info.Free, info.Total, path)
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  10. cmd/object-api-utils_test.go

    func TestGetCompleteMultipartMD5(t *testing.T) {
    	testCases := []struct {
    		parts          []CompletePart
    		expectedResult string
    		expectedErr    string
    	}{
    		// Wrong MD5 hash string, returns md5um of hash
    		{[]CompletePart{{ETag: "wrong-md5-hash-string"}}, "0deb8cb07527b4b2669c861cb9653607-1", ""},
    
    		// Single CompletePart with valid MD5 hash string.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 23.4K bytes
    - Viewed (0)
Back to top