summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/AFC.c1
-rw-r--r--src/ifuse.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/AFC.c b/src/AFC.c
index 19d8ae5..3ad31d2 100644
--- a/src/AFC.c
+++ b/src/AFC.c
@@ -547,7 +547,6 @@ AFCFile *afc_get_file_info(AFClient *client, const char *path) {
547 my_file->size = atoi(list[i+1]); 547 my_file->size = atoi(list[i+1]);
548 } 548 }
549 549
550
551 if (!strcmp(list[i], "st_blocks")) { 550 if (!strcmp(list[i], "st_blocks")) {
552 my_file->blocks = atoi(list[i+1]); 551 my_file->blocks = atoi(list[i+1]);
553 } 552 }
diff --git a/src/ifuse.c b/src/ifuse.c
index 4967112..f6b9c72 100644
--- a/src/ifuse.c
+++ b/src/ifuse.c
@@ -55,6 +55,8 @@ static int ifuse_getattr(const char *path, struct stat *stbuf) {
55 } else { 55 } else {
56 stbuf->st_mode = file->type | 0644; // but we don't want anything on the iPhone executable, like, ever 56 stbuf->st_mode = file->type | 0644; // but we don't want anything on the iPhone executable, like, ever
57 stbuf->st_size = file->size; 57 stbuf->st_size = file->size;
58 stbuf->st_blksize = 2048; // FIXME: Is this the actual block size used on the iPhone?
59 stbuf->st_blocks = file->blocks;
58 } 60 }
59 61
60 return res; 62 return res;