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
5921525a
Commit
5921525a
authored
Sep 09, 2015
by
Aaron Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed special handling of statfs.
parent
4d5341f6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
15 deletions
+9
-15
connection.go
connection.go
+0
-8
conversions.go
conversions.go
+9
-3
ops.go
ops.go
+0
-4
No files found.
connection.go
View file @
5921525a
...
...
@@ -405,14 +405,6 @@ func (c *Connection) ReadOp() (ctx context.Context, op interface{}, err error) {
ctx
=
c
.
beginOp
(
inMsg
.
Header
()
.
Opcode
,
inMsg
.
Header
()
.
Unique
)
ctx
=
context
.
WithValue
(
ctx
,
contextKey
,
opState
{
inMsg
,
outMsg
,
op
})
// Special case: responding to statfs is required to make mounting work on
// OS X. We don't currently expose the capability for the file system to
// intercept this.
if
_
,
ok
:=
op
.
(
*
statFSOp
);
ok
{
c
.
Reply
(
ctx
,
nil
)
continue
}
// Return the op to the user.
return
}
...
...
conversions.go
View file @
5921525a
...
...
@@ -371,7 +371,7 @@ func convertInMessage(
}
case
fusekernel
.
OpStatfs
:
o
=
&
s
tatFSOp
{}
o
=
&
fuseops
.
S
tatFSOp
{}
case
fusekernel
.
OpInterrupt
:
type
input
fusekernel
.
InterruptIn
...
...
@@ -557,8 +557,14 @@ func (c *Connection) kernelResponseForOp(
case
*
fuseops
.
ReadSymlinkOp
:
m
.
AppendString
(
o
.
Target
)
case
*
statFSOp
:
m
.
Grow
(
unsafe
.
Sizeof
(
fusekernel
.
StatfsOut
{}))
case
*
fuseops
.
StatFSOp
:
out
:=
(
*
fusekernel
.
StatfsOut
)(
m
.
Grow
(
unsafe
.
Sizeof
(
fusekernel
.
StatfsOut
{})))
out
.
St
.
Blocks
=
o
.
Blocks
out
.
St
.
Bfree
=
o
.
BlocksFree
out
.
St
.
Bavail
=
o
.
BlocksAvailable
out
.
St
.
Files
=
o
.
Inodes
out
.
St
.
Ffree
=
o
.
InodesFree
out
.
St
.
Bsize
=
o
.
BlockSize
case
*
initOp
:
out
:=
(
*
fusekernel
.
InitOut
)(
m
.
Grow
(
unsafe
.
Sizeof
(
fusekernel
.
InitOut
{})))
...
...
ops.go
View file @
5921525a
...
...
@@ -26,10 +26,6 @@ type unknownOp struct {
Inode
fuseops
.
InodeID
}
// Required in order to mount on OS X.
type
statFSOp
struct
{
}
// Causes us to cancel the associated context.
type
interruptOp
struct
{
FuseID
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