git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New API: list-md-devices.
[libguestfs.git]
/
daemon
/
fill.c
diff --git
a/daemon/fill.c
b/daemon/fill.c
index
807ee39
..
9ea00ab
100644
(file)
--- a/
daemon/fill.c
+++ b/
daemon/fill.c
@@
-13,7
+13,7
@@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc.,
675 Mass Ave, Cambridge, MA 02139,
USA.
+ * Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
USA.
*/
#include <config.h>
*/
#include <config.h>
@@
-24,7
+24,7
@@
#include <unistd.h>
#include <fcntl.h>
#include <unistd.h>
#include <fcntl.h>
-#include "
../src/
guestfs_protocol.h"
+#include "guestfs_protocol.h"
#include "daemon.h"
#include "actions.h"
#include "daemon.h"
#include "actions.h"
@@
-66,6
+66,7
@@
do_fill (int c, int len, const char *path)
return -1;
}
n += r;
return -1;
}
n += r;
+ notify_progress ((uint64_t) n, (uint64_t) len_sz);
}
if (close (fd) == -1) {
}
if (close (fd) == -1) {
@@
-112,6
+113,7
@@
do_fill_pattern (const char *pattern, int len, const char *path)
return -1;
}
n += wrlen;
return -1;
}
n += wrlen;
+ notify_progress ((uint64_t) n, (uint64_t) len_sz);
}
if (close (fd) == -1) {
}
if (close (fd) == -1) {