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
116a24d5
Commit
116a24d5
authored
Jul 08, 2013
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused imports.
parent
22637a49
Changes
27
Hide whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
3 additions
and
92 deletions
+3
-92
example/loopback/main.go
example/loopback/main.go
+0
-5
example/multizip/main.go
example/multizip/main.go
+0
-3
example/statfs/main.go
example/statfs/main.go
+0
-2
fuse/bufferpool_test.go
fuse/bufferpool_test.go
+0
-3
fuse/nodefs/files.go
fuse/nodefs/files.go
+0
-6
fuse/nodefs/fsmount.go
fuse/nodefs/fsmount.go
+0
-2
fuse/nodefs/fsops.go
fuse/nodefs/fsops.go
+0
-2
fuse/nodefs/handle_test.go
fuse/nodefs/handle_test.go
+0
-3
fuse/nodefs/memnode_test.go
fuse/nodefs/memnode_test.go
+0
-3
fuse/opcode.go
fuse/opcode.go
+0
-4
fuse/pathfs/loopback.go
fuse/pathfs/loopback.go
+0
-6
fuse/pathfs/pathfs.go
fuse/pathfs/pathfs.go
+0
-2
fuse/pathfs/readonlyfs.go
fuse/pathfs/readonlyfs.go
+0
-2
fuse/pathfs/xattr_test.go
fuse/pathfs/xattr_test.go
+0
-3
fuse/test/cache_test.go
fuse/test/cache_test.go
+2
-3
fuse/test/fsetattr_test.go
fuse/test/fsetattr_test.go
+1
-2
fuse/test/loopback_test.go
fuse/test/loopback_test.go
+0
-8
splice/splice.go
splice/splice.go
+0
-2
unionfs/autounion_test.go
unionfs/autounion_test.go
+0
-4
unionfs/cachingfs.go
unionfs/cachingfs.go
+0
-2
unionfs/cachingfs_test.go
unionfs/cachingfs_test.go
+0
-5
unionfs/timedcache.go
unionfs/timedcache.go
+0
-3
unionfs/timedcache_test.go
unionfs/timedcache_test.go
+0
-5
unionfs/unionfs_test.go
unionfs/unionfs_test.go
+0
-3
zipfs/multizip.go
zipfs/multizip.go
+0
-3
zipfs/tarfs.go
zipfs/tarfs.go
+0
-3
zipfs/zipfs.go
zipfs/zipfs.go
+0
-3
No files found.
example/loopback/main.go
View file @
116a24d5
...
...
@@ -6,9 +6,7 @@ package main
import
(
"flag"
"fmt"
"log"
"os"
"runtime"
"time"
"github.com/hanwen/go-fuse/fuse"
...
...
@@ -16,9 +14,6 @@ import (
"github.com/hanwen/go-fuse/fuse/pathfs"
)
var
_
=
runtime
.
GOMAXPROCS
var
_
=
log
.
Print
func
main
()
{
// Scans the arg list and sets up flags
debug
:=
flag
.
Bool
(
"debug"
,
false
,
"print debugging messages."
)
...
...
example/multizip/main.go
View file @
116a24d5
...
...
@@ -3,7 +3,6 @@ package main
import
(
"flag"
"fmt"
"log"
"os"
"path/filepath"
...
...
@@ -12,8 +11,6 @@ import (
"github.com/hanwen/go-fuse/zipfs"
)
var
_
=
log
.
Printf
func
main
()
{
// Scans the arg list and sets up flags
debug
:=
flag
.
Bool
(
"debug"
,
false
,
"debug on"
)
...
...
example/statfs/main.go
View file @
116a24d5
...
...
@@ -15,8 +15,6 @@ import (
"time"
)
var
_
=
log
.
Printf
func
main
()
{
// Scans the arg list and sets up flags
debug
:=
flag
.
Bool
(
"debug"
,
false
,
"print debugging messages."
)
...
...
fuse/bufferpool_test.go
View file @
116a24d5
package
fuse
import
(
"fmt"
"testing"
)
var
_
=
fmt
.
Println
func
TestBufferPool
(
t
*
testing
.
T
)
{
bp
:=
NewBufferPool
()
...
...
fuse/nodefs/files.go
View file @
116a24d5
...
...
@@ -9,8 +9,6 @@ import (
"github.com/hanwen/go-fuse/fuse"
)
var
_
=
fmt
.
Println
// DataFile is for implementing read-only filesystems. This
// assumes we already have the data in memory.
type
dataFile
struct
{
...
...
@@ -108,8 +106,6 @@ type loopbackFile struct {
lock
sync
.
Mutex
}
var
_
=
(
File
)((
*
loopbackFile
)(
nil
))
func
(
f
*
loopbackFile
)
InnerFile
()
File
{
return
nil
}
...
...
@@ -217,8 +213,6 @@ type readOnlyFile struct {
File
}
var
_
=
(
File
)((
*
readOnlyFile
)(
nil
))
func
(
f
*
readOnlyFile
)
String
()
string
{
return
fmt
.
Sprintf
(
"readOnlyFile(%s)"
,
f
.
File
.
String
())
}
...
...
fuse/nodefs/fsmount.go
View file @
116a24d5
...
...
@@ -8,8 +8,6 @@ import (
"github.com/hanwen/go-fuse/fuse"
)
var
_
=
log
.
Println
// openedFile stores either an open dir or an open file.
type
openedFile
struct
{
handled
...
...
fuse/nodefs/fsops.go
View file @
116a24d5
...
...
@@ -13,8 +13,6 @@ import (
"github.com/hanwen/go-fuse/fuse"
)
var
_
=
log
.
Println
// Returns the RawFileSystem so it can be mounted.
func
(
c
*
FileSystemConnector
)
RawFS
()
fuse
.
RawFileSystem
{
return
(
*
rawBridge
)(
c
)
...
...
fuse/nodefs/handle_test.go
View file @
116a24d5
package
nodefs
import
(
"log"
"strings"
"testing"
"unsafe"
)
var
_
=
log
.
Println
func
markSeen
(
t
*
testing
.
T
,
substr
string
)
{
if
r
:=
recover
();
r
!=
nil
{
s
:=
r
.
(
string
)
...
...
fuse/nodefs/memnode_test.go
View file @
116a24d5
...
...
@@ -2,7 +2,6 @@ package nodefs
import
(
"io/ioutil"
"log"
"os"
"testing"
"time"
...
...
@@ -10,8 +9,6 @@ import (
"github.com/hanwen/go-fuse/fuse"
)
var
_
=
log
.
Println
const
testTtl
=
100
*
time
.
Millisecond
func
setupMemNodeTest
(
t
*
testing
.
T
)
(
wd
string
,
fs
FileSystem
,
clean
func
())
{
...
...
fuse/opcode.go
View file @
116a24d5
...
...
@@ -2,15 +2,11 @@ package fuse
import
(
"bytes"
"fmt"
"log"
"reflect"
"unsafe"
)
var
_
=
log
.
Printf
var
_
=
fmt
.
Printf
const
(
_OP_LOOKUP
=
int32
(
1
)
_OP_FORGET
=
int32
(
2
)
...
...
fuse/pathfs/loopback.go
View file @
116a24d5
package
pathfs
import
(
"fmt"
"io"
"log"
"os"
...
...
@@ -13,9 +12,6 @@ import (
"github.com/hanwen/go-fuse/fuse/nodefs"
)
var
_
=
fmt
.
Println
var
_
=
log
.
Println
type
loopbackFileSystem
struct
{
// TODO - this should need default fill in.
FileSystem
...
...
@@ -61,8 +57,6 @@ func (fs *loopbackFileSystem) GetAttr(name string, context *fuse.Context) (a *fu
return
a
,
fuse
.
OK
}
var
_
=
(
FileSystem
)((
*
loopbackFileSystem
)(
nil
))
func
(
fs
*
loopbackFileSystem
)
OpenDir
(
name
string
,
context
*
fuse
.
Context
)
(
stream
[]
fuse
.
DirEntry
,
status
fuse
.
Status
)
{
// What other ways beyond O_RDONLY are there to open
// directories?
...
...
fuse/pathfs/pathfs.go
View file @
116a24d5
...
...
@@ -12,8 +12,6 @@ import (
"github.com/hanwen/go-fuse/fuse/nodefs"
)
var
_
=
log
.
Println
// A parent pointer: node should be reachable as parent.children[name]
type
clientInodePath
struct
{
parent
*
pathInode
...
...
fuse/pathfs/readonlyfs.go
View file @
116a24d5
...
...
@@ -18,8 +18,6 @@ type readonlyFileSystem struct {
FileSystem
}
var
_
=
(
FileSystem
)((
*
readonlyFileSystem
)(
nil
))
func
(
fs
*
readonlyFileSystem
)
GetAttr
(
name
string
,
context
*
fuse
.
Context
)
(
*
fuse
.
Attr
,
fuse
.
Status
)
{
return
fs
.
FileSystem
.
GetAttr
(
name
,
context
)
}
...
...
fuse/pathfs/xattr_test.go
View file @
116a24d5
...
...
@@ -3,7 +3,6 @@ package pathfs
import
(
"bytes"
"io/ioutil"
"log"
"os"
"path/filepath"
"syscall"
...
...
@@ -13,8 +12,6 @@ import (
"github.com/hanwen/go-fuse/fuse/nodefs"
)
var
_
=
log
.
Print
var
xattrGolden
=
map
[
string
][]
byte
{
"user.attr1"
:
[]
byte
(
"val1"
),
"user.attr2"
:
[]
byte
(
"val2"
)}
...
...
fuse/test/cache_test.go
View file @
116a24d5
...
...
@@ -10,7 +10,6 @@ import (
"github.com/hanwen/go-fuse/fuse"
"github.com/hanwen/go-fuse/fuse/nodefs"
"github.com/hanwen/go-fuse/fuse/pathfs"
"github.com/hanwen/go-fuse/raw"
)
type
cacheFs
struct
{
...
...
@@ -24,7 +23,7 @@ func (fs *cacheFs) Open(name string, flags uint32, context *fuse.Context) (fuseF
}
return
&
nodefs
.
WithFlags
{
File
:
f
,
FuseFlags
:
raw
.
FOPEN_KEEP_CACHE
,
FuseFlags
:
fuse
.
FOPEN_KEEP_CACHE
,
},
c
}
...
...
@@ -127,7 +126,7 @@ func (fs *nonseekFs) Open(name string, flags uint32, context *fuse.Context) (fus
f
:=
nodefs
.
NewDataFile
(
data
)
return
&
nodefs
.
WithFlags
{
File
:
f
,
FuseFlags
:
raw
.
FOPEN_NONSEEKABLE
,
FuseFlags
:
fuse
.
FOPEN_NONSEEKABLE
,
},
fuse
.
OK
}
...
...
fuse/test/fsetattr_test.go
View file @
116a24d5
...
...
@@ -10,7 +10,6 @@ import (
"github.com/hanwen/go-fuse/fuse"
"github.com/hanwen/go-fuse/fuse/nodefs"
"github.com/hanwen/go-fuse/fuse/pathfs"
"github.com/hanwen/go-fuse/raw"
)
type
MutableDataFile
struct
{
...
...
@@ -149,7 +148,7 @@ func setupFAttrTest(t *testing.T, fs pathfs.FileSystem) (dir string, clean func(
// Trigger INIT.
os
.
Lstat
(
dir
)
if
state
.
KernelSettings
()
.
Flags
&
raw
.
CAP_FILE_OPS
==
0
{
if
state
.
KernelSettings
()
.
Flags
&
fuse
.
CAP_FILE_OPS
==
0
{
t
.
Log
(
"Mount does not support file operations"
)
}
...
...
fuse/test/loopback_test.go
View file @
116a24d5
...
...
@@ -4,13 +4,11 @@ import (
"fmt"
"io"
"io/ioutil"
"log"
"math/rand"
"os"
"os/exec"
"path/filepath"
"runtime"
"strings"
"syscall"
"testing"
"time"
...
...
@@ -20,12 +18,6 @@ import (
"github.com/hanwen/go-fuse/fuse/pathfs"
)
var
_
=
strings
.
Join
var
_
=
log
.
Println
////////////////
// state for our testcase, mostly constants
const
mode
uint32
=
0757
type
testCase
struct
{
...
...
splice/splice.go
View file @
116a24d5
...
...
@@ -10,8 +10,6 @@ import (
"syscall"
)
var
_
=
log
.
Println
var
maxPipeSize
int
var
resizable
bool
...
...
unionfs/autounion_test.go
View file @
116a24d5
package
unionfs
import
(
"fmt"
"io/ioutil"
"log"
"os"
...
...
@@ -13,9 +12,6 @@ import (
"github.com/hanwen/go-fuse/fuse/pathfs"
)
var
_
=
fmt
.
Print
var
_
=
log
.
Print
const
entryTtl
=
100
*
time
.
Millisecond
var
testAOpts
=
AutoUnionFsOptions
{
...
...
unionfs/cachingfs.go
View file @
116a24d5
...
...
@@ -11,8 +11,6 @@ import (
"github.com/hanwen/go-fuse/fuse/pathfs"
)
var
_
=
fmt
.
Println
const
_XATTRSEP
=
"@XATTR@"
type
attrResponse
struct
{
...
...
unionfs/cachingfs_test.go
View file @
116a24d5
package
unionfs
import
(
"fmt"
"io/ioutil"
"log"
"os"
"syscall"
"testing"
...
...
@@ -12,9 +10,6 @@ import (
"github.com/hanwen/go-fuse/fuse/pathfs"
)
var
_
=
fmt
.
Print
var
_
=
log
.
Print
func
modeMapEq
(
m1
,
m2
map
[
string
]
uint32
)
bool
{
if
len
(
m1
)
!=
len
(
m2
)
{
return
false
...
...
unionfs/timedcache.go
View file @
116a24d5
package
unionfs
import
(
"log"
"sync"
"time"
)
var
_
=
log
.
Println
type
cacheEntry
struct
{
data
interface
{}
...
...
unionfs/timedcache_test.go
View file @
116a24d5
package
unionfs
import
(
"fmt"
"log"
"testing"
"time"
)
var
_
=
fmt
.
Print
var
_
=
log
.
Print
func
TestTimedCacheUncacheable
(
t
*
testing
.
T
)
{
fetchCount
:=
0
fetch
:=
func
(
n
string
)
(
interface
{},
bool
)
{
...
...
unionfs/unionfs_test.go
View file @
116a24d5
...
...
@@ -20,9 +20,6 @@ import (
"github.com/hanwen/go-fuse/fuse/pathfs"
)
var
_
=
fmt
.
Print
var
_
=
log
.
Print
func
TestFilePathHash
(
t
*
testing
.
T
)
{
// Simple test coverage.
t
.
Log
(
filePathHash
(
"xyz/abc"
))
...
...
zipfs/multizip.go
View file @
116a24d5
...
...
@@ -19,9 +19,6 @@ import (
"github.com/hanwen/go-fuse/fuse/pathfs"
)
var
_
=
log
.
Printf
var
_
=
(
pathfs
.
FileSystem
)((
*
MultiZipFs
)(
nil
))
const
(
CONFIG_PREFIX
=
"config/"
)
...
...
zipfs/tarfs.go
View file @
116a24d5
...
...
@@ -5,7 +5,6 @@ import (
"bytes"
"compress/bzip2"
"compress/gzip"
"fmt"
"github.com/hanwen/go-fuse/fuse"
"io"
"os"
...
...
@@ -13,8 +12,6 @@ import (
"syscall"
)
var
_
=
fmt
.
Println
// TODO - handle symlinks.
func
HeaderToFileInfo
(
out
*
fuse
.
Attr
,
h
*
tar
.
Header
)
{
...
...
zipfs/zipfs.go
View file @
116a24d5
...
...
@@ -7,14 +7,11 @@ import (
"fmt"
"github.com/hanwen/go-fuse/fuse"
"io"
"log"
"os"
"path/filepath"
"strings"
)
var
_
=
log
.
Printf
type
ZipFile
struct
{
*
zip
.
File
}
...
...
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