(ctx context.Context, f *os.File, offset int64)
| 72 | } |
| 73 | |
| 74 | func (p *ImageDiskManager) MakeSparse(ctx context.Context, f *os.File, offset int64) error { |
| 75 | err := p.qemu.MakeSparse(ctx, f, offset) |
| 76 | if err == nil { |
| 77 | return nil |
| 78 | } |
| 79 | if errors.Is(err, exec.ErrNotFound) { |
| 80 | return p.native.MakeSparse(ctx, f, offset) |
| 81 | } |
| 82 | return err |
| 83 | } |
nothing calls this directly
no test coverage detected