Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 65d8fa55 authored by Paul Lawrence's avatar Paul Lawrence Committed by Sahil Sonar
Browse files

ANDROID: Incremental fs: Add zstd feature flag



Bug: 174478527
Test: Boot, look for flag
Signed-off-by: default avatarPaul Lawrence <paullawrence@google.com>
Change-Id: I43e7f1fae8724b1916818a3d6e79326a9db4339c
parent b53a0d5f
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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,
};

+5 −0
Original line number Diff line number Diff line
@@ -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,