db1140f storage: fs: Only force directory permissions if required

Authored and Committed by crobinso 8 years ago
    storage: fs: Only force directory permissions if required
    
    Only set directory permissions at pool build time, if:
    
    - User explicitly requested a mode via the XML
    - The directory needs to be created
    - We need to do the crazy NFS root-squash workaround
    
    This allows qemu:///session to call build on an existing directory
    like /tmp.
    
        
file modified
+2 -2