(device string)
| 242 | } |
| 243 | |
| 244 | func 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 | |
| 256 | func e2fsck(d string, force bool) error { |
| 257 | // preen |
no test coverage detected