Displaying 11 results from an estimated 11 matches for "get_if_vendor".
2016 Jun 22
0
[PATCH 4/4] p2v: add -x option to nm-online
...ction will be checked just after
anyway when attempting to connect to the conversion server using ssh.
---
p2v/utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/p2v/utils.c b/p2v/utils.c
index c4f82cd..746093b 100644
--- a/p2v/utils.c
+++ b/p2v/utils.c
@@ -139,7 +139,7 @@ get_if_vendor (const char *if_name, int truncate)
}
/* XXX We could make this configurable. */
-#define NETWORK_ONLINE_COMMAND "nm-online -t 30"
+#define NETWORK_ONLINE_COMMAND "nm-online -t 30 -x"
/**
* Wait for the network to come online, but don't error out if that
--
2.6.6
2019 Dec 03
0
[p2v PATCH 6/6] Remove whole-file.c
...@ virt_p2v_SOURCES = \
physical-xml.c \
rtc.c \
ssh.c \
- utils.c \
- whole-file.c
+ utils.c
generated_sources = \
config.c \
diff --git a/p2v.h b/p2v.h
index adace84..a14edc5 100644
--- a/p2v.h
+++ b/p2v.h
@@ -125,9 +125,6 @@ extern char *get_if_addr (const char *if_name);
extern char *get_if_vendor (const char *if_name, int truncate);
extern void wait_network_online (const struct config *);
-/* whole-file.c */
-extern int read_whole_file (const char *filename, char **data_r, size_t *size_r);
-
/* virt-v2v version and features (read from remote). */
extern char *v2v_version;
diff --git...
2016 Jun 22
8
[PATCH 0/4] virt-p2v support for openSUSE / SLES
Hi there,
Here are a few patches to get virt-p2v working on openSUSE and SLES. Note
that I intentionnaly use icewm and yast2 lan for SLES and openSUSE since SLES
doesn't ship metacity and all of NetworkManager pieces.
Cédric Bosdonnat (4):
p2v: use yast2 lan on SUSE distros rather than NM
p2v: fix dependencies for SLES / openSUSE
p2v: add virt-p2v-make-kiwi to generate kiwi config
2015 Nov 16
0
[PATCH] p2v: Send physical server 'dmesg' output to debug dir on conversion server.
..._dir, const char *libvirt_xml);
+extern mexp_h *start_remote_connection (struct config *, const char *remote_dir, const char *libvirt_xml, const char *dmesg);
extern const char *get_ssh_error (void);
/* utils.c */
@@ -124,6 +124,9 @@ extern char *get_if_addr (const char *if_name);
extern char *get_if_vendor (const char *if_name, int truncate);
extern void wait_network_online (const struct config *);
+/* whole-file.c */
+extern int read_whole_file (const char *filename, char **data_r, size_t *size_r);
+
/* virt-v2v version and features (read from remote). */
extern int v2v_major;
extern int v2v_m...
2015 Aug 25
4
[PATCH 0/4] Various p2v fixes and features
A mixed bag, but all the patches make sense together!
Patch 1: Fix a bug that Tingting found:
https://bugzilla.redhat.com/show_bug.cgi?id=1256222
Patch 2: Revert a patch that makes no sense now that we've added
virt-v2v into base RHEL. This is just included because it's a cleanup
needed before applying patch 3.
Patch 3: Add the ability to use SSH identities (private keys) for
virt-p2v
2015 Aug 27
5
[PATCH v2 0/4] p2v: Wait for network to come online before testing connection
Fixes https://bugzilla.redhat.com/1256222
2019 Dec 03
7
[p2v PATCH 0/6] Use GLib a bit more
In an effort to reduce the code, start to use few bits of GLib:
- replace the gnulib c-type module
- replace the gnulib getprogname module
- use g_spawn_sync to launch curl, and drop a file reading function
Pino Toscano (6):
Include glib.h in p2v.h
Use g_ascii_isspace instead of c_isspace from gnulib
Use g_get_prgname instead of getprogname from gnulib
build: remove no more used gnulib
2016 Jun 22
4
[PATCH v2 0/4] virt-p2v support for openSUSE / SLES
Diff to v1:
* Use access rather than stat in gui.c
* Remove now uneeded and missplaced include for stat.h
Cédric Bosdonnat (4):
p2v: use yast2 lan on SUSE distros rather than NM
p2v: fix dependencies for SLES / openSUSE
p2v: add virt-p2v-make-kiwi to generate kiwi config
p2v: add -x option to nm-online
.gitignore | 3 +
configure.ac | 2 +
2016 Jun 22
5
[PATCH v3 0/4] virt-p2v support for openSUSE / SLES
Diff to v2:
* remove leftover variable declaration in gui.c
Cédric Bosdonnat (4):
p2v: use yast2 lan on SUSE distros rather than NM
p2v: fix dependencies for SLES / openSUSE
p2v: add virt-p2v-make-kiwi to generate kiwi config
p2v: add -x option to nm-online
.gitignore | 3 +
configure.ac | 2 +
p2v/Makefile.am | 31 +++++-
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
2016 Apr 04
2
[PATCH 1/2] Use 'error' function consistently throughout.
...- perror ("asprintf");
- exit (EXIT_FAILURE);
- }
+ if (asprintf (&path, "/sys/class/net/%s/address", if_name) == -1)
+ error (EXIT_FAILURE, errno, "asprintf");
fp = fopen (path, "r");
if (fp == NULL)
return NULL;
@@ -78,10 +78,8 @@ get_if_vendor (const char *if_name, int truncate)
ssize_t n;
char vendor[5];
- if (asprintf (&path, "/sys/class/net/%s/device/vendor", if_name) == -1) {
- perror ("asprintf");
- exit (EXIT_FAILURE);
- }
+ if (asprintf (&path, "/sys/class/net/%s/device/vendor"...