Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jacobsa-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
jacobsa-fuse
Commits
81c3047f
Commit
81c3047f
authored
Sep 10, 2015
by
Aaron Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revised the public StatFSOp docs for the BlockSize/IoSize split.
parent
e59a45f1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
fuseops/ops.go
fuseops/ops.go
+18
-6
No files found.
fuseops/ops.go
View file @
81c3047f
...
...
@@ -46,13 +46,14 @@ type StatFSOp struct {
// with the block counts below, by callers of statfs(2) to infer the file
// system's capacity and space availability.
//
// On Linux this can be any value, which will be faitfully returned to the
// caller of statfs(2) (see the code walk above). On OS X it appears it must
// be a power of 2 in [2^9, 2^17].
// On Linux this is surfaced as statfs::f_frsize, matching the posix standard
// (http://goo.gl/LktgrF), which says that f_blocks and friends are in units
// of f_frsize. On OS X this is surfaced as statfs::f_bsize, which plays the
// same roll.
//
// On
OS X this also affects statfs::f_iosize, which is documented as
the
//
"optimal transfer block size". It does not appear to cause osxfuse to
//
change the size of data in WriteFile ops, though
.
// On
Linux this can be any value, and will be faithfully returned to
the
//
caller of statfs(2) (see the code walk above). On OS X it appears it must
//
be a power of 2 in the range [2^9, 2^17]
.
//
// This interface does not distinguish between blocks and block fragments.
BlockSize
uint32
...
...
@@ -67,6 +68,17 @@ type StatFSOp struct {
BlocksFree
uint64
BlocksAvailable
uint64
// The preferred size of writes to and reads from the file system, in bytes.
// This may affect clients that use statfs(2) to size buffers correctly.
//
// On Linux this is surfaced as statfs::f_bsize, and on OS X as
// statfs::f_iosize. Both are documented in `man 2 statfs` as "optimal
// transfer block size".
//
// On Linux this can be any value. On OS X it appears it must be a power of 2
// in the range [2^9, 2^20].
IoSize
uint32
// The total number of inodes in the file system, and how many remain free.
Inodes
uint64
InodesFree
uint64
...
...
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