search for: do_zero_device

Displaying 6 results from an estimated 6 matches for "do_zero_device".

2012 Feb 06
3
[PATCH 1/3] NEW API: add a new api zero_fs
...ce) +{ + int r; + char *err = NULL; + + const char *wipefs[] = {"wipefs", "-a", device, NULL}; + r = commandv (NULL, &err, wipefs); + if (r == -1) { + reply_with_error ("%s", err); + free (err); + return -1; + } + free (err); + return 0; +} + +int do_zero_device (const char *device) { int64_t ssize = do_blockdev_getsize64 (device); diff --git a/generator/generator_actions.ml b/generator/generator_actions.ml index 3a7be79..d27ef43 100644 --- a/generator/generator_actions.ml +++ b/generator/generator_actions.ml @@ -6651,6 +6651,20 @@ This option may not...
2012 Feb 08
2
[PATCH v3 0/2] Add a new api wipefs
Hi Rich: This is a alternative patch, if you like the api name called wipefs ;-P Thanks -Wanlong Gao Wanlong Gao (2): NEW API: add a new api wipefs virt-format: erase the filesystem signatures before erase partitions TODO | 2 -- daemon/zero.c | 17 +++++++++++++++++ format/format.c | 19 ++++---------------
2012 Feb 10
3
[PATCH-v4 0/2] Add a new api wipefs
Hi Rich: This is a latest patch. ;-P Comments? Thanks -Wanlong Gao Wanlong Gao (2): NEW API: add a new api wipefs virt-format: erase the filesystem signatures before erase partitions TODO | 2 -- daemon/zero.c | 17 +++++++++++++++++ format/format.c | 19 ++++--------------- generator/generator_actions.ml | 14
2010 Aug 31
13
[PATCH v2] Add progress bars
This is an updated and extended version of the original patch: https://www.redhat.com/archives/libguestfs/2010-August/msg00163.html This adds OCaml and Perl bindings (both tested), support for progress bars in virt-resize, and adds progress notifications to a number of the simpler commands. Still to do is to add progress messages to more commands. There are still a few commands which would be
2015 Jul 02
0
[PATCH] Fix various -Wformat problems.
..."0%o: mask negative or out of range", mask); + reply_with_error ("0%o: mask negative or out of range", (unsigned) mask); return -1; } diff --git a/daemon/zero.c b/daemon/zero.c index 505c4bb..d152210 100644 --- a/daemon/zero.c +++ b/daemon/zero.c @@ -172,7 +172,7 @@ do_zero_device (const char *device) if (!is_zero (buf, sizeof buf)) { r = pwrite (fd, zero_buf, n, pos); if (r == -1) { - reply_with_perror ("pwrite: %s (with %" PRId64 " bytes left to write)", + reply_with_perror ("pwrite: %s (with %" PRIu64 " b...
2015 Jul 02
0
[PATCH v2] Fix various -Wformat problems.
..."0%o: mask negative or out of range", mask); + reply_with_error ("0%o: mask negative or out of range", (unsigned) mask); return -1; } diff --git a/daemon/zero.c b/daemon/zero.c index 505c4bb..d152210 100644 --- a/daemon/zero.c +++ b/daemon/zero.c @@ -172,7 +172,7 @@ do_zero_device (const char *device) if (!is_zero (buf, sizeof buf)) { r = pwrite (fd, zero_buf, n, pos); if (r == -1) { - reply_with_perror ("pwrite: %s (with %" PRId64 " bytes left to write)", + reply_with_perror ("pwrite: %s (with %" PRIu64 " b...