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
69795504
Commit
69795504
authored
Aug 23, 2011
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add ENODATA.
parent
8e03191c
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
8 deletions
+8
-8
fuse/fsetattr_test.go
fuse/fsetattr_test.go
+1
-1
fuse/pathdebug.go
fuse/pathdebug.go
+1
-2
fuse/types.go
fuse/types.go
+1
-0
fuse/xattr_test.go
fuse/xattr_test.go
+3
-3
unionfs/autounion.go
unionfs/autounion.go
+1
-1
unionfs/unionfs.go
unionfs/unionfs.go
+1
-1
No files found.
fuse/fsetattr_test.go
View file @
69795504
...
...
@@ -84,7 +84,7 @@ type FSetAttrFs struct {
}
func
(
me
*
FSetAttrFs
)
GetXAttr
(
name
string
,
attr
string
)
([]
byte
,
Status
)
{
return
nil
,
syscall
.
ENODATA
return
nil
,
ENODATA
}
func
(
me
*
FSetAttrFs
)
GetAttr
(
name
string
)
(
*
os
.
FileInfo
,
Status
)
{
...
...
fuse/pathdebug.go
View file @
69795504
...
...
@@ -8,7 +8,6 @@ import (
"sort"
"strings"
"sync"
"syscall"
)
var
_
=
fmt
.
Println
...
...
@@ -68,7 +67,7 @@ func (me *FileSystemDebug) getContent(path string) []byte {
func
(
me
*
FileSystemDebug
)
GetXAttr
(
name
string
,
attr
string
)
([]
byte
,
Status
)
{
if
strings
.
HasPrefix
(
name
,
DebugDir
)
{
return
nil
,
syscall
.
ENODATA
return
nil
,
ENODATA
}
return
me
.
FileSystem
.
GetXAttr
(
name
,
attr
)
}
...
...
fuse/types.go
View file @
69795504
...
...
@@ -48,6 +48,7 @@ const (
EIO
=
Status
(
syscall
.
EIO
)
ENOENT
=
Status
(
syscall
.
ENOENT
)
ENOSYS
=
Status
(
syscall
.
ENOSYS
)
ENODATA
=
Status
(
syscall
.
ENODATA
)
ENOTDIR
=
Status
(
syscall
.
ENOTDIR
)
EPERM
=
Status
(
syscall
.
EPERM
)
ERANGE
=
Status
(
syscall
.
ERANGE
)
...
...
fuse/xattr_test.go
View file @
69795504
...
...
@@ -55,7 +55,7 @@ func (me *XAttrTestFs) GetXAttr(name string, attr string) ([]byte, Status) {
}
v
,
ok
:=
me
.
attrs
[
attr
]
if
!
ok
{
return
nil
,
syscall
.
ENODATA
return
nil
,
ENODATA
}
log
.
Println
(
"GetXAttr"
,
string
(
v
))
return
v
,
OK
...
...
@@ -79,7 +79,7 @@ func (me *XAttrTestFs) RemoveXAttr(name string, attr string) Status {
_
,
ok
:=
me
.
attrs
[
attr
]
log
.
Println
(
"RemoveXAttr"
,
name
,
attr
,
ok
)
if
!
ok
{
return
syscall
.
ENODATA
return
ENODATA
}
me
.
attrs
[
attr
]
=
nil
,
false
return
OK
...
...
@@ -149,7 +149,7 @@ func TestXAttrRead(t *testing.T) {
Removexattr
(
mounted
,
"third"
)
val
,
errno
=
GetXAttr
(
mounted
,
"third"
)
if
errno
!=
syscall
.
ENODATA
{
if
errno
!=
ENODATA
{
t
.
Error
(
"Data not removed?"
,
errno
,
val
)
}
}
unionfs/autounion.go
View file @
69795504
...
...
@@ -232,7 +232,7 @@ func (me *AutoUnionFs) Unlink(path string) (code fuse.Status) {
// Must define this, because ENOSYS will suspend all GetXAttr calls.
func
(
me
*
AutoUnionFs
)
GetXAttr
(
name
string
,
attr
string
)
([]
byte
,
fuse
.
Status
)
{
return
nil
,
syscall
.
ENODATA
return
nil
,
fuse
.
ENODATA
}
func
(
me
*
AutoUnionFs
)
GetAttr
(
path
string
)
(
*
os
.
FileInfo
,
fuse
.
Status
)
{
...
...
unionfs/unionfs.go
View file @
69795504
...
...
@@ -611,7 +611,7 @@ func (me *UnionFs) GetAttr(name string) (a *os.FileInfo, s fuse.Status) {
func
(
me
*
UnionFs
)
GetXAttr
(
name
string
,
attr
string
)
([]
byte
,
fuse
.
Status
)
{
if
name
==
_DROP_CACHE
{
return
nil
,
syscall
.
ENODATA
return
nil
,
fuse
.
ENODATA
}
r
:=
me
.
getBranch
(
name
)
...
...
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