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
c07e64b1
Commit
c07e64b1
authored
Jun 30, 2011
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run gofmt.
parent
4a79a89d
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
19 additions
and
20 deletions
+19
-20
fuse/handle.go
fuse/handle.go
+2
-2
fuse/loopback_test.go
fuse/loopback_test.go
+0
-1
fuse/mount_test.go
fuse/mount_test.go
+5
-5
fuse/pathfilesystem.go
fuse/pathfilesystem.go
+3
-3
fuse/pathops.go
fuse/pathops.go
+1
-1
unionfs/autounion_test.go
unionfs/autounion_test.go
+2
-2
zipfs/multizip_test.go
zipfs/multizip_test.go
+6
-6
No files found.
fuse/handle.go
View file @
c07e64b1
...
@@ -68,7 +68,7 @@ func (me *HandleMap) Register(obj *Handled) (handle uint64) {
...
@@ -68,7 +68,7 @@ func (me *HandleMap) Register(obj *Handled) (handle uint64) {
if
rest
!=
0
{
if
rest
!=
0
{
panic
(
"more than 48 bits in address"
)
panic
(
"more than 48 bits in address"
)
}
}
if
handle
&
0x7
!=
0
{
if
handle
&
0x7
!=
0
{
panic
(
"unaligned ptr"
)
panic
(
"unaligned ptr"
)
}
}
handle
>>=
3
handle
>>=
3
...
...
fuse/loopback_test.go
View file @
c07e64b1
...
@@ -657,4 +657,3 @@ func TestIoctl(t *testing.T) {
...
@@ -657,4 +657,3 @@ func TestIoctl(t *testing.T) {
v
,
e
:=
ioctl
(
f
.
Fd
(),
0x5401
,
42
)
v
,
e
:=
ioctl
(
f
.
Fd
(),
0x5401
,
42
)
fmt
.
Println
(
"ioctl"
,
v
,
e
)
fmt
.
Println
(
"ioctl"
,
v
,
e
)
}
}
fuse/mount_test.go
View file @
c07e64b1
...
@@ -14,7 +14,7 @@ func TestMountOnExisting(t *testing.T) {
...
@@ -14,7 +14,7 @@ func TestMountOnExisting(t *testing.T) {
ts
.
Setup
(
t
)
ts
.
Setup
(
t
)
defer
ts
.
Cleanup
()
defer
ts
.
Cleanup
()
err
:=
os
.
Mkdir
(
ts
.
mountPoint
+
"/mnt"
,
0777
)
err
:=
os
.
Mkdir
(
ts
.
mountPoint
+
"/mnt"
,
0777
)
CheckSuccess
(
err
)
CheckSuccess
(
err
)
fs
:=
&
DefaultFileSystem
{}
fs
:=
&
DefaultFileSystem
{}
code
:=
ts
.
connector
.
Mount
(
"/mnt"
,
fs
,
nil
)
code
:=
ts
.
connector
.
Mount
(
"/mnt"
,
fs
,
nil
)
...
@@ -80,7 +80,7 @@ func TestRecursiveMount(t *testing.T) {
...
@@ -80,7 +80,7 @@ func TestRecursiveMount(t *testing.T) {
ts
.
Setup
(
t
)
ts
.
Setup
(
t
)
defer
ts
.
Cleanup
()
defer
ts
.
Cleanup
()
err
:=
ioutil
.
WriteFile
(
ts
.
origDir
+
"/hello.txt"
,
[]
byte
(
"blabla"
),
0644
)
err
:=
ioutil
.
WriteFile
(
ts
.
origDir
+
"/hello.txt"
,
[]
byte
(
"blabla"
),
0644
)
CheckSuccess
(
err
)
CheckSuccess
(
err
)
fs
:=
NewLoopbackFileSystem
(
ts
.
origDir
)
fs
:=
NewLoopbackFileSystem
(
ts
.
origDir
)
...
...
fuse/pathfilesystem.go
View file @
c07e64b1
fuse/pathops.go
View file @
c07e64b1
unionfs/autounion_test.go
View file @
c07e64b1
zipfs/multizip_test.go
View file @
c07e64b1
...
@@ -61,7 +61,7 @@ func TestMultiZipFs(t *testing.T) {
...
@@ -61,7 +61,7 @@ func TestMultiZipFs(t *testing.T) {
t
.
Errorf
(
"wrong names return. %v"
,
entries
)
t
.
Errorf
(
"wrong names return. %v"
,
entries
)
}
}
err
=
os
.
Symlink
(
zipFile
,
mountPoint
+
"/config/zipmount"
)
err
=
os
.
Symlink
(
zipFile
,
mountPoint
+
"/config/zipmount"
)
CheckSuccess
(
err
)
CheckSuccess
(
err
)
fi
,
err
:=
os
.
Lstat
(
mountPoint
+
"/zipmount"
)
fi
,
err
:=
os
.
Lstat
(
mountPoint
+
"/zipmount"
)
...
...
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