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 8, 2023
1 parent ba11540 commit 5186dcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/importer/data-processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,8 @@ func (dp *DataProcessor) resize() (ProcessingPhase, error) {
if err != nil {
return ProcessingPhaseError, err
}
dp.preallocationApplied = dp.preallocation
}
dp.preallocationApplied = dp.preallocation
if dp.dataFile != "" && !isBlockDev {
// Change permissions to 0660
err := os.Chmod(dp.dataFile, 0660)
Expand Down

0 comments on commit 5186dcd

Please sign in to comment.