MCPcopy Create free account
hub / github.com/baidu/EasyFaaS / open

Method open

pkg/funclet/device/loop/loop_linux.go:37–39  ·  view source on GitHub ↗

open returns a file handle to /dev/loop# and returns an error if it cannot be opened.

()

Source from the content-addressed store, hash-verified

35// open returns a file handle to /dev/loop# and returns an error if it cannot
36// be opened.
37func (device Device) open() (*os.File, error) {
38 return os.OpenFile(device.Path(), device.flags, 0660)
39}
40
41// Path returns the path to the loopback device
42func (device Device) Path() string {

Callers 1

AttachFunction · 0.95

Calls 1

PathMethod · 0.95

Tested by

no test coverage detected