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:
parent
080d173c55
commit
e966b2a635
1 changed files with 5 additions and 0 deletions
|
@ -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/data_io_flag 8
|
||||||
write /dev/sys/fs/by-name/userdata/node_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
|
# Block layer tuning: discard chunk size up to 128MB
|
||||||
# Otherwise, contiguous discards can be merged
|
# Otherwise, contiguous discards can be merged
|
||||||
write /sys/block/sda/queue/discard_max_bytes 134217728
|
write /sys/block/sda/queue/discard_max_bytes 134217728
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue