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:
@@ -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
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user