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
b216a171
Commit
b216a171
authored
Apr 18, 2011
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run Gofmt.
parent
f738f096
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
7 deletions
+6
-7
README
README
+3
-3
fuse/default_test.go
fuse/default_test.go
+0
-1
fuse/types.go
fuse/types.go
+1
-1
zipfs/multizip_test.go
zipfs/multizip_test.go
+1
-1
zipfs/zipfs.go
zipfs/zipfs.go
+1
-1
No files found.
README
View file @
b216a171
...
...
@@ -7,8 +7,8 @@ HIGHLIGHTS
filesystem benchmarks, using the gc compiler. For many real world
applications, the difference will be negligible.
* Supports in-process mounting of different PathFileSystems onto
each
other
.
* Supports in-process mounting of different PathFileSystems onto
subdirectories of the FUSE mount
.
* Includes two fleshed out examples, zipfs and unionfs.
...
...
@@ -49,7 +49,7 @@ EXAMPLES
* union/autounionfs.go: creates UnionFs mounts automatically based on
existence of READONLY symlinks.
Tested on:
- x86 32bits (Fedora 14).
...
...
fuse/default_test.go
View file @
b216a171
...
...
@@ -35,4 +35,3 @@ func TestDummyFile(t *testing.T) {
_
=
fileDir
_
=
filePtr
}
fuse/types.go
View file @
b216a171
...
...
@@ -82,7 +82,7 @@ const (
// TODO - get this from a canonical place.
PAGESIZE
=
4096
O_ANYWRITE
=
uint32
(
os
.
O_WRONLY
|
os
.
O_RDWR
|
os
.
O_APPEND
|
os
.
O_CREATE
|
os
.
O_TRUNC
)
O_ANYWRITE
=
uint32
(
os
.
O_WRONLY
|
os
.
O_RDWR
|
os
.
O_APPEND
|
os
.
O_CREATE
|
os
.
O_TRUNC
)
)
type
Status
int32
...
...
zipfs/multizip_test.go
View file @
b216a171
...
...
@@ -73,7 +73,7 @@ func TestMultiZipFs(t *testing.T) {
err
=
f
.
Close
()
CheckSuccess
(
err
)
fi
,
err
=
os
.
Lstat
(
mountPoint
+
"/zipmount"
)
fi
,
err
=
os
.
Lstat
(
mountPoint
+
"/zipmount"
)
if
!
fi
.
IsDirectory
()
{
t
.
Errorf
(
"Expect directory at /zipmount"
)
}
...
...
zipfs/zipfs.go
View file @
b216a171
...
...
@@ -136,7 +136,7 @@ func (me *ZipFileFuse) GetAttr(name string) (*fuse.Attr, fuse.Status) {
}
func
(
me
*
ZipFileFuse
)
Open
(
name
string
,
flags
uint32
)
(
file
fuse
.
RawFuseFile
,
code
fuse
.
Status
)
{
if
flags
&
fuse
.
O_ANYWRITE
!=
0
{
if
flags
&
fuse
.
O_ANYWRITE
!=
0
{
return
nil
,
fuse
.
EPERM
}
...
...
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