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
1fe92061
Commit
1fe92061
authored
Feb 21, 2011
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run gofmt.
parent
f1a7913d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
10 deletions
+8
-10
examplelib/zipfs.go
examplelib/zipfs.go
+3
-4
fuse/bufferpool_test.go
fuse/bufferpool_test.go
+2
-1
fuse/direntry.go
fuse/direntry.go
+0
-1
fuse/types.go
fuse/types.go
+3
-4
No files found.
examplelib/zipfs.go
View file @
1fe92061
...
...
@@ -71,9 +71,9 @@ func (me *ZipDirTree) FindDir(name string) *ZipDirTree {
}
type
ZipFileFuse
struct
{
zipReader
*
zip
.
Reader
tree
*
ZipDirTree
ZipFileName
string
zipReader
*
zip
.
Reader
tree
*
ZipDirTree
ZipFileName
string
fuse
.
DefaultPathFilesystem
}
...
...
@@ -101,7 +101,6 @@ func zipFilesToTree(files []*zip.File) *ZipDirTree {
}
func
NewZipFileFuse
(
name
string
)
*
ZipFileFuse
{
z
:=
new
(
ZipFileFuse
)
r
,
err
:=
zip
.
OpenReader
(
name
)
...
...
fuse/bufferpool_test.go
View file @
1fe92061
...
...
@@ -4,6 +4,7 @@ import (
"testing"
"fmt"
)
var
_
=
fmt
.
Println
func
TestIntToExponent
(
t
*
testing
.
T
)
{
...
...
@@ -29,7 +30,7 @@ func TestBufferPool(t *testing.T) {
bp
:=
NewBufferPool
()
b1
:=
bp
.
AllocBuffer
(
PAGESIZE
)
_
=
bp
.
AllocBuffer
(
2
*
PAGESIZE
)
_
=
bp
.
AllocBuffer
(
2
*
PAGESIZE
)
bp
.
FreeBuffer
(
b1
)
b1_2
:=
bp
.
AllocBuffer
(
PAGESIZE
)
...
...
fuse/direntry.go
View file @
1fe92061
...
...
@@ -117,4 +117,3 @@ func (me *FuseDir) ReadDir(input *ReadIn) (*DirEntryList, Status) {
func
(
me
*
FuseDir
)
ReleaseDir
()
{
}
fuse/types.go
View file @
1fe92061
...
...
@@ -587,8 +587,7 @@ type PathFilesystem interface {
// Include this method in your implementation to inherit default nop
// implementations.
type
DefaultRawFuseDir
struct
{}
type
DefaultPathFilesystem
struct
{}
type
DefaultRawFuseFile
struct
{}
type
DefaultRawFuseDir
struct
{}
type
DefaultPathFilesystem
struct
{}
type
DefaultRawFuseFile
struct
{}
type
DefaultRawFuseFileSystem
struct
{}
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