f564a4d143
Mainly 4 parts: - scripts for providing rpmdb and yum repos to VM (choosen by qvm-set-updatevm) - VM script for downloading updates (qubes_download_dom0_updates.sh) - qfile-dom0-unpacker which receive updates, check signatures and place its in dom0 local yum repo - qvm-dom0-upgrade which calls all of above and after all yum gpk-update-viewer Besides qvm-dom0-upgrade, updates are checked every 6h and user is prompted if want to download it. At dom0 side gpk-update-icon (disabled yet) should notice new updates in "local" repo.
32 lines
663 B
C
32 lines
663 B
C
#define FILECOPY_SPOOL "/home/user/.filecopyspool"
|
|
#define FILECOPY_VMNAME_SIZE 32
|
|
#define PROGRESS_NOTIFY_DELTA (15*1000*1000)
|
|
#define MAX_PATH_LENGTH 16384
|
|
|
|
#define LEGAL_EOF 31415926
|
|
|
|
struct file_header {
|
|
unsigned int namelen;
|
|
unsigned int mode;
|
|
unsigned long long filelen;
|
|
unsigned int atime;
|
|
unsigned int atime_nsec;
|
|
unsigned int mtime;
|
|
unsigned int mtime_nsec;
|
|
};
|
|
|
|
struct result_header {
|
|
unsigned int error_code;
|
|
unsigned long crc32;
|
|
};
|
|
|
|
enum {
|
|
COPY_FILE_OK,
|
|
COPY_FILE_READ_EOF,
|
|
COPY_FILE_READ_ERROR,
|
|
COPY_FILE_WRITE_ERROR
|
|
};
|
|
|
|
int copy_file(int outfd, int infd, long long size, unsigned long *crc32);
|
|
char *copy_file_status_to_str(int status);
|