From 8d15cb9828f89709243b33c610b429694788c05d Mon Sep 17 00:00:00 2001 From: Jeff Sharkey Date: Wed, 13 May 2015 12:36:48 -0700 Subject: [PATCH] Report internal path for public volumes. Used by framework to bypass FUSE daemon overhead in some cases. Bug: 21017105 Change-Id: I2f3ae70607417fc4cd2c970cb17cf3afa2f42613 --- EmulatedVolume.cpp | 2 +- PublicVolume.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/EmulatedVolume.cpp b/EmulatedVolume.cpp index 7098872..c2a7d9c 100644 --- a/EmulatedVolume.cpp +++ b/EmulatedVolume.cpp @@ -59,8 +59,8 @@ status_t EmulatedVolume::doMount() { return -errno; } - setPath(mFusePath); setInternalPath(mRawPath); + setPath(mFusePath); if (!(mFusePid = fork())) { // TODO: protect when not mounted as visible diff --git a/PublicVolume.cpp b/PublicVolume.cpp index 025d2eb..2b2c32b 100644 --- a/PublicVolume.cpp +++ b/PublicVolume.cpp @@ -107,6 +107,7 @@ status_t PublicVolume::doMount() { mRawPath = StringPrintf("/mnt/media_rw/%s", stableName.c_str()); mFusePath = StringPrintf("/storage/%s", stableName.c_str()); + setInternalPath(mRawPath); setPath(mFusePath); if (fs_prepare_dir(mRawPath.c_str(), 0700, AID_ROOT, AID_ROOT)) {