]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: create: Create files with correct mode
authorPeter Krempa <pkrempa@redhat.com>
Mon, 28 Jul 2014 14:09:39 +0000 (16:09 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 29 Jul 2014 08:45:32 +0000 (10:45 +0200)
commitf8cf4962ac16cbb532ac80b1885eb105c32f1df5
tree38f4f5506dbf094282e0490f061be7ee35801ce1
parent1281f4a100d2a8b6746b83e0395b2dce8703044c
storage: create: Create files with correct mode

Use correct mode when pre-creating files (for snapshots). The refactor
changing to storage driver usage caused a regression as some systems
created the file with 000 permissions forbidding qemu to write the file.

Pass mode to the creating functions to avoid the problem.

Regression since 185e07a5f82bc0692324f3ee13b4816d71b653c1.
src/storage/storage_backend_fs.c
src/storage/storage_backend_gluster.c