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
d31db957
Commit
d31db957
authored
Sep 19, 2015
by
Jakob Unterwurzacher
Committed by
Han-Wen Nienhuys
Sep 24, 2015
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fuse: allow setting the fsname (first column in df -T)
parent
c3d1a136
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
fuse/api.go
fuse/api.go
+4
-2
fuse/server.go
fuse/server.go
+5
-0
No files found.
fuse/api.go
View file @
d31db957
...
...
@@ -53,8 +53,10 @@ type MountOptions struct {
// This may be useful for NFS.
RememberInodes
bool
// The name will show up on the output of the mount. Keep this string
// small.
// Values shown in "df -T" and friends
// First column, "Filesystem"
FsName
string
// Second column, "Type", will be shown as "fuse." + Name
Name
string
// If set, wrap the file system in a single-threaded locking wrapper.
...
...
fuse/server.go
View file @
d31db957
...
...
@@ -165,6 +165,11 @@ func NewServer(fs RawFileSystem, mountPoint string, opts *MountOptions) (*Server
}
optStrs
=
append
(
optStrs
,
"subtype="
+
name
)
fsname
:=
opts
.
FsName
if
len
(
fsname
)
>
0
{
optStrs
=
append
(
optStrs
,
"fsname="
+
fsname
)
}
mountPoint
=
filepath
.
Clean
(
mountPoint
)
if
!
filepath
.
IsAbs
(
mountPoint
)
{
cwd
,
err
:=
os
.
Getwd
()
...
...
Levin Zimmermann
@levin.zimmermann
mentioned in commit
56d54486
·
May 12, 2023
mentioned in commit
56d54486
mentioned in commit 56d54486da9cd230ddfb2840cb110e9db1d69715
Toggle commit list
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