init.rc: change the ownership of compression sysfs nodes

Changed the ownership of compression sysfs nodes for Pixelstats to reset
these values after reading them.

Test: check the ownership of /dev/sys/fs/by-name/userdata/compr_*
Bug: 173399386
Bug: 170789472
Signed-off-by: Daeho Jeong <daehojeong@google.com>
Change-Id: I25bd80fb4b3db855de3c536084cf4b3c14bc8d74
This commit is contained in:
Daeho Jeong 2021-03-19 14:13:24 +09:00 committed by TreeHugger Robot
parent 080d173c55
commit e966b2a635

View file

@ -577,6 +577,11 @@ on property:sys.boot_completed=1
write /dev/sys/fs/by-name/userdata/data_io_flag 8
write /dev/sys/fs/by-name/userdata/node_io_flag 8
# Permission for Pixelstats
chown system system /dev/sys/fs/by-name/userdata/compr_written_block
chown system system /dev/sys/fs/by-name/userdata/compr_saved_block
chown system system /dev/sys/fs/by-name/userdata/compr_new_inode
# Block layer tuning: discard chunk size up to 128MB
# Otherwise, contiguous discards can be merged
write /sys/block/sda/queue/discard_max_bytes 134217728