From 99ddd35343a74f2f1a625e644a4bdb6850653da2 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Fri, 5 May 2017 08:28:08 -0700 Subject: [PATCH] docs: use IEC format such as iB everywhere. (#4247) --- cmd/object-api-multipart_test.go | 4 ++-- cmd/object-handlers_test.go | 22 +++++++++++----------- docs/minio-limitations.md | 2 +- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/cmd/object-api-multipart_test.go b/cmd/object-api-multipart_test.go index 5ac80fcf6..b78bb8c7d 100644 --- a/cmd/object-api-multipart_test.go +++ b/cmd/object-api-multipart_test.go @@ -1782,8 +1782,8 @@ func testObjectCompleteMultipartUpload(obj ObjectLayer, instanceType string, t T } uploadIDs = append(uploadIDs, uploadID) - // Parts with size greater than 5 MB. - // Generating a 6MB byte array. + // Parts with size greater than 5 MiB. + // Generating a 6MiB byte array. validPart := bytes.Repeat([]byte("abcdef"), 1*humanize.MiByte) validPartMD5 := getMD5Hash(validPart) // Create multipart parts. diff --git a/cmd/object-handlers_test.go b/cmd/object-handlers_test.go index ddc6d9091..4c48f303e 100644 --- a/cmd/object-handlers_test.go +++ b/cmd/object-handlers_test.go @@ -2126,8 +2126,8 @@ func testAPICompleteMultipartHandler(obj ObjectLayer, instanceType, bucketName s uploadIDs = append(uploadIDs, uploadID) } - // Parts with size greater than 5 MB. - // Generating a 6MB byte array. + // Parts with size greater than 5 MiB. + // Generating a 6 MiB byte array. validPart := bytes.Repeat([]byte("abcdef"), 1*humanize.MiByte) validPartMD5 := getMD5Hash(validPart) // Create multipart parts. @@ -2147,11 +2147,11 @@ func testAPICompleteMultipartHandler(obj ObjectLayer, instanceType, bucketName s {bucketName, objectName, uploadIDs[0], 2, "efgh", "1f7690ebdd9b4caf8fab49ca1757bf27", int64(len("efgh"))}, {bucketName, objectName, uploadIDs[0], 3, "ijkl", "09a0877d04abf8759f99adec02baf579", int64(len("abcd"))}, {bucketName, objectName, uploadIDs[0], 4, "mnop", "e132e96a5ddad6da8b07bba6f6131fef", int64(len("abcd"))}, - // Part with size larger than 5Mb. + // Part with size larger than 5 MiB. {bucketName, objectName, uploadIDs[0], 5, string(validPart), validPartMD5, int64(len(string(validPart)))}, {bucketName, objectName, uploadIDs[0], 6, string(validPart), validPartMD5, int64(len(string(validPart)))}, - // Part with size larger than 5Mb. + // Part with size larger than 5 MiB. // Parts uploaded for anonymous/unsigned API handler test. {bucketName, objectName, uploadIDs[1], 1, string(validPart), validPartMD5, int64(len(string(validPart)))}, {bucketName, objectName, uploadIDs[1], 2, string(validPart), validPartMD5, int64(len(string(validPart)))}, @@ -2192,7 +2192,7 @@ func testAPICompleteMultipartHandler(obj ObjectLayer, instanceType, bucketName s }, // inputParts - 3. // Case with valid parts,but parts are unsorted. - // Part size greater than 5MB. + // Part size greater than 5 MiB. { []completePart{ {ETag: validPartMD5, PartNumber: 6}, @@ -2201,7 +2201,7 @@ func testAPICompleteMultipartHandler(obj ObjectLayer, instanceType, bucketName s }, // inputParts - 4. // Case with valid part. - // Part size greater than 5MB. + // Part size greater than 5 MiB. { []completePart{ {ETag: validPartMD5, PartNumber: 5}, @@ -2211,7 +2211,7 @@ func testAPICompleteMultipartHandler(obj ObjectLayer, instanceType, bucketName s // inputParts - 5. // Used for the case of testing for anonymous API request. - // Part size greater than 5MB. + // Part size greater than 5 MiB. { []completePart{ {ETag: validPartMD5, PartNumber: 1}, @@ -2481,8 +2481,8 @@ func testAPIAbortMultipartHandler(obj ObjectLayer, instanceType, bucketName stri uploadIDs = append(uploadIDs, uploadID) } - // Parts with size greater than 5 MB. - // Generating a 6MB byte array. + // Parts with size greater than 5 MiB. + // Generating a 6 MiB byte array. validPart := bytes.Repeat([]byte("abcdef"), 1*humanize.MiByte) validPartMD5 := getMD5Hash(validPart) // Create multipart parts. @@ -2502,11 +2502,11 @@ func testAPIAbortMultipartHandler(obj ObjectLayer, instanceType, bucketName stri {bucketName, objectName, uploadIDs[0], 2, "efgh", "1f7690ebdd9b4caf8fab49ca1757bf27", int64(len("efgh"))}, {bucketName, objectName, uploadIDs[0], 3, "ijkl", "09a0877d04abf8759f99adec02baf579", int64(len("abcd"))}, {bucketName, objectName, uploadIDs[0], 4, "mnop", "e132e96a5ddad6da8b07bba6f6131fef", int64(len("abcd"))}, - // Part with size larger than 5Mb. + // Part with size larger than 5 MiB. {bucketName, objectName, uploadIDs[0], 5, string(validPart), validPartMD5, int64(len(string(validPart)))}, {bucketName, objectName, uploadIDs[0], 6, string(validPart), validPartMD5, int64(len(string(validPart)))}, - // Part with size larger than 5Mb. + // Part with size larger than 5 MiB. // Parts uploaded for anonymous/unsigned API handler test. {bucketName, objectName, uploadIDs[1], 1, string(validPart), validPartMD5, int64(len(string(validPart)))}, {bucketName, objectName, uploadIDs[1], 2, string(validPart), validPartMD5, int64(len(string(validPart)))}, diff --git a/docs/minio-limitations.md b/docs/minio-limitations.md index 9e59ee747..9ce71969a 100644 --- a/docs/minio-limitations.md +++ b/docs/minio-limitations.md @@ -13,7 +13,7 @@ |Item|Specification| |:---|:---| -|Web browser upload size limit| 5GB| +|Web browser upload size limit| 5GiB| ### Limits of S3 API