MCPcopy Index your code
hub / github.com/linuxkit/linuxkit / rereadPartitions

Function rereadPartitions

pkg/extend/extend.go:244–254  ·  view source on GitHub ↗
(device string)

Source from the content-addressed store, hash-verified

242}
243
244func rereadPartitions(device string) error {
245 file, err := os.Open(device)
246 if err != nil {
247 return err
248 }
249 defer file.Close()
250 if _, _, errno := unix.Syscall(unix.SYS_IOCTL, file.Fd(), unix.BLKRRPART, 0); errno != 0 {
251 return errno
252 }
253 return nil
254}
255
256func e2fsck(d string, force bool) error {
257 // preen

Callers 1

createPartitionFunction · 0.85

Calls 2

OpenMethod · 0.65
CloseMethod · 0.45

Tested by

no test coverage detected