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
42f12e1c
Commit
42f12e1c
authored
Jul 06, 2011
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AutoUnionFs: respond with ENOENT even when asking for a known
mount point.
parent
4f1e55f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
unionfs/autounion.go
unionfs/autounion.go
+3
-9
No files found.
unionfs/autounion.go
View file @
42f12e1c
package
unionfs
import
(
"fmt"
"github.com/hanwen/go-fuse/fuse"
"log"
"os"
...
...
@@ -276,12 +275,6 @@ func (me *AutoUnionFs) GetAttr(path string) (*os.FileInfo, fuse.Status) {
return
a
,
fuse
.
OK
}
if
me
.
getUnionFs
(
path
)
!=
nil
{
return
&
os
.
FileInfo
{
Mode
:
fuse
.
S_IFDIR
|
0755
,
},
fuse
.
OK
}
return
nil
,
fuse
.
ENOENT
}
...
...
@@ -315,6 +308,7 @@ func (me *AutoUnionFs) Open(path string, flags uint32) (fuse.File, fuse.Status)
}
return
nil
,
fuse
.
ENOENT
}
func
(
me
*
AutoUnionFs
)
Truncate
(
name
string
,
offset
uint64
)
(
code
fuse
.
Status
)
{
if
name
!=
filepath
.
Join
(
_CONFIG
,
_SCAN_CONFIG
)
{
log
.
Println
(
"Huh? Truncating unsupported write file"
,
name
)
...
...
@@ -332,8 +326,8 @@ func (me *AutoUnionFs) OpenDir(name string) (stream chan fuse.DirEntry, status f
name
=
""
case
""
:
default
:
log
.
Sp
rintf
(
"Argh! Don't know how to list dir %v"
,
name
)
return
fuse
.
ENOSYS
log
.
P
rintf
(
"Argh! Don't know how to list dir %v"
,
name
)
return
nil
,
fuse
.
ENOSYS
}
me
.
lock
.
RLock
()
...
...
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