Report internal path for public volumes.
Used by framework to bypass FUSE daemon overhead in some cases. Bug: 21017105 Change-Id: I2f3ae70607417fc4cd2c970cb17cf3afa2f42613
This commit is contained in:
parent
74e6349d8e
commit
8d15cb9828
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue