From cb9153bf4324d72c6f1b34a8a1c2f8b9954697d2 Mon Sep 17 00:00:00 2001 From: Daichi Hirono Date: Thu, 8 Dec 2016 14:22:13 +0900 Subject: Support SOCK_STREAM for bridge between system and app Previously AppFuse use SOCK_SEQPACKET for sockets communicating system and app. However SOCK_SEQPACKET requires the buffer of message size in the kernel and sometimes failed to write with ENOBUF. The CL updates libappfuse so that it can use SOCK_STREAM instead of SOCK_SEQPACKET. Bug: 33279206 Test: libappfuse_test Change-Id: I622ada9ac1d71d0c57b6cfff0904c7829cea7995 --- libappfuse/include/libappfuse/FuseBuffer.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'libappfuse/include/libappfuse') diff --git a/libappfuse/include/libappfuse/FuseBuffer.h b/libappfuse/include/libappfuse/FuseBuffer.h index 276db9020..7abd2fa40 100644 --- a/libappfuse/include/libappfuse/FuseBuffer.h +++ b/libappfuse/include/libappfuse/FuseBuffer.h @@ -34,9 +34,7 @@ class FuseMessage { bool Read(int fd); bool Write(int fd) const; private: - bool CheckPacketSize(size_t size, const char* name) const; - bool CheckResult(int result, const char* operation_name) const; - bool CheckHeaderLength(int result, const char* operation_name) const; + bool CheckHeaderLength(const char* name) const; }; // FuseRequest represents file operation requests from /dev/fuse. It starts -- cgit v1.2.3-54-g00ecf