OLD | NEW |
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 Loading... |
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 |
OLD | NEW |