You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by vi...@apache.org on 2013/08/14 20:07:28 UTC
[05/18] git commit: Fixed slave to offer total disk by default.
Fixed slave to offer total disk by default.
Review: https://reviews.apache.org/r/13395
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/24991c9d
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/24991c9d
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/24991c9d
Branch: refs/heads/master
Commit: 24991c9d03b1b08ba25aa329026dbd7e7b40f38e
Parents: fbbb648
Author: Vinod Kone <vi...@twitter.com>
Authored: Wed Aug 7 16:54:58 2013 -0700
Committer: Vinod Kone <vi...@twitter.com>
Committed: Tue Aug 13 14:09:28 2013 -0700
----------------------------------------------------------------------
src/slave/slave.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/24991c9d/src/slave/slave.cpp
----------------------------------------------------------------------
diff --git a/src/slave/slave.cpp b/src/slave/slave.cpp
index aa0dbd7..5fa1fa7 100644
--- a/src/slave/slave.cpp
+++ b/src/slave/slave.cpp
@@ -176,11 +176,11 @@ void Slave::initialize()
if (!resources.disk().isSome()) {
Bytes disk;
- // NOTE: We calculate disk availability of the file system on
+ // NOTE: We calculate disk size of the file system on
// which the slave work directory is mounted.
- Try<Bytes> disk_ = fs::available(flags.work_dir);
+ Try<Bytes> disk_ = fs::size(flags.work_dir);
if (!disk_.isSome()) {
- LOG(WARNING) << "Failed to auto-detect the free disk space: '"
+ LOG(WARNING) << "Failed to auto-detect the disk space: '"
<< disk_.error()
<< "' ; defaulting to " << DEFAULT_DISK;
disk = DEFAULT_DISK;