Changed off_t to loff_t
- off_t is long, loff_t is long long (32bit vs. 64bit)
- exfat requites 64 bit to support larger than 2GB fs
Change-Id: I70293e45d7d6686317edc759092e738a2ebdd860
diff --git a/exfat/fuse/main.c b/exfat/fuse/main.c
index aad082b..30958f6 100644
--- a/exfat/fuse/main.c
+++ b/exfat/fuse/main.c
@@ -74,7 +74,7 @@
return 0;
}
-static int fuse_exfat_truncate(const char* path, off_t size)
+static int fuse_exfat_truncate(const char* path, loff_t size)
{
struct exfat_node* node;
int rc;
@@ -98,7 +98,7 @@
}
static int fuse_exfat_readdir(const char* path, void* buffer,
- fuse_fill_dir_t filler, off_t offset, struct fuse_file_info* fi)
+ fuse_fill_dir_t filler, loff_t offset, struct fuse_file_info* fi)
{
struct exfat_node* parent;
struct exfat_node* node;
@@ -216,7 +216,7 @@
}
static int fuse_exfat_read(const char* path, char* buffer, size_t size,
- off_t offset, struct fuse_file_info* fi)
+ loff_t offset, struct fuse_file_info* fi)
{
ssize_t ret;
@@ -228,7 +228,7 @@
}
static int fuse_exfat_write(const char* path, const char* buffer, size_t size,
- off_t offset, struct fuse_file_info* fi)
+ loff_t offset, struct fuse_file_info* fi)
{
ssize_t ret;