bug 6844: don't chmod, respect permissions set by NFS server admin

This commit is contained in:
Chiradeep Vittal 2011-01-28 17:26:35 -08:00
parent d7aa4ef4e2
commit 8bcf07e6f0
1 changed files with 1 additions and 9 deletions

View File

@ -588,15 +588,7 @@ public class NfsSecondaryStorageResource extends ServerResourceBase implements S
return null;
}
// Change permissions for the mountpoint
script = new Script(!_inSystemVM, "chmod", _timeout, s_logger);
script.add("777", mountPoint);
script.add("-R");
result = script.execute();
if (result != null) {
s_logger.warn("Unable to set permissions for " + mountPoint + " due to " + result);
return null;
}
// XXX: Adding the check for creation of snapshots dir here. Might have to move it somewhere more logical later.
if (!checkForSnapshotsDir(mountPoint)) {