OSDN Git Service

Avoid extra erase on writes to the end of a file.
[android-x86/external-exfat.git] / fuse / main.c
index 53bafc1..cd02599 100644 (file)
@@ -80,7 +80,7 @@ static int fuse_exfat_truncate(const char* path, off_t size)
        if (rc != 0)
                return rc;
 
-       rc = exfat_truncate(&ef, node, size);
+       rc = exfat_truncate(&ef, node, size, true);
        exfat_put_node(&ef, node);
        return rc;
 }