summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessio Balsini <balsini@google.com>2020-11-26 15:15:14 +0000
committeralk3pInjection <webmaster@raspii.tech>2021-10-12 21:01:08 +0800
commit83db50706adf64e9fe498d4f27f23d49289f3cd1 (patch)
tree224da9e466c8ef24f0b02b2626eff5209a60de41
parentee88d415f26a67d645b3bf9932c779659bf37d20 (diff)
FuseDaemon: Use better FUSE passthrough property name
Change the system property that enables FUSE passthrough to be compliant with the system property guidelines. Also, add a INFO logging message to print out if the FUSE passthrough is enabled to improve log readability. Bug: 168023149 Test: ScopedStorageTest Signed-off-by: Alessio Balsini <balsini@google.com> Change-Id: Idfc921da32999f83314415872b8e4374b91034f1 Signed-off-by: alk3pInjection <webmaster@raspii.tech>
-rw-r--r--jni/FuseDaemon.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/jni/FuseDaemon.cpp b/jni/FuseDaemon.cpp
index 9dc8387c..f2983290 100644
--- a/jni/FuseDaemon.cpp
+++ b/jni/FuseDaemon.cpp
@@ -1850,7 +1850,10 @@ void FuseDaemon::Start(android::base::unique_fd fd, const std::string& path) {
fuse_set_log_func(fuse_logger);
}
- fuse->passthrough = android::base::GetBoolProperty("persist.sys.fuse.passthrough", false);
+ fuse->passthrough = android::base::GetBoolProperty("persist.sys.fuse.passthrough.enable", false);
+ if (fuse->passthrough) {
+ LOG(INFO) << "Using FUSE passthrough";
+ }
struct fuse_session
* se = fuse_session_new(&args, &ops, sizeof(ops), &fuse_default);