summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Daichi Hirono <hirono@google.com> 2017-07-11 11:18:34 +0900
committer Daichi Hirono <hirono@google.com> 2017-07-11 13:30:00 +0900
commitd2229a65f53e7b9e9fc861ac300607a329153c4c (patch)
treea6a4288f6dfbaa6fc2f43bddcff9ba4d395439cb
parent06815d6023f03f0169d67634b3ba10d60c33c7e2 (diff)
Fix method sinature of FuseAppLoop JNI code
The file size passed to replyLookup and replyGetAttr needed to be jlong, but they were jint before the fix. Bug: 63543158 Test: Transfer 4GB+ files through ProxyFileDescriptor Change-Id: Idaf27538e067854a25ae413651d8f83f0df3f387
-rw-r--r--core/jni/com_android_internal_os_FuseAppLoop.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/jni/com_android_internal_os_FuseAppLoop.cpp b/core/jni/com_android_internal_os_FuseAppLoop.cpp
index 2d5026ff2339..8837df5b2da7 100644
--- a/core/jni/com_android_internal_os_FuseAppLoop.cpp
+++ b/core/jni/com_android_internal_os_FuseAppLoop.cpp
@@ -142,14 +142,14 @@ void com_android_internal_os_FuseAppLoop_replyOpen(
}
void com_android_internal_os_FuseAppLoop_replyLookup(
- JNIEnv* env, jobject self, jlong ptr, jlong unique, jlong inode, jint size) {
+ JNIEnv* env, jobject self, jlong ptr, jlong unique, jlong inode, jlong size) {
if (!reinterpret_cast<fuse::FuseAppLoop*>(ptr)->ReplyLookup(unique, inode, size)) {
reinterpret_cast<fuse::FuseAppLoop*>(ptr)->Break();
}
}
void com_android_internal_os_FuseAppLoop_replyGetAttr(
- JNIEnv* env, jobject self, jlong ptr, jlong unique, jlong inode, jint size) {
+ JNIEnv* env, jobject self, jlong ptr, jlong unique, jlong inode, jlong size) {
if (!reinterpret_cast<fuse::FuseAppLoop*>(ptr)->ReplyGetAttr(
unique, inode, size, S_IFREG | 0777)) {
reinterpret_cast<fuse::FuseAppLoop*>(ptr)->Break();