Skip to content

Commit

Permalink
Always set preallocation on block devices when directly
Browse files Browse the repository at this point in the history
writing to the device

Signed-off-by: Alexander Wels <awels@redhat.com>
  • Loading branch information
awels committed Aug 7, 2023
1 parent ba11540 commit 336e58a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/importer/data-processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,8 @@ func (dp *DataProcessor) resize() (ProcessingPhase, error) {
return ProcessingPhaseError, err
}
dp.preallocationApplied = dp.preallocation
} else {
dp.preallocationApplied = dp.preallocation
}
if dp.dataFile != "" && !isBlockDev {
// Change permissions to 0660
Expand Down

0 comments on commit 336e58a

Please sign in to comment.