• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2020 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #pragma once
18 
19 /*
20  * This file describes the project ID values we use for filesystem quota
21  * tracking.  It is used on devices that don't have the sdcardfs kernel module,
22  * which requires us to use filesystem project IDs for efficient quota
23  * calculation.
24  *
25  * These values are typically set on files and directories using extended
26  * attributes; see vold for examples.
27  */
28 
29 /* Default project ID for files on external storage. */
30 #define PROJECT_ID_EXT_DEFAULT 1000
31 /* Project ID for audio files on external storage. */
32 #define PROJECT_ID_EXT_MEDIA_AUDIO 1001
33 /* Project ID for video files on external storage. */
34 #define PROJECT_ID_EXT_MEDIA_VIDEO 1002
35 /* Project ID for image files on external storage. */
36 #define PROJECT_ID_EXT_MEDIA_IMAGE 1003
37 
38 /* Start of project IDs for apps to mark external app data. */
39 #define PROJECT_ID_EXT_DATA_START 20000
40 /* End of project IDs for apps to mark external app data. */
41 #define PROJECT_ID_EXT_DATA_END 29999
42 
43 /* Start of project IDs for apps to mark external cached data. */
44 #define PROJECT_ID_EXT_CACHE_START 30000
45 /* End of project IDs for apps to mark external cached data. */
46 #define PROJECT_ID_EXT_CACHE_END 39999
47 
48 /* Start of project IDs for apps to mark external OBB data. */
49 #define PROJECT_ID_EXT_OBB_START 40000
50 /* End of project IDs for apps to mark external OBB data. */
51 #define PROJECT_ID_EXT_OBB_END 49999
52