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

Commit ea66b381 authored by Paul Lawrence's avatar Paul Lawrence
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: Ib573b5420143bd177b50311a3e8cc3a7e8541b96
parent a175946a
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,