Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go-fuse
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go-fuse
Commits
82748380
Commit
82748380
authored
Sep 15, 2016
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix thinko in types_darwin.go
Ensure all.bash tests compilation on both Darwin and Linux. Fixes #125.
parent
fcb5b5b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
all.bash
all.bash
+7
-0
fuse/types_darwin.go
fuse/types_darwin.go
+2
-2
No files found.
all.bash
View file @
82748380
...
...
@@ -6,6 +6,13 @@ for d in fuse zipfs unionfs fuse/test
do
(
cd
$d
# Make sure it compiles on all platforms.
for
GOOS
in
darwin linux
;
do
export
GOOS
go
test
-c
-i
github.com/hanwen/go-fuse/
$d
done
echo
"go test github.com/hanwen/go-fuse/
$d
"
go
test
github.com/hanwen/go-fuse/
$d
echo
"go test -race github.com/hanwen/go-fuse/
$d
"
...
...
fuse/types_darwin.go
View file @
82748380
...
...
@@ -148,6 +148,6 @@ func (s *StatfsOut) FromStatfsT(statfs *syscall.Statfs_t) {
s
.
Bavail
=
statfs
.
Bavail
s
.
Files
=
statfs
.
Files
s
.
Ffree
=
statfs
.
Ffree
s
.
Bsize
=
uint32
(
s
.
Iosize
)
// Iosize translates to Bsize: the optimal transfer size.
s
.
Frsize
=
s
.
Bsize
// Bsize translates to Frsize: the minimum transfer size.
s
.
Bsize
=
uint32
(
s
tatfs
.
Iosize
)
// Iosize translates to Bsize: the optimal transfer size.
s
.
Frsize
=
s
.
Bsize
// Bsize translates to Frsize: the minimum transfer size.
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment