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
afb9051a
Commit
afb9051a
authored
Aug 29, 2024
by
Han-Wen Nienhuys
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fuse: provide InitIn/InitOut.Flags64()
Change-Id: I7e23afdfeb6ff65211f6ac3413e8e86e66341313
parent
4df83d57
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
3 deletions
+11
-3
fuse/opcode.go
fuse/opcode.go
+1
-1
fuse/print.go
fuse/print.go
+2
-2
fuse/types.go
fuse/types.go
+8
-0
No files found.
fuse/opcode.go
View file @
afb9051a
...
@@ -99,7 +99,7 @@ func doInit(server *Server, req *request) {
...
@@ -99,7 +99,7 @@ func doInit(server *Server, req *request) {
return
return
}
}
kernelFlags
:=
uint64
(
input
.
Flags
)
|
uint64
(
input
.
Flags2
)
<<
32
kernelFlags
:=
input
.
Flags64
()
server
.
reqMu
.
Lock
()
server
.
reqMu
.
Lock
()
server
.
kernelSettings
=
*
input
server
.
kernelSettings
=
*
input
kernelFlags
&=
(
CAP_ASYNC_READ
|
CAP_BIG_WRITES
|
CAP_FILE_OPS
|
kernelFlags
&=
(
CAP_ASYNC_READ
|
CAP_BIG_WRITES
|
CAP_FILE_OPS
|
...
...
fuse/print.go
View file @
afb9051a
...
@@ -222,13 +222,13 @@ func (in *OpenOut) string() string {
...
@@ -222,13 +222,13 @@ func (in *OpenOut) string() string {
func
(
in
*
InitIn
)
string
()
string
{
func
(
in
*
InitIn
)
string
()
string
{
return
fmt
.
Sprintf
(
"{%d.%d Ra %d %s}"
,
return
fmt
.
Sprintf
(
"{%d.%d Ra %d %s}"
,
in
.
Major
,
in
.
Minor
,
in
.
MaxReadAhead
,
in
.
Major
,
in
.
Minor
,
in
.
MaxReadAhead
,
flagString
(
initFlagNames
,
int64
(
in
.
Flags
)
|
(
int64
(
in
.
Flags2
)
<<
32
),
""
))
flagString
(
initFlagNames
,
int64
(
in
.
Flags
64
()
),
""
))
}
}
func
(
o
*
InitOut
)
string
()
string
{
func
(
o
*
InitOut
)
string
()
string
{
return
fmt
.
Sprintf
(
"{%d.%d Ra %d %s %d/%d Wr %d Tg %d MaxPages %d MaxStack %d}"
,
return
fmt
.
Sprintf
(
"{%d.%d Ra %d %s %d/%d Wr %d Tg %d MaxPages %d MaxStack %d}"
,
o
.
Major
,
o
.
Minor
,
o
.
MaxReadAhead
,
o
.
Major
,
o
.
Minor
,
o
.
MaxReadAhead
,
flagString
(
initFlagNames
,
int64
(
o
.
Flags
)
|
int64
(
o
.
Flags2
)
<<
32
,
""
),
flagString
(
initFlagNames
,
int64
(
o
.
Flags
64
())
,
""
),
o
.
CongestionThreshold
,
o
.
MaxBackground
,
o
.
MaxWrite
,
o
.
CongestionThreshold
,
o
.
MaxBackground
,
o
.
MaxWrite
,
o
.
TimeGran
,
o
.
MaxPages
,
o
.
MaxStackDepth
)
o
.
TimeGran
,
o
.
MaxPages
,
o
.
MaxStackDepth
)
}
}
...
...
fuse/types.go
View file @
afb9051a
...
@@ -322,6 +322,10 @@ type InitIn struct {
...
@@ -322,6 +322,10 @@ type InitIn struct {
Unused
[
11
]
uint32
Unused
[
11
]
uint32
}
}
func
(
i
*
InitIn
)
Flags64
()
uint64
{
return
uint64
(
i
.
Flags
)
|
uint64
(
i
.
Flags2
)
<<
32
}
type
InitOut
struct
{
type
InitOut
struct
{
Major
uint32
Major
uint32
Minor
uint32
Minor
uint32
...
@@ -338,6 +342,10 @@ type InitOut struct {
...
@@ -338,6 +342,10 @@ type InitOut struct {
Unused
[
6
]
uint32
Unused
[
6
]
uint32
}
}
func
(
o
*
InitOut
)
Flags64
()
uint64
{
return
uint64
(
o
.
Flags
)
|
uint64
(
o
.
Flags2
)
<<
32
}
type
_CuseInitIn
struct
{
type
_CuseInitIn
struct
{
InHeader
InHeader
Major
uint32
Major
uint32
...
...
Kirill Smelkov
@kirr
mentioned in commit
9546fc23
·
Sep 04, 2024
mentioned in commit
9546fc23
mentioned in commit 9546fc238dc6fbe714c11d2028373c5fbc58b5db
Toggle commit list
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