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
df652252
Commit
df652252
authored
May 14, 2011
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stamp fuse library with commit and timestamp.
Print version number in Unionfs and AutoUnionFs.
parent
708a5d57
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
3 deletions
+14
-3
all.bash
all.bash
+1
-0
example/autounionfs/main.go
example/autounionfs/main.go
+1
-1
example/unionfs/main.go
example/unionfs/main.go
+1
-1
fuse/.gitignore
fuse/.gitignore
+1
-0
fuse/Makefile
fuse/Makefile
+6
-1
fuse/misc.go
fuse/misc.go
+4
-0
No files found.
all.bash
View file @
df652252
#!/bin/sh
#!/bin/sh
set
-eux
set
-eux
rm
-f
fuse/version.gen.go
for
d
in
fuse zipfs unionfs example/loopback example/zipfs
\
for
d
in
fuse zipfs unionfs example/loopback example/zipfs
\
example/bulkstat example/multizip example/unionfs
\
example/bulkstat example/multizip example/unionfs
\
...
...
example/autounionfs/main.go
View file @
df652252
...
@@ -43,7 +43,7 @@ func main() {
...
@@ -43,7 +43,7 @@ func main() {
conn
.
Debug
=
*
debug
conn
.
Debug
=
*
debug
mountState
:=
fuse
.
NewMountState
(
conn
)
mountState
:=
fuse
.
NewMountState
(
conn
)
mountState
.
Debug
=
*
debug
mountState
.
Debug
=
*
debug
fmt
.
Printf
(
"
Mounting...
\n
"
)
fmt
.
Printf
(
"
Go-FUSE %v Mounting AutoUnionFs...
\n
"
,
fuse
.
Version
()
)
err
:=
mountState
.
Mount
(
mountpoint
)
err
:=
mountState
.
Mount
(
mountpoint
)
if
err
!=
nil
{
if
err
!=
nil
{
fmt
.
Printf
(
"Mount fail: %v
\n
"
,
err
)
fmt
.
Printf
(
"Mount fail: %v
\n
"
,
err
)
...
...
example/unionfs/main.go
View file @
df652252
...
@@ -33,7 +33,7 @@ func main() {
...
@@ -33,7 +33,7 @@ func main() {
conn
:=
fuse
.
NewFileSystemConnector
(
ufs
,
nil
)
conn
:=
fuse
.
NewFileSystemConnector
(
ufs
,
nil
)
mountState
:=
fuse
.
NewMountState
(
conn
)
mountState
:=
fuse
.
NewMountState
(
conn
)
mountState
.
Debug
=
*
debug
mountState
.
Debug
=
*
debug
fmt
.
Printf
(
"
Mounting...
\n
"
)
fmt
.
Printf
(
"
Go-FUSE Version %v.
\n
Mounting UnionFs...
\n
"
,
fuse
.
Version
()
)
err
:=
mountState
.
Mount
(
mountpoint
)
err
:=
mountState
.
Mount
(
mountpoint
)
if
err
!=
nil
{
if
err
!=
nil
{
fmt
.
Printf
(
"Mount fail: %v
\n
"
,
err
)
fmt
.
Printf
(
"Mount fail: %v
\n
"
,
err
)
...
...
fuse/.gitignore
0 → 100644
View file @
df652252
version.gen.go
fuse/Makefile
View file @
df652252
...
@@ -23,7 +23,12 @@ GOFILES=api.go \
...
@@ -23,7 +23,12 @@ GOFILES=api.go \
opcode.go
\
opcode.go
\
pathops.go
\
pathops.go
\
latencymap.go
\
latencymap.go
\
loggingfs.go
loggingfs.go
\
version.gen.go
version.gen.go
:
echo
"package fuse"
>
$@
git log
-n1
--pretty
=
format:
'const version = "%h (%cd)"'
--date
=
iso
>>
$@
include
$(GOROOT)/src/Make.pkg
include
$(GOROOT)/src/Make.pkg
fuse/misc.go
View file @
df652252
...
@@ -166,3 +166,7 @@ func ioctl(fd int, cmd int, arg uintptr) (int, int) {
...
@@ -166,3 +166,7 @@ func ioctl(fd int, cmd int, arg uintptr) (int, int) {
errno
:=
int
(
e1
)
errno
:=
int
(
e1
)
return
val
,
errno
return
val
,
errno
}
}
func
Version
()
string
{
return
version
}
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