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
Levin Zimmermann
go-fuse
Commits
3a403f14
Commit
3a403f14
authored
Aug 14, 2010
by
Ivan Krasin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed flags argument from FileSystem.GetAttr
parent
59bf8ed0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
fuse/fuse.go
fuse/fuse.go
+2
-2
fuse/fuse_test.go
fuse/fuse_test.go
+1
-1
No files found.
fuse/fuse.go
View file @
3a403f14
...
...
@@ -16,7 +16,7 @@ const (
type
FileSystem
interface
{
List
(
parent
string
)
(
names
[]
string
,
code
Status
)
Lookup
(
parent
,
filename
string
)
(
out
*
Attr
,
code
Status
)
GetAttr
(
path
string
,
id
*
Identity
,
flags
uint32
)
(
out
*
AttrOut
,
code
Status
)
GetAttr
(
path
string
,
id
*
Identity
)
(
out
*
AttrOut
,
code
Status
)
}
type
Mounted
interface
{
...
...
@@ -174,7 +174,7 @@ func getAttr(fs FileSystem, h *InHeader, r io.Reader, c *managerClient) (data []
if
resp
.
code
!=
OK
{
return
serialize
(
h
,
resp
.
code
,
nil
)
}
out
,
res
:=
fs
.
GetAttr
(
resp
.
path
,
&
h
.
Identity
,
in
.
GetAttrFlags
)
out
,
res
:=
fs
.
GetAttr
(
resp
.
path
,
&
h
.
Identity
)
if
res
!=
OK
{
return
serialize
(
h
,
res
,
nil
)
}
...
...
fuse/fuse_test.go
View file @
3a403f14
...
...
@@ -20,7 +20,7 @@ var (
type
testFuse
struct
{}
func
(
fs
*
testFuse
)
GetAttr
(
path
string
,
id
*
Identity
,
flags
uint32
)
(
out
*
AttrOut
,
code
Status
)
{
func
(
fs
*
testFuse
)
GetAttr
(
path
string
,
id
*
Identity
)
(
out
*
AttrOut
,
code
Status
)
{
out
=
new
(
AttrOut
)
out
.
Mode
=
S_IFDIR
return
...
...
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