summaryrefslogtreecommitdiff
path: root/libcutils/sockets_unix.cpp
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2019-03-13 10:18:24 -0700
committerMark Salyzyn <salyzyn@google.com>2019-03-15 11:54:38 -0700
commita73ed22cb7d2fec0b330401b764fa8c9b934d0da (patch)
tree6e32ba0b5e995fb7ef238e73a737de8347c9b43d /libcutils/sockets_unix.cpp
parent0e5b74deff69312063e9f71d3b62f1f806b29526 (diff)
init: add MountHandler property handler
Set properties dev.mnt.blk.<mount_point>=<device_block_class> for mount and umount operations by setting up an Epoll handler to catch EPOLLERR or EPOLLPRI signals when /proc/mounts is changed. Only update properties associated with block devices. For the mount point of /, use the designation of /root instead. Can use the properties in init rc expansion like: on property dev.mnt.blk.root=* write /sys/block/${dev.mnt.blk.root}/queue/read_ahead_kb ${boot_read_ahead_kb:-2048} on property dev.mnt.blk.data=* write /sys/block/${dev.mnt.blk.data}/queue/read_ahead_kb ${boot_read_ahead_kb:-2048} on late-fs setprop boot_read_ahead_kb 128 write /sys/block/${dev.mnt.blk.root}/queue/read_ahead_kb ${boot_read_ahead_kb} write /sys/block/${dev.mnt.blk.data}/queue/read_ahead_kb ${boot_read_ahead_kb} Test: boot and inspect getprop results. Bug: 124072565 Change-Id: I1b8aff44f922ba372cd926de2919c215c40ee874
Diffstat (limited to 'libcutils/sockets_unix.cpp')
0 files changed, 0 insertions, 0 deletions