Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b2831a2d authored by Daisuke Okitsu's avatar Daisuke Okitsu Committed by JP Abgrall
Browse files

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
parent 3b0c24e2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);