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
b4c42def
Commit
b4c42def
authored
Sep 19, 2011
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run gofmt.
parent
e3ad7b09
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
34 additions
and
36 deletions
+34
-36
fuse/api.go
fuse/api.go
+2
-2
fuse/fsetattr_test.go
fuse/fsetattr_test.go
+1
-1
fuse/fsops.go
fuse/fsops.go
+1
-1
fuse/opcode.go
fuse/opcode.go
+14
-14
fuse/pathfs.go
fuse/pathfs.go
+5
-5
fuse/types.go
fuse/types.go
+0
-1
unionfs/autounion.go
unionfs/autounion.go
+1
-1
unionfs/unionfs.go
unionfs/unionfs.go
+7
-8
unionfs/unionfs_test.go
unionfs/unionfs_test.go
+3
-3
No files found.
fuse/api.go
View file @
b4c42def
fuse/fsetattr_test.go
View file @
b4c42def
fuse/fsops.go
View file @
b4c42def
fuse/opcode.go
View file @
b4c42def
fuse/pathfs.go
View file @
b4c42def
...
@@ -174,12 +174,12 @@ type pathInode struct {
...
@@ -174,12 +174,12 @@ type pathInode struct {
DefaultFsNode
DefaultFsNode
}
}
func
(
me
*
pathInode
)
LockTree
()
(
func
()
)
{
func
(
me
*
pathInode
)
LockTree
()
func
(
)
{
me
.
pathFs
.
pathLock
.
Lock
()
me
.
pathFs
.
pathLock
.
Lock
()
return
func
()
{
me
.
pathFs
.
pathLock
.
Unlock
()
}
return
func
()
{
me
.
pathFs
.
pathLock
.
Unlock
()
}
}
}
func
(
me
*
pathInode
)
RLockTree
()
(
func
()
)
{
func
(
me
*
pathInode
)
RLockTree
()
func
(
)
{
me
.
pathFs
.
pathLock
.
RLock
()
me
.
pathFs
.
pathLock
.
RLock
()
return
func
()
{
me
.
pathFs
.
pathLock
.
RUnlock
()
}
return
func
()
{
me
.
pathFs
.
pathLock
.
RUnlock
()
}
}
}
...
...
fuse/types.go
View file @
b4c42def
...
@@ -224,7 +224,6 @@ type CreateOut struct {
...
@@ -224,7 +224,6 @@ type CreateOut struct {
OpenOut
OpenOut
}
}
const
RELEASE_FLUSH
=
(
1
<<
0
)
const
RELEASE_FLUSH
=
(
1
<<
0
)
type
ReleaseIn
struct
{
type
ReleaseIn
struct
{
...
...
unionfs/autounion.go
View file @
b4c42def
unionfs/unionfs.go
View file @
b4c42def
...
@@ -163,7 +163,7 @@ type branchResult struct {
...
@@ -163,7 +163,7 @@ type branchResult struct {
func
printFileInfo
(
me
*
os
.
FileInfo
)
string
{
func
printFileInfo
(
me
*
os
.
FileInfo
)
string
{
return
fmt
.
Sprintf
(
return
fmt
.
Sprintf
(
"{0%o S=%d L=%d %d:%d %d*%d %d:%d "
+
"{0%o S=%d L=%d %d:%d %d*%d %d:%d "
+
"A %.09f M %.09f C %.09f}"
,
"A %.09f M %.09f C %.09f}"
,
me
.
Mode
,
me
.
Size
,
me
.
Nlink
,
me
.
Uid
,
me
.
Gid
,
me
.
Blocks
,
me
.
Blksize
,
me
.
Rdev
,
me
.
Ino
,
me
.
Mode
,
me
.
Size
,
me
.
Nlink
,
me
.
Uid
,
me
.
Gid
,
me
.
Blocks
,
me
.
Blksize
,
me
.
Rdev
,
me
.
Ino
,
float64
(
me
.
Atime_ns
)
*
1e-9
,
float64
(
me
.
Mtime_ns
)
*
1e-9
,
float64
(
me
.
Ctime_ns
)
*
1e-9
)
float64
(
me
.
Atime_ns
)
*
1e-9
,
float64
(
me
.
Mtime_ns
)
*
1e-9
,
float64
(
me
.
Ctime_ns
)
*
1e-9
)
...
@@ -173,7 +173,6 @@ func (me branchResult) String() string {
...
@@ -173,7 +173,6 @@ func (me branchResult) String() string {
return
fmt
.
Sprintf
(
"{%s %v branch %d}"
,
printFileInfo
(
me
.
attr
),
me
.
code
,
me
.
branch
)
return
fmt
.
Sprintf
(
"{%s %v branch %d}"
,
printFileInfo
(
me
.
attr
),
me
.
code
,
me
.
branch
)
}
}
func
(
me
*
UnionFs
)
getBranchAttrNoCache
(
name
string
)
branchResult
{
func
(
me
*
UnionFs
)
getBranchAttrNoCache
(
name
string
)
branchResult
{
name
=
stripSlash
(
name
)
name
=
stripSlash
(
name
)
...
...
unionfs/unionfs_test.go
View file @
b4c42def
...
@@ -1027,7 +1027,7 @@ func TestFlushRename(t *testing.T) {
...
@@ -1027,7 +1027,7 @@ func TestFlushRename(t *testing.T) {
wd
,
clean
:=
setupUfs
(
t
)
wd
,
clean
:=
setupUfs
(
t
)
defer
clean
()
defer
clean
()
err
:=
ioutil
.
WriteFile
(
wd
+
"/mount/file"
,
[]
byte
(
"x"
),
0644
)
err
:=
ioutil
.
WriteFile
(
wd
+
"/mount/file"
,
[]
byte
(
"x"
),
0644
)
fn
:=
wd
+
"/mount/tmp"
fn
:=
wd
+
"/mount/tmp"
f
,
err
:=
os
.
OpenFile
(
fn
,
os
.
O_WRONLY
|
os
.
O_CREATE
,
0644
)
f
,
err
:=
os
.
OpenFile
(
fn
,
os
.
O_WRONLY
|
os
.
O_CREATE
,
0644
)
...
...
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