Displaying 5 results from an estimated 5 matches for "part_dev".
Did you mean:
part_del
2015 Jul 02
0
[PATCH] Fix various -Wformat problems.
...%s' (%s returned %u)\n"),
guestfs_int_program_name, "parse_size", str, "xstrtoull", xerr);
return -1;
}
diff --git a/p2v/main.c b/p2v/main.c
index 666faf1..be32e4b 100644
--- a/p2v/main.c
+++ b/p2v/main.c
@@ -312,8 +312,9 @@ partition_parent (dev_t part_dev)
size_t len = 0;
unsigned parent_major, parent_minor;
- if (asprintf (&path, "/sys/dev/block/%d:%d/../dev",
- major (part_dev), minor (part_dev)) == -1) {
+ if (asprintf (&path, "/sys/dev/block/%ju:%ju/../dev",
+ (uintmax_t) major...
2015 Jul 02
0
[PATCH v2] Fix various -Wformat problems.
...%s' (%s returned %u)\n"),
guestfs_int_program_name, "parse_size", str, "xstrtoull", xerr);
return -1;
}
diff --git a/p2v/main.c b/p2v/main.c
index 666faf1..be32e4b 100644
--- a/p2v/main.c
+++ b/p2v/main.c
@@ -312,8 +312,9 @@ partition_parent (dev_t part_dev)
size_t len = 0;
unsigned parent_major, parent_minor;
- if (asprintf (&path, "/sys/dev/block/%d:%d/../dev",
- major (part_dev), minor (part_dev)) == -1) {
+ if (asprintf (&path, "/sys/dev/block/%ju:%ju/../dev",
+ (uintmax_t) major...
2015 May 14
1
[PATCH] When calling getline first time, initialize length to zero.
...use (void)
fflush (stdout)
FILE *fp;
char *line = NULL;
- size_t len;
+ size_t len = 0;
struct stat statbuf;
char buf[128];
ssize_t r;
diff --git a/p2v/main.c b/p2v/main.c
index 15628ba..1f8370b 100644
--- a/p2v/main.c
+++ b/p2v/main.c
@@ -306,7 +306,7 @@ partition_parent (dev_t part_dev)
{
CLEANUP_FCLOSE FILE *fp = NULL;
CLEANUP_FREE char *path = NULL, *content = NULL;
- size_t len;
+ size_t len = 0;
unsigned parent_major, parent_minor;
if (asprintf (&path, "/sys/dev/block/%d:%d/../dev",
@@ -521,7 +521,7 @@ read_cmdline (void)
{
CLEANUP_FCLOSE FI...
2016 Apr 04
2
[PATCH 1/2] Use 'error' function consistently throughout.
...m_string (hostname, 8) == -1) {
- perror ("/dev/urandom");
- exit (EXIT_FAILURE);
- }
+ if (guestfs_int_random_string (hostname, 8) == -1)
+ error (EXIT_FAILURE, errno, "/dev/random");
} else {
char *p;
@@ -326,19 +325,15 @@ partition_parent (dev_t part_dev)
if (asprintf (&path, "/sys/dev/block/%ju:%ju/../dev",
(uintmax_t) major (part_dev),
- (uintmax_t) minor (part_dev)) == -1) {
- perror ("asprintf");
- exit (EXIT_FAILURE);
- }
+ (uintmax_t) minor (part_dev)) == -1)
+...
2019 Sep 10
3
[PATCH 0/2] Remove virt-p2v from libguestfs
Now that virt-p2v has its own repository [1] and releases [2], it is
time to remove it from libguestfs.
[1] https://github.com/libguestfs/virt-p2v
[2] http://download.libguestfs.org/virt-p2v/
Pino Toscano (2):
Remove virt-p2v
Remove remaining virt-p2v bits
.gitignore | 4 -
Makefile.am | 7 +-
bash/Makefile.am