• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/core


コミットメタ情報

リビジョンf944c6a1017feb3b37890dbb9e0f209043f52d89 (tree)
日時2016-09-14 01:39:15
作者Keith Mok <kmok@cyng...>
コミッターGerrit Code Review

ログメッセージ

sdcard: add FUSE_STACKED_IO

Some kernel use FUSE_STACKED_IO
instead of FUSE_SHORTCIRCUIT

Change-Id: I6da68acba9d3a86f896743d161d63b2acc3ab571

変更サマリ

差分

--- a/sdcard/sdcard.c
+++ b/sdcard/sdcard.c
@@ -1221,7 +1221,7 @@ static int handle_open(struct fuse* fuse, struct fuse_handler* handler,
12211221 }
12221222 out.fh = ptr_to_id(h);
12231223 out.open_flags = 0;
1224- #ifdef FUSE_SHORTCIRCUIT
1224+ #if defined(FUSE_SHORTCIRCUIT) || defined(FUSE_STACKED_IO)
12251225 out.lower_fd = h->fd;
12261226 #elif defined FUSE_PASSTHROUGH
12271227 out.passthrough_fd = h->fd;
@@ -1392,7 +1392,7 @@ static int handle_opendir(struct fuse* fuse, struct fuse_handler* handler,
13921392 }
13931393 out.fh = ptr_to_id(h);
13941394 out.open_flags = 0;
1395- #ifdef FUSE_SHORTCIRCUIT
1395+ #if defined(FUSE_SHORTCIRCUIT) || defined(FUSE_STACKED_IO)
13961396 out.lower_fd = -1;
13971397 #elif defined FUSE_PASSTHROUGH
13981398 out.passthrough_fd = -1;
@@ -1481,6 +1481,9 @@ static int handle_init(struct fuse* fuse, struct fuse_handler* handler,
14811481 out.max_readahead = req->max_readahead;
14821482 out.flags = FUSE_ATOMIC_O_TRUNC | FUSE_BIG_WRITES;
14831483
1484+ #ifdef FUSE_STACKED_IO
1485+ out.flags |= FUSE_STACKED_IO;
1486+ #endif
14841487 #ifdef FUSE_SHORTCIRCUIT
14851488 out.flags |= FUSE_SHORTCIRCUIT;
14861489 #endif