diff --git a/interfaces/innerkits/native/file_share/src/file_share.cpp b/interfaces/innerkits/native/file_share/src/file_share.cpp index 15f74aa32bbb9a32af2115ab8dc6292d2420cfa6..5831f721a83663b6ee1f88de5c78269507e928b2 100644 --- a/interfaces/innerkits/native/file_share/src/file_share.cpp +++ b/interfaces/innerkits/native/file_share/src/file_share.cpp @@ -302,7 +302,7 @@ int32_t FileShare::CreateShareFile(const string &uri, int32_t tokenId, int32_t f } if (mount(info.providerLowerPath_.c_str(), info.sharePath_[i].c_str(), - nullptr, MS_BIND, nullptr) != 0) { + nullptr, MS_BIND | MS_SYNCHRONOUS, nullptr) != 0) { LOGE("Mount failed with %{public}d", errno); return -errno; }