summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcaozhiyuan <cao.zhiyuan@zte.com.cn>2015-05-19 11:21:00 +0200
committercaozhiyuan <cao.zhiyuan@zte.com.cn>2015-05-29 07:32:49 +0200
commit3b4977638f48e59d23d7ea2bb6dde78552c257fb (patch)
tree5f06eed3b6012bf5cf38acee7e94f2f489c209c7
parentMerge "Handle BLKDISCARD failures" (diff)
downloadandroid_bootable_recovery-3b4977638f48e59d23d7ea2bb6dde78552c257fb.tar
android_bootable_recovery-3b4977638f48e59d23d7ea2bb6dde78552c257fb.tar.gz
android_bootable_recovery-3b4977638f48e59d23d7ea2bb6dde78552c257fb.tar.bz2
android_bootable_recovery-3b4977638f48e59d23d7ea2bb6dde78552c257fb.tar.lz
android_bootable_recovery-3b4977638f48e59d23d7ea2bb6dde78552c257fb.tar.xz
android_bootable_recovery-3b4977638f48e59d23d7ea2bb6dde78552c257fb.tar.zst
android_bootable_recovery-3b4977638f48e59d23d7ea2bb6dde78552c257fb.zip
-rw-r--r--applypatch/applypatch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/applypatch/applypatch.c b/applypatch/applypatch.c
index 6f02a38ee..2358d4292 100644
--- a/applypatch/applypatch.c
+++ b/applypatch/applypatch.c
@@ -662,7 +662,7 @@ size_t FreeSpaceForFile(const char* filename) {
printf("failed to statfs %s: %s\n", filename, strerror(errno));
return -1;
}
- return sf.f_bsize * sf.f_bfree;
+ return sf.f_bsize * sf.f_bavail;
}
int CacheSizeCheck(size_t bytes) {