View | Details | Raw Unified | Return to bug 244582
Collapse All | Expand All

(-)www/minio-client/Makefile (-2 / +2 lines)
Lines 26-33 Link Here
26
.endif
26
.endif
27
27
28
USE_GITHUB=	yes
28
USE_GITHUB=	yes
29
GHTAG=		RELEASE.2020-02-20T23-49-54Z
29
GHTAG=		RELEASE.2020-02-25T18-10-03Z
30
COMMIT_ID=	415271412666c03c51748f6cb8e73ecbf97dc30b
30
COMMIT_ID=	67e90b8fcbc9781fa3bf2d183cd457c2e5267f81
31
GH_TUPLE=	minio:mc:${GHTAG}:DEFAULT \
31
GH_TUPLE=	minio:mc:${GHTAG}:DEFAULT \
32
		StackExchange:wmi:cbe66965904d:stackexchange_wmi/vendor/github.com/StackExchange/wmi \
32
		StackExchange:wmi:cbe66965904d:stackexchange_wmi/vendor/github.com/StackExchange/wmi \
33
		cheggaaa:pb:v1.0.28:cheggaaa_pb/vendor/github.com/cheggaaa/pb \
33
		cheggaaa:pb:v1.0.28:cheggaaa_pb/vendor/github.com/cheggaaa/pb \
(-)www/minio-client/distinfo (-3 / +3 lines)
Lines 1-6 Link Here
1
TIMESTAMP = 1582580981
1
TIMESTAMP = 1583267731
2
SHA256 (minio-mc-2020.02.20.23.49.54-RELEASE.2020-02-20T23-49-54Z_GH0.tar.gz) = 738958cca37386bd0400f165e2524dd59a38de612033927703300e41f193319b
2
SHA256 (minio-mc-2020.02.25.18.10.03-RELEASE.2020-02-25T18-10-03Z_GH0.tar.gz) = f9bdad2af0f23f63f0d05b25517bf5440d8969919ec509b6471aff5da4bf1942
3
SIZE (minio-mc-2020.02.20.23.49.54-RELEASE.2020-02-20T23-49-54Z_GH0.tar.gz) = 346959
3
SIZE (minio-mc-2020.02.25.18.10.03-RELEASE.2020-02-25T18-10-03Z_GH0.tar.gz) = 347013
4
SHA256 (StackExchange-wmi-cbe66965904d_GH0.tar.gz) = 14dbc4af6952acdb1b941d002cd36fd2299aa6b3144cbcbddbb032c47f816da5
4
SHA256 (StackExchange-wmi-cbe66965904d_GH0.tar.gz) = 14dbc4af6952acdb1b941d002cd36fd2299aa6b3144cbcbddbb032c47f816da5
5
SIZE (StackExchange-wmi-cbe66965904d_GH0.tar.gz) = 11279
5
SIZE (StackExchange-wmi-cbe66965904d_GH0.tar.gz) = 11279
6
SHA256 (cheggaaa-pb-v1.0.28_GH0.tar.gz) = f745c5636d3fb59bffab5f9d2a745a94a9608166c20c90936fc66848a5e816e6
6
SHA256 (cheggaaa-pb-v1.0.28_GH0.tar.gz) = f745c5636d3fb59bffab5f9d2a745a94a9608166c20c90936fc66848a5e816e6
(-)www/minio-client/files/patch-pkg_disk_stat__freebsd.go (-68 lines)
Lines 1-68 Link Here
1
--- pkg/disk/stat_freebsd.go.orig	2020-02-24 22:16:58 UTC
2
+++ pkg/disk/stat_freebsd.go
3
@@ -0,0 +1,65 @@
4
+// +build freebsd
5
+
6
+/*
7
+ * MinIO Cloud Storage, (C) 2019-2020 MinIO, Inc.
8
+ *
9
+ * Licensed under the Apache License, Version 2.0 (the "License");
10
+ * you may not use this file except in compliance with the License.
11
+ * You may obtain a copy of the License at
12
+ *
13
+ *     http://www.apache.org/licenses/LICENSE-2.0
14
+ *
15
+ * Unless required by applicable law or agreed to in writing, software
16
+ * distributed under the License is distributed on an "AS IS" BASIS,
17
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
+ * See the License for the specific language governing permissions and
19
+ * limitations under the License.
20
+ */
21
+
22
+package disk
23
+
24
+import (
25
+	"os/user"
26
+	"strconv"
27
+	"strings"
28
+	"syscall"
29
+)
30
+
31
+// GetFileSystemAttrs return the file system attribute as string; containing mode,
32
+// uid, gid, uname, Gname, atime, mtime, ctime and md5
33
+func GetFileSystemAttrs(file string) (string, error) {
34
+	st := syscall.Stat_t{}
35
+	err := syscall.Stat(file, &st)
36
+	if err != nil {
37
+		return "", err
38
+	}
39
+
40
+	var fileAttr strings.Builder
41
+	fileAttr.WriteString("atime:")
42
+	fileAttr.WriteString(strconv.Itoa(int(st.Atimespec.Sec)))
43
+	fileAttr.WriteString("/ctime:")
44
+	fileAttr.WriteString(strconv.Itoa(int(st.Ctimespec.Sec)))
45
+	fileAttr.WriteString("/gid:")
46
+	fileAttr.WriteString(strconv.Itoa(int(st.Gid)))
47
+
48
+	g, err := user.LookupGroupId(strconv.FormatUint(uint64(st.Gid), 10))
49
+	if err == nil {
50
+		fileAttr.WriteString("/gname:")
51
+		fileAttr.WriteString(g.Name)
52
+	}
53
+
54
+	fileAttr.WriteString("/mode:")
55
+	fileAttr.WriteString(strconv.Itoa(int(st.Mode)))
56
+	fileAttr.WriteString("/mtime:")
57
+	fileAttr.WriteString(strconv.Itoa(int(st.Mtimespec.Sec)))
58
+	fileAttr.WriteString("/uid:")
59
+	fileAttr.WriteString(strconv.Itoa(int(st.Uid)))
60
+
61
+	u, err := user.LookupId(strconv.FormatUint(uint64(st.Uid), 10))
62
+	if err == nil {
63
+		fileAttr.WriteString("/uname:")
64
+		fileAttr.WriteString(u.Username)
65
+	}
66
+
67
+	return fileAttr.String(), nil
68
+}

Return to bug 244582