1
0
mirror of https://github.com/openSUSE/libsolv.git synced 2026-02-05 12:45:46 +01:00

Incompatible ABI change: change diskusage from int to long long

The diskusage is in kilobytes anyway, but this should make things
more future proof.
This commit is contained in:
Michael Schroeder
2018-10-22 11:13:46 +02:00
parent 965dc2d0e4
commit 9f58a14bf6
3 changed files with 4 additions and 4 deletions

View File

@@ -130,7 +130,7 @@ showdiskusagechanges(Transaction *trans)
duc[3].path = "/etc";
transaction_calc_duchanges(trans, duc, 4);
for (i = 0; i < 4; i++)
printf("duchanges %s: %d K %d inodes\n", duc[i].path, duc[i].kbytes, duc[i].files);
printf("duchanges %s: %lld K %lld inodes\n", duc[i].path, duc[i].kbytes, duc[i].files);
}
#endif

View File

@@ -308,7 +308,7 @@ pool_calc_duchanges(Pool *pool, Map *installedmap, DUChanges *mps, int nmps)
{
if (MAPTST(installedmap, sp))
continue;
if (ignoredu.map && MAPTST(&ignoredu, sp - oldinstalled->start))
if (ignoredu.size && MAPTST(&ignoredu, sp - oldinstalled->start))
continue;
repo_search(oldinstalled, sp, SOLVABLE_DISKUSAGE, 0, 0, solver_fill_DU_cb, &cbd);
}

View File

@@ -376,8 +376,8 @@ const char *pool_lookup_deltalocation(Pool *pool, Id entry, unsigned int *median
typedef struct _DUChanges {
const char *path;
int kbytes;
int files;
long long kbytes;
long long files;
int flags;
} DUChanges;