summaryrefslogtreecommitdiff
path: root/sdcard
diff options
context:
space:
mode:
authorDaisuke Okitsu <daisuke.x.okitsu@sonymobile.com>2014-02-17 10:33:11 +0100
committerJP Abgrall <jpa@google.com>2014-02-19 20:33:50 +0000
commitb2831a2db9e0370c5f797c037c135108025f2522 (patch)
treead5efcdb38c47174bb8f082ac953a42e4a13fff9 /sdcard
parent3b0c24e28d7538ff5b49a98eee99bac85c8e687b (diff)
Handle FUSE_FSYNCDIR as FUSE_FSYNC
There have been issues with sdcard data corruption even after successfully calling fsync for /sdcard. This is caused by the sdcard daemon doing nothing in this case. Change-Id: I48149ceabdac79ac535b35c2598bb1fbb5410883
Diffstat (limited to 'sdcard')
-rw-r--r--sdcard/sdcard.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sdcard/sdcard.c b/sdcard/sdcard.c
index cb03316f..6a9c2eb9 100644
--- a/sdcard/sdcard.c
+++ b/sdcard/sdcard.c
@@ -1503,7 +1503,8 @@ static int handle_fuse_request(struct fuse *fuse, struct fuse_handler* handler,
return handle_release(fuse, handler, hdr, req);
}
- case FUSE_FSYNC: {
+ case FUSE_FSYNC:
+ case FUSE_FSYNCDIR: {
const struct fuse_fsync_in *req = data;
return handle_fsync(fuse, handler, hdr, req);
}
@@ -1531,7 +1532,6 @@ static int handle_fuse_request(struct fuse *fuse, struct fuse_handler* handler,
return handle_releasedir(fuse, handler, hdr, req);
}
-// case FUSE_FSYNCDIR:
case FUSE_INIT: { /* init_in -> init_out */
const struct fuse_init_in *req = data;
return handle_init(fuse, handler, hdr, req);