master
go 39 lines 1.25 KB
Raw
1 package config
2
3 const (
4 DefaultFuseAllowOther = false
5 DefaultStoreMtime = false
6 DefaultStoreMode = false
7 )
8
9 // Mounts stores FUSE mount point configuration.
10 type Mounts struct {
11 // IPFS is the mountpoint for the read-only /ipfs/ namespace.
12 IPFS string
13
14 // IPNS is the mountpoint for the /ipns/ namespace. Directories backed
15 // by keys this node holds are writable; all other names resolve through
16 // IPNS to read-only symlinks into the /ipfs mount.
17 IPNS string
18
19 // MFS is the mountpoint for the Mutable File System (ipfs files API).
20 MFS string
21
22 // FuseAllowOther sets the FUSE allow_other mount option, letting
23 // users other than the mounter access the mounted filesystem.
24 FuseAllowOther Flag
25
26 // StoreMtime controls whether writable mounts (/ipns and /mfs) persist
27 // the current time as mtime in UnixFS metadata when creating a file or
28 // opening it for writing. This changes the resulting CID even when file
29 // content is identical.
30 //
31 // Reading mtime from UnixFS is always enabled on all mounts.
32 StoreMtime Flag
33
34 // StoreMode controls whether writable mounts (/ipns and /mfs) persist
35 // POSIX permission bits in UnixFS metadata when a chmod request is made.
36 //
37 // Reading mode from UnixFS is always enabled on all mounts.
38 StoreMode Flag
39 }