From bc6f309b2bd341e04d2a1a9cc2c035f2dd44e0e7 Mon Sep 17 00:00:00 2001 From: Matt Colyer Date: Mon, 18 Aug 2008 08:55:44 -0700 Subject: Exposed file block information in iFuse. --- src/ifuse.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ifuse.c') 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; -- cgit v1.1-32-gdbae