MCPcopy Index your code
hub / github.com/containerd/containerd / getMounts

Function getMounts

plugins/snapshots/devmapper/pool_device_test.go:280–287  ·  view source on GitHub ↗
(thinDeviceName string)

Source from the content-addressed store, hash-verified

278}
279
280func getMounts(thinDeviceName string) []mount.Mount {
281 return []mount.Mount{
282 {
283 Source: dmsetup.GetFullDevicePath(thinDeviceName),
284 Type: "ext4",
285 },
286 }
287}
288
289func createLoopbackDevice(t *testing.T, dir string) (string, string) {
290 file, err := os.CreateTemp(dir, testsPrefix)

Callers 1

TestPoolDeviceFunction · 0.85

Calls 1

GetFullDevicePathFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…