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
c98fbba1
Commit
c98fbba1
authored
Feb 20, 2013
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix ReadIn type for darwin.
parent
e75e9054
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
36 additions
and
20 deletions
+36
-20
raw/print.go
raw/print.go
+0
-8
raw/print_darwin.go
raw/print_darwin.go
+8
-1
raw/print_linux.go
raw/print_linux.go
+8
-0
raw/types.go
raw/types.go
+1
-10
raw/types_darwin.go
raw/types_darwin.go
+8
-1
raw/types_linux.go
raw/types_linux.go
+11
-0
No files found.
raw/print.go
View file @
c98fbba1
...
...
@@ -206,14 +206,6 @@ func (me *StatfsOut) String() string {
me
.
Bsize
,
me
.
NameLen
,
me
.
Frsize
)
}
func
(
me
*
ReadIn
)
String
()
string
{
return
fmt
.
Sprintf
(
"{Fh %d off %d sz %d %s L %d %s}"
,
me
.
Fh
,
me
.
Offset
,
me
.
Size
,
FlagString
(
readFlagNames
,
int
(
me
.
ReadFlags
),
""
),
me
.
LockOwner
,
FlagString
(
OpenFlagNames
,
int
(
me
.
Flags
),
"RDONLY"
))
}
func
(
me
*
WriteIn
)
String
()
string
{
return
fmt
.
Sprintf
(
"{Fh %d off %d sz %d %s L %d %s}"
,
me
.
Fh
,
me
.
Offset
,
me
.
Size
,
...
...
raw/print_darwin.go
View file @
c98fbba1
...
...
@@ -20,3 +20,10 @@ func (a *Attr) String() string {
}
func
(
me
*
GetAttrIn
)
String
()
string
{
return
""
}
func
(
me
*
ReadIn
)
String
()
string
{
return
fmt
.
Sprintf
(
"{Fh %d off %d sz %d %s L %d %s}"
,
me
.
Fh
,
me
.
Offset
,
me
.
Size
,
FlagString
(
readFlagNames
,
int
(
me
.
ReadFlags
),
""
))
}
raw/print_linux.go
View file @
c98fbba1
...
...
@@ -29,3 +29,11 @@ func (a *Attr) String() string {
func
(
me
*
GetAttrIn
)
String
()
string
{
return
fmt
.
Sprintf
(
"{Fh %d}"
,
me
.
Fh_
)
}
func
(
me
*
ReadIn
)
String
()
string
{
return
fmt
.
Sprintf
(
"{Fh %d off %d sz %d %s L %d %s}"
,
me
.
Fh
,
me
.
Offset
,
me
.
Size
,
FlagString
(
readFlagNames
,
int
(
me
.
ReadFlags
),
""
),
me
.
LockOwner
,
FlagString
(
OpenFlagNames
,
int
(
me
.
Flags
),
"RDONLY"
))
}
raw/types.go
View file @
c98fbba1
...
...
@@ -367,20 +367,11 @@ type Dirent struct {
Typ
uint32
}
const
(
READ_LOCKOWNER
=
(
1
<<
1
)
)
type
ReadIn
struct
{
Fh
uint64
Offset
uint64
Size
uint32
ReadFlags
uint32
LockOwner
uint64
Flags
uint32
Padding
uint32
}
const
(
WRITE_CACHE
=
(
1
<<
0
)
WRITE_LOCKOWNER
=
(
1
<<
1
)
...
...
raw/types_darwin.go
View file @
c98fbba1
...
...
@@ -49,3 +49,10 @@ func (g *GetAttrIn) Flags() uint32 {
func
(
g
*
GetAttrIn
)
Fh
()
uint64
{
return
0
}
type
ReadIn
struct
{
Fh
uint64
Offset
uint64
Size
uint32
ReadFlags
uint32
}
raw/types_linux.go
View file @
c98fbba1
...
...
@@ -40,3 +40,14 @@ func (g *GetAttrIn) Flags() uint32 {
func
(
g
*
GetAttrIn
)
Fh
()
uint64
{
return
g
.
Fh_
}
type
ReadIn
struct
{
Fh
uint64
Offset
uint64
Size
uint32
ReadFlags
uint32
LockOwner
uint64
Flags
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