Skip to content
Commit ee063f48 authored by Devang's avatar Devang Committed by Jordibgzashtita
Browse files

NetlinkManager: Increase netlink receive socket buffer to 128KB

Current buffer size is too small - vold can miss sdcard block device
uevent at the startup which result in card not being mounted until
user reinserts the tray.

An example for the Sony H8216 device:

  * 64KB buffer size
    * vold's /proc/net/netlink entry - 4 drops:
      0000000000000000 15 718 ffffffff 0 0 0 2 4 15066
    * 'sm list-volumes' output - sdcard isn't mounted:
      private mounted null
      emulated mounted null

  * 128KB buffer size
    * vold's /proc/net/netlink entry - no drops:
      0000000000000000 15 686 ffffffff 0 0 0 2 0 15225
    * 'sm list-volumes' output - sdcard is mounted:
      private mounted null
      public:179,1 mounted F08D-EA6A
      emulated mounted null

Bug: 111172932
Test: Manual - Insert SD card and see it is detected
Change-Id: Iaae8567bce52a957ad4241e53953ef3ff215961a
parent 1b6c1661
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment