You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ya...@apache.org on 2016/05/03 18:27:12 UTC

mesos git commit: Manually define PRJQUOTA for old kernel headers.

Repository: mesos
Updated Branches:
  refs/heads/master 9f472b1ef -> c82555c32


Manually define PRJQUOTA for old kernel headers.

Review: https://reviews.apache.org/r/46911


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

Branch: refs/heads/master
Commit: c82555c32f69ca8188af665a5e143b3d2214bb13
Parents: 9f472b1
Author: James Peach <jp...@apache.org>
Authored: Mon May 2 14:50:25 2016 -0700
Committer: Jiang Yan Xu <ya...@jxu.me>
Committed: Tue May 3 09:26:39 2016 -0700

----------------------------------------------------------------------
 src/slave/containerizer/mesos/isolators/xfs/utils.cpp | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/c82555c3/src/slave/containerizer/mesos/isolators/xfs/utils.cpp
----------------------------------------------------------------------
diff --git a/src/slave/containerizer/mesos/isolators/xfs/utils.cpp b/src/slave/containerizer/mesos/isolators/xfs/utils.cpp
index 92914af..80404c3 100644
--- a/src/slave/containerizer/mesos/isolators/xfs/utils.cpp
+++ b/src/slave/containerizer/mesos/isolators/xfs/utils.cpp
@@ -49,6 +49,12 @@
 
 using std::string;
 
+// Manually define this for old kernels. Compatible with the one in
+// <linux/quota.h>.
+#ifndef PRJQUOTA
+#define PRJQUOTA 2
+#endif
+
 namespace mesos {
 namespace internal {
 namespace xfs {