Skip to content

Commit 49c01e2

Browse files
author
Frank Zhang
committed
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
1 parent e02c382 commit 49c01e2

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
@@ -778,7 +778,7 @@ protected String mount(String path, String parent) {
778778

779779
// Change permissions for the mountpoint
780780
script = new Script(true, "chmod", _timeout, s_logger);
781-
script.add("-R", "777", mountPoint);
781+
script.add("777", mountPoint);
782782
result = script.execute();
783783
if (result != null) {
784784
s_logger.warn("Unable to set permissions for " + mountPoint + " due to " + result);

0 commit comments

Comments
 (0)