Compare commits

..

2 Commits

Author SHA1 Message Date
Harshavardhana 048af5e5cd Fix an urgent issue in OS X build for 10.12 sierra. 2016-10-24 13:34:01 -07:00
Harshavardhana b367365daa Fix dockerfile. 2016-10-21 18:46:33 -07:00
2 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ COPY . /go/src/app
RUN \
apk add --no-cache git && \
go-wrapper download && \
go-wrapper install -ldflags "-X github.com/minio/minio/cmd.Version=2016-10-14T04:00:39Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2016-10-14T04-00-39Z -X github.com/minio/minio/cmd.CommitID=8c59a4166865e65192e91986e8bee329851bbf7c" && \
go-wrapper install -ldflags "-X github.com/minio/minio/cmd.Version=2016-10-22T00:50:41Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2016-10-22T00-50-41Z -X github.com/minio/minio/cmd.CommitID=d1331ecc5cc4abc7304157cc26be64618821a77c" && \
mkdir -p /export/docker && \
cp /go/src/app/docs/Docker.md /export/docker/ && \
rm -rf /go/pkg /go/src && \
+7 -2
View File
@@ -31,9 +31,14 @@ import (
const (
// readDirentBufSize for syscall.ReadDirent() to hold multiple
// directory entries in one buffer. golang source uses 4096 as
// buffer size whereas we use 1MiB for large entries in single
// buffer size whereas we use 256KiB for large entries in single
// operation to avoid multiple syscall.ReadDirent() call.
readDirentBufSize = 1 * 1024 * 1024 // 1MiB.
//
// We would ideally want 1MiB. but now sticking to 256KiB due to
// a bug in OS X 10.12 where large buffers results in
// syscall.Readdirent() returning garbage values.
// - https://github.com/minio/minio/issues/3075
readDirentBufSize = 4096 * 64 // 256KiB.
)
// actual length of the byte array from the c - world.