diff options
author | David Cantrell <dcantrell@redhat.com> | 2008-08-25 22:02:56 -1000 |
---|---|---|
committer | David Cantrell <dcantrell@redhat.com> | 2008-08-25 22:02:56 -1000 |
commit | e03184847fd46f0b52066eef8632234d7b52864d (patch) | |
tree | 634b1e3ac4ae8e29dfaa43c9561b8da942c7ca43 /loader/method.c | |
parent | 8c740e33db7bb674194a9196c6ea7785bd5796ff (diff) | |
download | anaconda-e03184847fd46f0b52066eef8632234d7b52864d.tar.gz anaconda-e03184847fd46f0b52066eef8632234d7b52864d.tar.xz anaconda-e03184847fd46f0b52066eef8632234d7b52864d.zip |
Download progress indicator for FTP and HTTP in stage 1.
Patch from Ricky Zhou to add a pinwheel and progress bar for
FTP and HTTP downloads from loader.
Diffstat (limited to 'loader/method.c')
-rw-r--r-- | loader/method.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/loader/method.c b/loader/method.c index 26dc2c3fa..2313cee43 100644 --- a/loader/method.c +++ b/loader/method.c @@ -441,12 +441,13 @@ int mountStage2(char *stage2path) { /* copies a second stage from fd to dest and mounts on mntpoint */ -int copyFileAndLoopbackMount(int fd, char * dest, - char * device, char * mntpoint) { +int copyFileAndLoopbackMount(int fd, char * dest, char * device, char * mntpoint, + progressCB pbcb, struct progressCBdata *data, + long long total) { int rc; struct stat sb; - rc = copyFileFd(fd, dest); + rc = copyFileFd(fd, dest, pbcb, data, total); stat(dest, &sb); logMessage(DEBUGLVL, "copied %" PRId64 " bytes to %s (%s)", sb.st_size, dest, ((rc) ? " incomplete" : "complete")); |