MCPcopy Create free account
hub / github.com/linuxkit/linuxkit / autoextend

Function autoextend

pkg/extend/extend.go:53–70  ·  view source on GitHub ↗
(fsType string)

Source from the content-addressed store, hash-verified

51}
52
53func autoextend(fsType string) error {
54 for _, d := range driveKeys {
55 err := exec.Command("sfdisk", "-d", d).Run()
56 if err != nil {
57 log.Printf("No partition table found on device %s. Skipping.", d)
58 continue
59 }
60 if err := extend(d, fsType); err != nil {
61 if stopOnError {
62 return err
63 }
64
65 log.Printf("Could not extend partition on device %s. Skipping", d)
66 continue
67 }
68 }
69 return nil
70}
71
72func extend(d, fsType string) error {
73 mountpoint := "/mnt/tmp"

Callers 1

mainFunction · 0.85

Calls 1

extendFunction · 0.85

Tested by

no test coverage detected