forked from insomniacslk/u-root
-
Notifications
You must be signed in to change notification settings - Fork 1
/
opts_linux.go
48 lines (45 loc) · 1.47 KB
/
opts_linux.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// Copyright 2018 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
import "golang.org/x/sys/unix"
var opts = map[string]uintptr{
"active": unix.MS_ACTIVE,
"async": unix.MS_ASYNC,
"bind": unix.MS_BIND,
"born": unix.MS_BORN,
"dirsync": unix.MS_DIRSYNC,
"invalidate": unix.MS_INVALIDATE,
"i_version": unix.MS_I_VERSION,
"kernmount": unix.MS_KERNMOUNT,
"lazytime": unix.MS_LAZYTIME,
"mandlock": unix.MS_MANDLOCK,
"mgc_msk": unix.MS_MGC_MSK,
"mgc_val": unix.MS_MGC_VAL,
"move": unix.MS_MOVE,
"noatime": unix.MS_NOATIME,
"nodev": unix.MS_NODEV,
"nodiratime": unix.MS_NODIRATIME,
"noexec": unix.MS_NOEXEC,
"noremotelock": unix.MS_NOREMOTELOCK,
"nosec": unix.MS_NOSEC,
"nosuid": unix.MS_NOSUID,
// what is this
//"nouser": unix.MS_NOUSER,
"posixacl": unix.MS_POSIXACL,
"private": unix.MS_PRIVATE,
"rdonly": unix.MS_RDONLY,
"rec": unix.MS_REC,
"relatime": unix.MS_RELATIME,
"remount": unix.MS_REMOUNT,
"rmt_mask": unix.MS_RMT_MASK,
"shared": unix.MS_SHARED,
"silent": unix.MS_SILENT,
"slave": unix.MS_SLAVE,
"strictatime": unix.MS_STRICTATIME,
"submount": unix.MS_SUBMOUNT,
"sync": unix.MS_SYNC,
"synchronous": unix.MS_SYNCHRONOUS,
"unbindable": unix.MS_UNBINDABLE,
"verbose": unix.MS_VERBOSE,
}