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
cb4ffbc0
Commit
cb4ffbc0
authored
Feb 24, 2013
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new kernel data types for API 20 and 21 (readdirplus, fallocate.)
parent
9334ba57
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
raw/print.go
raw/print.go
+9
-0
raw/types.go
raw/types.go
+11
-0
No files found.
raw/print.go
View file @
cb4ffbc0
...
...
@@ -36,6 +36,10 @@ func init() {
CAP_SPLICE_READ
:
"SPLICE_READ"
,
CAP_FLOCK_LOCKS
:
"FLOCK_LOCKS"
,
CAP_IOCTL_DIR
:
"IOCTL_DIR"
,
CAP_AUTO_INVAL_DATA
:
"AUTO_INVAL_DATA"
,
CAP_READDIRPLUS
:
"READDIRPLUS"
,
CAP_READDIRPLUS_AUTO
:
"READDIRPLUS_AUTO"
,
}
releaseFlagNames
=
map
[
int
]
string
{
RELEASE_FLUSH
:
"FLUSH"
,
...
...
@@ -217,3 +221,8 @@ func (o *NotifyInvalInodeOut) String() string {
func
(
o
*
NotifyInvalDeleteOut
)
String
()
string
{
return
fmt
.
Sprintf
(
"{parent %d ch %d sz %d}"
,
o
.
Parent
,
o
.
Child
,
o
.
NameLen
)
}
func
(
f
*
FallocateIn
)
String
()
string
{
return
fmt
.
Sprintf
(
"{Fh %d off %d sz %d mod 0%o}"
,
f
.
Fh
,
f
.
Offset
,
f
.
Length
,
f
.
Mode
)
}
raw/types.go
View file @
cb4ffbc0
...
...
@@ -116,6 +116,9 @@ const (
CAP_SPLICE_READ
=
(
1
<<
9
)
CAP_FLOCK_LOCKS
=
(
1
<<
10
)
CAP_IOCTL_DIR
=
(
1
<<
11
)
CAP_AUTO_INVAL_DATA
=
(
1
<<
12
)
CAP_READDIRPLUS
=
(
1
<<
13
)
CAP_READDIRPLUS_AUTO
=
(
1
<<
14
)
)
type
InitIn
struct
{
...
...
@@ -377,3 +380,11 @@ const (
WRITE_CACHE
=
(
1
<<
0
)
WRITE_LOCKOWNER
=
(
1
<<
1
)
)
type
FallocateIn
struct
{
Fh
uint64
Offset
uint64
Length
uint64
Mode
uint32
Padding
uint32
}
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