Skip to content

Commit d3d4dac

Browse files
committed
Add WinFSP help
1 parent 1832fd4 commit d3d4dac

File tree

3 files changed

+34
-2
lines changed

3 files changed

+34
-2
lines changed

internal/flags.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ S3 OPTIONS:
7272
{{end}}
7373
MISC OPTIONS:
7474
{{range category .Flags "misc"}}{{.}}
75-
{{end}}{{end}}{{if .Copyright }}
76-
COPYRIGHT:
75+
{{end}}{{end}}
76+
`+fuseOptions+`{{if .Copyright }}COPYRIGHT:
7777
{{.Copyright}}
7878
{{end}}
7979
`

internal/goofys_fuse.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ import (
3737

3838
// jacobsa/fuse interface to the file system
3939

40+
const fuseOptions = `FUSE OPTIONS:
41+
-o allow_other allow all users (including root) to access files
42+
-o allow_root allow root and filesystem owner to access files
43+
-o rootmode=M set file mode of the filesystem's root (octal)
44+
`;
45+
4046
type GoofysFuse struct {
4147
fuseutil.NotImplementedFileSystem
4248
*Goofys

internal/goofys_windows.go

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,32 @@ import (
3232

3333
// winfsp/cgofuse interface to the file system
3434

35+
const fuseOptions = `WinFSP options:
36+
-o umask=MASK set file permissions (octal)
37+
-o FileSecurity=SDDL set file DACL (SDDL format)
38+
-o create_umask=MASK set newly created file permissions (octal)
39+
-o create_file_umask=MASK for files only
40+
-o create_dir_umask=MASK for directories only
41+
-o uid=N set file owner (default is mounting user id)
42+
-o gid=N set file group (default is mounting user group)
43+
-o rellinks interpret absolute symlinks as volume relative
44+
-o dothidden dot files have the Windows hidden file attrib
45+
-o volname=NAME set volume label
46+
-o VolumePrefix=UNC set UNC prefix (/Server/Share)
47+
-o FileSystemName=NAME set file system name (use NTFS to run executables)
48+
-o debug enable debug output
49+
-o DebugLog=FILE debug log file (requires -o debug)
50+
WinFSP advanced options:
51+
-o FileInfoTimeout=N metadata timeout (millis, -1 for data caching)
52+
-o DirInfoTimeout=N directory info timeout (millis)
53+
-o EaTimeout=N extended attribute timeout (millis)
54+
-o VolumeInfoTimeout=N volume info timeout (millis)
55+
-o KeepFileCache do not discard cache when files are closed
56+
-o LegacyUnlinkRename do not support new POSIX unlink/rename
57+
-o ThreadCount number of file system dispatcher threads
58+
-o uidmap=UID:SID[;...] explicit UID <-> SID map (max 8 entries)
59+
`;
60+
3561
type GoofysWin struct {
3662
fuse.FileSystemBase
3763
*Goofys

0 commit comments

Comments
 (0)