mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 14:04:54 +02:00
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:
parent
5fed80f580
commit
affa585cc0
|
|
@ -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,
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user