gitlab.com/apertussolutions/u-root@v7.0.0+incompatible/cmds/core/mount/opts_linux.go (about)

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