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
330c80da
Commit
330c80da
authored
Oct 13, 2011
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run gofmt.
parent
d822ee41
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
4 deletions
+6
-4
example/unionfs/main.go
example/unionfs/main.go
+1
-1
fuse/fsops.go
fuse/fsops.go
+1
-1
fuse/handle_test.go
fuse/handle_test.go
+1
-0
fuse/misc.go
fuse/misc.go
+1
-0
fuse/misc_test.go
fuse/misc_test.go
+1
-1
fuse/pathfs.go
fuse/pathfs.go
+1
-1
No files found.
example/unionfs/main.go
View file @
330c80da
...
...
@@ -16,7 +16,7 @@ func main() {
entry_ttl
:=
flag
.
Float64
(
"entry_ttl"
,
1.0
,
"fuse entry cache TTL."
)
negative_ttl
:=
flag
.
Float64
(
"negative_ttl"
,
1.0
,
"fuse negative entry cache TTL."
)
delcache_ttl
:=
flag
.
Float64
(
"deletion_cache_ttl"
,
5.0
,
"Deletion cache TTL in seconds."
)
branchcache_ttl
:=
flag
.
Float64
(
"branchcache_ttl"
,
5.0
,
"Branch cache TTL in seconds."
)
deldirname
:=
flag
.
String
(
...
...
fuse/fsops.go
View file @
330c80da
...
...
@@ -172,7 +172,7 @@ func (me *FileSystemConnector) SetAttr(header *InHeader, input *SetAttrIn) (out
// Must call GetAttr(); the filesystem may override some of
// the changes we effect here.
fi
,
code
:=
node
.
fsInode
.
GetAttr
(
f
,
&
header
.
Context
)
if
code
.
Ok
()
{
out
=
node
.
mount
.
fileInfoToAttr
(
fi
,
header
.
NodeId
)
}
...
...
fuse/handle_test.go
View file @
330c80da
...
...
@@ -6,6 +6,7 @@ import (
"testing"
"unsafe"
)
var
_
=
log
.
Println
func
markSeen
(
t
*
testing
.
T
,
substr
string
)
{
...
...
fuse/misc.go
View file @
330c80da
...
...
@@ -161,6 +161,7 @@ func VerboseTest() bool {
}
const
AT_FDCWD
=
-
100
func
Linkat
(
fd1
int
,
n1
string
,
fd2
int
,
n2
string
)
int
{
b1
:=
syscall
.
StringBytePtr
(
n1
)
b2
:=
syscall
.
StringBytePtr
(
n2
)
...
...
fuse/misc_test.go
View file @
330c80da
...
...
@@ -28,7 +28,7 @@ func TestOsErrorToErrno(t *testing.T) {
func
TestLinkAt
(
t
*
testing
.
T
)
{
dir
,
_
:=
ioutil
.
TempDir
(
""
,
"go-fuse"
)
ioutil
.
WriteFile
(
dir
+
"/a"
,
[]
byte
{
42
},
0644
)
ioutil
.
WriteFile
(
dir
+
"/a"
,
[]
byte
{
42
},
0644
)
f
,
_
:=
os
.
Open
(
dir
)
e
:=
Linkat
(
f
.
Fd
(),
"a"
,
f
.
Fd
(),
"b"
)
if
e
!=
0
{
...
...
fuse/pathfs.go
View file @
330c80da
...
...
@@ -621,7 +621,7 @@ func (me *pathInode) Truncate(file File, size uint64, context *Context) (code St
return
code
}
}
if
len
(
files
)
==
0
||
code
==
ENOSYS
||
code
==
EBADF
{
if
len
(
files
)
==
0
||
code
==
ENOSYS
||
code
==
EBADF
{
code
=
me
.
fs
.
Truncate
(
me
.
GetPath
(),
size
,
context
)
}
return
code
...
...
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