libalpm
Arch Linux Package Manager Library
|
#include <errno.h>
#include "diskspace.h"
#include "alpm_list.h"
#include "util.h"
#include "log.h"
#include "trans.h"
#include "handle.h"
Go to the source code of this file.
Functions | |
int | _alpm_check_downloadspace (alpm_handle_t *handle, const char *cachedir, size_t num_files, off_t *file_sizes) |
int | _alpm_check_diskspace (alpm_handle_t *handle) |
int _alpm_check_diskspace | ( | alpm_handle_t * | handle | ) |
Definition at line 310 of file diskspace.c.
References _, _alpm_db_get_pkgfromcache(), _alpm_log(), __alpm_trans_t::add, ALPM_ERR_DISK_SPACE, alpm_list_count(), ALPM_LOG_ERROR, ALPM_PROGRESS_DISKSPACE_START, __alpm_mountpoint_t::blocks_needed, __alpm_list_t::data, __alpm_handle_t::db_local, __alpm_mountpoint_t::max_blocks_needed, __alpm_mountpoint_t::mount_dir, __alpm_pkg_t::name, __alpm_list_t::next, PROGRESS, __alpm_mountpoint_t::read_only, __alpm_trans_t::remove, RET_ERR, __alpm_handle_t::root, __alpm_handle_t::trans, __alpm_mountpoint_t::used, and USED_INSTALL.
Referenced by _alpm_sync_commit().
int _alpm_check_downloadspace | ( | alpm_handle_t * | handle, |
const char * | cachedir, | ||
size_t | num_files, | ||
off_t * | file_sizes | ||
) |
Definition at line 265 of file diskspace.c.
References _, _alpm_log(), ALPM_ERR_DISK_SPACE, ALPM_LOG_ERROR, __alpm_mountpoint_t::fsp, __alpm_mountpoint_t::max_blocks_needed, and RET_ERR.