Introduce a new proto to capture storage file location for each container. This proto file will appeara as /metadata/aconfig/storage_file_location.pb. Storage service daemon is responsible for writing entires to it when a new storage file set is available. The flag read lib will use this file to find the corresponding storage file and mmap them. Bug: b/321077378 Test: atest aconfig_storage_file.test Change-Id: I226e76be895805dce52a075050dcd5b42d337be8
38 lines
863 B
Plaintext
38 lines
863 B
Plaintext
package {
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
}
|
|
|
|
rust_defaults {
|
|
name: "aconfig_storage_file.defaults",
|
|
edition: "2021",
|
|
lints: "none",
|
|
srcs: ["src/lib.rs"],
|
|
rustlibs: [
|
|
"libanyhow",
|
|
"libaconfig_storage_protos",
|
|
"libonce_cell",
|
|
"libprotobuf",
|
|
],
|
|
}
|
|
|
|
rust_library {
|
|
name: "libaconfig_storage_file",
|
|
crate_name: "aconfig_storage_file",
|
|
host_supported: true,
|
|
defaults: ["aconfig_storage_file.defaults"],
|
|
}
|
|
|
|
rust_test_host {
|
|
name: "aconfig_storage_file.test",
|
|
test_suites: ["general-tests"],
|
|
defaults: ["aconfig_storage_file.defaults"],
|
|
}
|
|
|
|
rust_protobuf {
|
|
name: "libaconfig_storage_protos",
|
|
protos: ["protos/aconfig_storage_metadata.proto"],
|
|
crate_name: "aconfig_storage_protos",
|
|
source_stem: "aconfig_storage_protos",
|
|
host_supported: true,
|
|
}
|