ANDROID: Incremental fs: Add zstd feature flag

Bug: 174478527
Test: Boot, look for flag
Signed-off-by: Paul Lawrence <paullawrence@google.com>
Change-Id: Ib573b5420143bd177b50311a3e8cc3a7e8541b96
This commit is contained in:
Paul Lawrence
2020-11-30 09:03:36 -08:00
committed by Alistair Delva
parent 5fed80f580
commit affa585cc0
2 changed files with 14 additions and 0 deletions

View File

@@ -38,9 +38,18 @@ static ssize_t report_uid_show(struct kobject *kobj,
static struct kobj_attribute report_uid_attr = __ATTR_RO(report_uid);
static ssize_t zstd_show(struct kobject *kobj,
struct kobj_attribute *attr, char *buff)
{
return snprintf(buff, PAGE_SIZE, "supported\n");
}
static struct kobj_attribute zstd_attr = __ATTR_RO(zstd);
static struct attribute *attributes[] = {
&corefs_attr.attr,
&report_uid_attr.attr,
&zstd_attr.attr,
NULL,
};

View File

@@ -141,6 +141,11 @@
*/
#define INCFS_FEATURE_FLAG_REPORT_UID "report_uid"
/*
* zstd compression support
*/
#define INCFS_FEATURE_FLAG_ZSTD "zstd"
enum incfs_compression_alg {
COMPRESSION_NONE = 0,
COMPRESSION_LZ4 = 1,