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

Side by Side 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: Review changes and moved priority changing to process launcher thread 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/file_util.h ('k') | base/process_linux.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/file_util.h" 5 #include "base/file_util.h"
6 6
7 #include "base/file_path.h" 7 #include "base/file_path.h"
8 8
9 #include <errno.h> 9 #include <errno.h>
10 #include <sys/vfs.h> 10 #include <sys/vfs.h>
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 case 0x517B: // SMB 43 case 0x517B: // SMB
44 *type = FILE_SYSTEM_SMB; 44 *type = FILE_SYSTEM_SMB;
45 break; 45 break;
46 case 0x73757245: // Coda 46 case 0x73757245: // Coda
47 *type = FILE_SYSTEM_CODA; 47 *type = FILE_SYSTEM_CODA;
48 break; 48 break;
49 case 0x858458f6: // ramfs 49 case 0x858458f6: // ramfs
50 case 0x01021994: // tmpfs 50 case 0x01021994: // tmpfs
51 *type = FILE_SYSTEM_MEMORY; 51 *type = FILE_SYSTEM_MEMORY;
52 break; 52 break;
53 case 0x27e0eb: // CGROUP
54 *type = FILE_SYSTEM_CGROUP;
55 break;
53 default: 56 default:
54 *type = FILE_SYSTEM_OTHER; 57 *type = FILE_SYSTEM_OTHER;
55 } 58 }
56 return true; 59 return true;
57 } 60 }
58 61
59 } // namespace 62 } // namespace
OLDNEW
« no previous file with comments | « base/file_util.h ('k') | base/process_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698