You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by de...@apache.org on 2013/12/13 13:01:56 UTC

git commit: updated refs/heads/master to 86dadaa

Updated Branches:
  refs/heads/master 880c87e70 -> 86dadaaec


CLOUDSTACK-5489: Cloud user doesn't have permissions to copy systemvm.iso to secondary.
Make sure when a cifs (secondary) is mounted, uid is set for the user who owns the files
and directories on the filesystem.


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/86dadaae
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/86dadaae
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/86dadaae

Branch: refs/heads/master
Commit: 86dadaaec40ee70408e02599e51d75216f4601cd
Parents: 880c87e
Author: Devdeep Singh <de...@gmail.com>
Authored: Fri Dec 13 17:28:30 2013 +0530
Committer: Devdeep Singh <de...@gmail.com>
Committed: Fri Dec 13 17:32:34 2013 +0530

----------------------------------------------------------------------
 .../src/com/cloud/hypervisor/hyperv/manager/HypervManagerImpl.java | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/86dadaae/plugins/hypervisors/hyperv/src/com/cloud/hypervisor/hyperv/manager/HypervManagerImpl.java
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/hyperv/src/com/cloud/hypervisor/hyperv/manager/HypervManagerImpl.java b/plugins/hypervisors/hyperv/src/com/cloud/hypervisor/hyperv/manager/HypervManagerImpl.java
index 27745c0..e6d8e1a 100644
--- a/plugins/hypervisors/hyperv/src/com/cloud/hypervisor/hyperv/manager/HypervManagerImpl.java
+++ b/plugins/hypervisors/hyperv/src/com/cloud/hypervisor/hyperv/manager/HypervManagerImpl.java
@@ -234,11 +234,13 @@ public class HypervManagerImpl implements HypervManager {
             command.add("-t", "cifs");
             command.add(path);
             command.add(mountPoint);
+            command.add("-o", "uid=`whoami`,gid=`whoami`");
 
             if (query != null) {
                 query = query.replace('&', ',');
                 command.add("-o", query);
             }
+
             result = command.execute();
         }