MCPcopy
hub / github.com/containerd/containerd / copyOptions

Function copyOptions

core/mount/mount_linux.go:494–502  ·  view source on GitHub ↗

copyOptions copies the options.

(opts []string)

Source from the content-addressed store, hash-verified

492
493// copyOptions copies the options.
494func copyOptions(opts []string) []string {
495 if len(opts) == 0 {
496 return nil
497 }
498
499 acopy := make([]string, len(opts))
500 copy(acopy, opts)
501 return acopy
502}
503
504// optionsSize returns the byte size of options of mount.
505func optionsSize(opts []string) int {

Callers 1

compactLowerdirOptionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…