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
6b3e9553
Commit
6b3e9553
authored
May 19, 2012
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix fsetattr_test.go.
parent
d4e694da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
fuse/fsetattr_test.go
fuse/fsetattr_test.go
+9
-8
No files found.
fuse/fsetattr_test.go
View file @
6b3e9553
...
...
@@ -45,15 +45,15 @@ func (f *MutableDataFile) Release() {
}
func
(
f
*
MutableDataFile
)
getAttr
()
*
Attr
{
a
:=
f
.
Attr
a
.
Size
=
uint64
(
len
(
f
.
data
))
return
&
a
func
(
f
*
MutableDataFile
)
getAttr
(
out
*
Attr
)
{
*
out
=
f
.
Attr
out
.
Size
=
uint64
(
len
(
f
.
data
))
}
func
(
f
*
MutableDataFile
)
GetAttr
(
)
(
*
Attr
,
Status
)
{
func
(
f
*
MutableDataFile
)
GetAttr
(
out
*
Attr
)
Status
{
f
.
GetAttrCalled
=
true
return
f
.
getAttr
(),
OK
f
.
getAttr
(
out
)
return
OK
}
func
(
f
*
MutableDataFile
)
Utimens
(
atimeNs
int64
,
mtimeNs
int64
)
Status
{
...
...
@@ -93,9 +93,10 @@ func (fs *FSetAttrFs) GetAttr(name string, context *Context) (*Attr, Status) {
return
&
Attr
{
Mode
:
S_IFDIR
|
0700
},
OK
}
if
name
==
"file"
&&
fs
.
file
!=
nil
{
a
:=
fs
.
file
.
getAttr
()
var
a
Attr
fs
.
file
.
getAttr
(
&
a
)
a
.
Mode
|=
S_IFREG
return
a
,
OK
return
&
a
,
OK
}
return
nil
,
ENOENT
}
...
...
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