GlusterFS: Set permissions on qcow2 snapshot files
GlusterFS: Set permissions on qcow2 snapshot files

The GlusterFS driver sets specific permissions on the
volume file when volumes are created.  Setting them on the
snapshot files at snapshot creation time is also required,
otherwise volume attaches will fail for volumes with snapshots
when using QEMU's libgfapi functionality.

This does not weaken the current security model in any
significant way, as it only lines up the permissions used
for snapshot files with those already used for volume files.

This will eventually be addressed by functionality in libvirt:
https://bugzilla.redhat.com/show_bug.cgi?id=1052014

Closes-Bug: #1286376

Change-Id: I93944724c557c907eb3821a061e7434f09ff20bc

NetApp/cinder,Accelerite/cinder,julianwang/cinder,manojhirway/ExistingImagesOnNFS,github-borat/cinder,winndows/cinder,saeki-masaki/cinder,tlakshman26/cinder-new-branch,Thingee/cinder,openstack/cinder,potsmaster/cinder,nexusriot/cinder,JioCloud/cinder,blueboxgroup/cinder,alex8866/cinder,j-griffith/cinder,bswartz/cinder,dims/cinder,blueboxgroup/cinder,scottdangelo/RemoveVolumeMangerLocks,apporc/cinder,github-borat/cinder,eharney/cinder,hguemar/cinder,abusse/cinder,mahak/cinder,julianwang/cinder,dims/cinder,JioCloud/cinder,redhat-openstack/cinder,NetApp/cinder,Paul-Ezell/cinder-1,alex8866/cinder,bswartz/cinder,rakeshmi/cinder,saeki-masaki/cinder,spring-week-topos/cinder-week,Paul-Ezell/cinder-1,takeshineshiro/cinder,winndows/cinder,sasukeh/cinder,spring-week-topos/cinder-week,leilihh/cinder,eharney/cinder,Thingee/cinder,tlakshman26/cinder-https-changes,tlakshman26/cinder-https-changes,petrutlucian94/cinder,Hybrid-Cloud/cinder,Hybrid-Cloud/cinder,ge0rgi/cinder,CloudServer/cinder,Datera/cinder,tlakshman26/cinder-new-branch,cloudbase/cinder,takeshineshiro/cinder,tlakshman26/cinder-bug-fix-volume-conversion-full,sasukeh/cinder,phenoxim/cinder,scality/cinder,phenoxim/cinder,potsmaster/cinder,Datera/cinder,duhzecca/cinder,Accelerite/cinder,nexusriot/cinder,openstack/cinder,leilihh/cinder,cloudbase/cinder,nikesh-mahalka/cinder,NeCTAR-RC/cinder,Thingee/cinder,scality/cinder,Akrog/cinder,mahak/cinder,CloudServer/cinder,scottdangelo/RemoveVolumeMangerLocks,nikesh-mahalka/cinder,duhzecca/cinder,Akrog/cinder,Nexenta/cinder,Nexenta/cinder,petrutlucian94/cinder,j-griffith/cinder,tlakshman26/cinder-bug-fix-volume-conversion-full,apporc/cinder,rakeshmi/cinder,redhat-openstack/cinder,abusse/cinder,NeCTAR-RC/cinder,hguemar/cinder,manojhirway/ExistingImagesOnNFS