am e517c1eb: am e5d32128: sdcard: use FUSE_BIG_WRITES for FUSE writes
* commit 'e517c1eb0ab3e4d692a0d1ec0b5f04e27ab9b127':
sdcard: use FUSE_BIG_WRITES for FUSE writes
diff --git a/sdcard/sdcard.c b/sdcard/sdcard.c
index dba5a4e..a95513c 100644
--- a/sdcard/sdcard.c
+++ b/sdcard/sdcard.c
@@ -912,7 +912,7 @@
out.major = FUSE_KERNEL_VERSION;
out.minor = FUSE_KERNEL_MINOR_VERSION;
out.max_readahead = req->max_readahead;
- out.flags = FUSE_ATOMIC_O_TRUNC;
+ out.flags = FUSE_ATOMIC_O_TRUNC | FUSE_BIG_WRITES;
out.max_background = 32;
out.congestion_threshold = 32;
out.max_write = 256 * 1024;
@@ -941,7 +941,7 @@
int len;
for (;;) {
- len = read(fuse->fd, req, 8192);
+ len = read(fuse->fd, req, sizeof(req));
if (len < 0) {
if (errno == EINTR)
continue;