]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
storage: Correct the 'mode' check
authorJohn Ferlan <jferlan@redhat.com>
Mon, 24 Aug 2015 16:48:40 +0000 (12:48 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 2 Sep 2015 12:59:53 +0000 (08:59 -0400)
commit691dd388aee99f8b06177540303b690586d5f5b3
tree755a7dd4957cc6d87b570f96b4b67a8247a722c1
parent35847860f65f92e444db9730e00cdaef45198e0c
storage: Correct the 'mode' check

Commit id '7c2d65dde2' changed the default value of mode to be -1 if not
supplied in the XML, which should cause creation of the volume using the
default mode of VIR_STORAGE_DEFAULT_VOL_PERM_MODE; however, the check
made was whether mode was '0' or not to use default or provided value.

This patch fixes the issue to check if the 'mode' was provided in the XML
and use that value.
src/storage/storage_backend.c