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
fa265b73
Commit
fa265b73
authored
Feb 21, 2013
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix WriteIn type for Darwin.
parent
c98fbba1
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
33 additions
and
19 deletions
+33
-19
raw/print.go
raw/print.go
+0
-8
raw/print_darwin.go
raw/print_darwin.go
+5
-0
raw/print_linux.go
raw/print_linux.go
+8
-0
raw/types.go
raw/types.go
+2
-11
raw/types_darwin.go
raw/types_darwin.go
+7
-0
raw/types_linux.go
raw/types_linux.go
+11
-0
No files found.
raw/print.go
View file @
fa265b73
...
...
@@ -206,14 +206,6 @@ func (me *StatfsOut) String() string {
me
.
Bsize
,
me
.
NameLen
,
me
.
Frsize
)
}
func
(
me
*
WriteIn
)
String
()
string
{
return
fmt
.
Sprintf
(
"{Fh %d off %d sz %d %s L %d %s}"
,
me
.
Fh
,
me
.
Offset
,
me
.
Size
,
FlagString
(
writeFlagNames
,
int
(
me
.
WriteFlags
),
""
),
me
.
LockOwner
,
FlagString
(
OpenFlagNames
,
int
(
me
.
Flags
),
"RDONLY"
))
}
func
(
o
*
NotifyInvalEntryOut
)
String
()
string
{
return
fmt
.
Sprintf
(
"{parent %d sz %d}"
,
o
.
Parent
,
o
.
NameLen
)
}
...
...
raw/print_darwin.go
View file @
fa265b73
...
...
@@ -27,3 +27,8 @@ func (me *ReadIn) String() string {
FlagString
(
readFlagNames
,
int
(
me
.
ReadFlags
),
""
))
}
func
(
me
*
WriteIn
)
String
()
string
{
return
fmt
.
Sprintf
(
"{Fh %d off %d sz %d %s}"
,
me
.
Fh
,
me
.
Offset
,
me
.
Size
,
FlagString
(
writeFlagNames
,
int
(
me
.
WriteFlags
),
""
))
}
raw/print_linux.go
View file @
fa265b73
...
...
@@ -37,3 +37,11 @@ func (me *ReadIn) String() string {
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
,
FlagString
(
writeFlagNames
,
int
(
me
.
WriteFlags
),
""
),
me
.
LockOwner
,
FlagString
(
OpenFlagNames
,
int
(
me
.
Flags
),
"RDONLY"
))
}
raw/types.go
View file @
fa265b73
...
...
@@ -92,6 +92,8 @@ const (
FOPEN_DIRECT_IO
=
(
1
<<
0
)
FOPEN_KEEP_CACHE
=
(
1
<<
1
)
FOPEN_NONSEEKABLE
=
(
1
<<
2
)
)
type
OpenOut
struct
{
...
...
@@ -367,7 +369,6 @@ type Dirent struct {
Typ
uint32
}
const
(
READ_LOCKOWNER
=
(
1
<<
1
)
)
...
...
@@ -376,13 +377,3 @@ const (
WRITE_CACHE
=
(
1
<<
0
)
WRITE_LOCKOWNER
=
(
1
<<
1
)
)
type
WriteIn
struct
{
Fh
uint64
Offset
uint64
Size
uint32
WriteFlags
uint32
LockOwner
uint64
Flags
uint32
Padding
uint32
}
raw/types_darwin.go
View file @
fa265b73
...
...
@@ -56,3 +56,10 @@ type ReadIn struct {
Size
uint32
ReadFlags
uint32
}
type
WriteIn
struct
{
Fh
uint64
Offset
uint64
Size
uint32
WriteFlags
uint32
}
raw/types_linux.go
View file @
fa265b73
...
...
@@ -51,3 +51,14 @@ type ReadIn struct {
Flags
uint32
Padding
uint32
}
type
WriteIn
struct
{
Fh
uint64
Offset
uint64
Size
uint32
WriteFlags
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