diff options
author | Tao Bao <tbao@google.com> | 2015-05-29 08:32:54 +0200 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-05-29 08:32:54 +0200 |
commit | eec204be63ed115f6a8fec941224fad3d5b6a720 (patch) | |
tree | 5f06eed3b6012bf5cf38acee7e94f2f489c209c7 /applypatch/applypatch.c | |
parent | am aa4df5c4: Merge "Handle BLKDISCARD failures" (diff) | |
parent | Merge "Use f_bavail to calculate free space" (diff) | |
download | android_bootable_recovery-eec204be63ed115f6a8fec941224fad3d5b6a720.tar android_bootable_recovery-eec204be63ed115f6a8fec941224fad3d5b6a720.tar.gz android_bootable_recovery-eec204be63ed115f6a8fec941224fad3d5b6a720.tar.bz2 android_bootable_recovery-eec204be63ed115f6a8fec941224fad3d5b6a720.tar.lz android_bootable_recovery-eec204be63ed115f6a8fec941224fad3d5b6a720.tar.xz android_bootable_recovery-eec204be63ed115f6a8fec941224fad3d5b6a720.tar.zst android_bootable_recovery-eec204be63ed115f6a8fec941224fad3d5b6a720.zip |
Diffstat (limited to 'applypatch/applypatch.c')
-rw-r--r-- | applypatch/applypatch.c | 2 |
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) { |