From fc1a13bfdd9f7acd36bd4ae8f87cd57aa298f5ac Mon Sep 17 00:00:00 2001 From: Mike Lockwood Date: Fri, 20 Aug 2010 10:29:29 -0400 Subject: [PATCH] sdcard: Add support for the O_TRUNC open() flag BUG: 2935163 Change-Id: I9f76b24147b2f87ddb7869bb72baac03e86ef7e6 Signed-off-by: Mike Lockwood --- sdcard/sdcard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdcard/sdcard.c b/sdcard/sdcard.c index 82e635438..27cbde255 100644 --- a/sdcard/sdcard.c +++ b/sdcard/sdcard.c @@ -695,7 +695,7 @@ void handle_fuse_request(struct fuse *fuse, struct fuse_in_header *hdr, void *da out.major = FUSE_KERNEL_VERSION; out.minor = FUSE_KERNEL_MINOR_VERSION; out.max_readahead = req->max_readahead; - out.flags = 0; + out.flags = FUSE_ATOMIC_O_TRUNC; out.max_background = 32; out.congestion_threshold = 32; out.max_write = 256 * 1024;