Skip to content

Commit dcb6d7c

Browse files
Frank Zhangyadvr
authored andcommitted
Don't do chmod -R when mounting secondary storage for vmware
It causes extreme long vm start time when managment server has slow connection to secondary storage (cherry picked from commit 49c01e2) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent 865940d commit dcb6d7c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/manager/VmwareManagerImpl.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ protected String mount(String path, String parent) {
765765

766766
// Change permissions for the mountpoint
767767
script = new Script(true, "chmod", _timeout, s_logger);
768-
script.add("-R", "777", mountPoint);
768+
script.add("777", mountPoint);
769769
result = script.execute();
770770
if (result != null) {
771771
s_logger.warn("Unable to set permissions for " + mountPoint + " due to " + result);

0 commit comments

Comments
 (0)