diff options
| -rw-r--r-- | src/AFC.c | 1 | ||||
| -rw-r--r-- | src/ifuse.c | 2 | 
2 files changed, 2 insertions, 1 deletions
| @@ -547,7 +547,6 @@ AFCFile *afc_get_file_info(AFClient *client, const char *path) {  				my_file->size = atoi(list[i+1]);  			} -			  			if (!strcmp(list[i], "st_blocks")) {  				my_file->blocks = atoi(list[i+1]);  			} 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) {  	} else {  		stbuf->st_mode = file->type | 0644; // but we don't want anything on the iPhone executable, like, ever  		stbuf->st_size = file->size; +		stbuf->st_blksize = 2048; // FIXME: Is this the actual block size used on the iPhone? +		stbuf->st_blocks = file->blocks;  	}  	return res; | 
