diff --git a/lxd/storage/drivers/utils.go b/lxd/storage/drivers/utils.go
index <HASH>..<HASH> 100644
--- a/lxd/storage/drivers/utils.go
+++ b/lxd/storage/drivers/utils.go
@@ -295,17 +295,12 @@ func deleteParentSnapshotDirIfEmpty(poolName string, volType VolumeType, volName
 // ensureSparseFile creates a sparse empty file at specified location with specified size.
 // If the path already exists, the file is truncated to the requested size.
 func ensureSparseFile(filePath string, sizeBytes int64) error {
-	f, err := os.Create(filePath)
+	f, err := os.OpenFile(filePath, os.O_RDWR|os.O_CREATE, 0600)
 	if err != nil {
 		return errors.Wrapf(err, "Failed to open %s", filePath)
 	}
 	defer f.Close()
 
-	err = f.Chmod(0600)
-	if err != nil {
-		return errors.Wrapf(err, "Failed to chmod %s", filePath)
-	}
-
 	err = f.Truncate(sizeBytes)
 	if err != nil {
 		return errors.Wrapf(err, "Failed to create sparse file %s", filePath)
lxd/storage: Fix regression in truncate handling