Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d8ffa3df authored by Yuan Yao's avatar Yuan Yao
Browse files

prefetch: Add option to exclude/include mount points from record

This CL adds following options to record command:

1.  `--exlude-mount-prefix`: This allows users to provide a
    comma-separated list of mount point prefix to be ignored during I/O
    recording.

2. `--include-mount-prefix`: This allows a user to specify a list of
   mount point prefix to be exclusively recorded.

This change enables multiple prefetch record services to run
concurrently without generating duplicated records.

Unit tests are added to verify the new filtering logic.

Bug: 434838606
Test: adb shell prefetch record --exlude-mount-prefix=/vendor && verify
the pack file does not contain files from /vendor
Test: adb shell prefetch record --include-mount-prefix=/vendor && the
generated pack file only contains /vendor.
Test: cargo test

Change-Id: Ib7795631cde5b6495461e6ce6656a37481160823
parent 0820f747
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment