Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3536)

Unified Diff: base/file_util_linux.cc

Issue 6713089: Add support for the cgroups config we have in chromeos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: base/file_util_linux.cc
diff --git a/base/file_util_linux.cc b/base/file_util_linux.cc
index dd0c820625b1d9008b5df27836019e95d073359c..f9d11e1310b298a39b0574f0817a5b50e4af258c 100644
--- a/base/file_util_linux.cc
+++ b/base/file_util_linux.cc
@@ -50,6 +50,9 @@ bool GetFileSystemType(const FilePath& path, FileSystemType* type) {
case 0x01021994: // tmpfs
*type = FILE_SYSTEM_MEMORY;
break;
+ case 0x27e0eb: // CGROUP
+ *type = FILE_SYSTEM_CGROUP;
+ break;
default:
*type = FILE_SYSTEM_OTHER;
}
« no previous file with comments | « base/file_util.h ('k') | base/process_linux.cc » ('j') | base/process_linux.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698