Hello community,

here is the log from the commit of package hyper-v for openSUSE:Factory checked 
in at 2014-02-12 17:22:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/hyper-v (Old)
 and      /work/SRC/openSUSE:Factory/.hyper-v.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "hyper-v"

Changes:
--------
--- /work/SRC/openSUSE:Factory/hyper-v/hyper-v.changes  2014-01-30 
11:25:42.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.hyper-v.new/hyper-v.changes     2014-02-12 
17:22:17.000000000 +0100
@@ -1,0 +2,5 @@
+Wed Feb 12 10:32:54 CET 2014 - [email protected]
+
+- Update hv_fcopy_daemon, kernel name changed to /dev/vmbus/hv_fcopy
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ hyper-v.spec ++++++
--- /var/tmp/diff_new_pack.kivVMa/_old  2014-02-12 17:22:17.000000000 +0100
+++ /var/tmp/diff_new_pack.kivVMa/_new  2014-02-12 17:22:17.000000000 +0100
@@ -190,7 +190,7 @@
 SUBSYSTEM=="vmbus", ACTION=="add", 
ATTR{class_id}=="{35fa2e29-ea23-4236-96ae-3a6ebacba440}", TAG+="systemd", 
ENV{SYSTEMD_WANTS}+="%{hv_vss_daemon}.service"
 EOF
 cat > ${d}/%{hv_fcopy_daemon}.rules <<EOF
-ACTION=="add", KERNEL=="hv_fcopy", TAG+="systemd", 
ENV{SYSTEMD_WANTS}+="%{hv_fcopy_daemon}.service"
+ACTION=="add", KERNEL=="vmbus/hv_fcopy", TAG+="systemd", 
ENV{SYSTEMD_WANTS}+="%{hv_fcopy_daemon}.service"
 EOF
 #
 head -n 42 ${d}/*.rules

++++++ hyper-v.tools.hv.hv_fcopy_daemon.c ++++++
--- /var/tmp/diff_new_pack.kivVMa/_old  2014-02-12 17:22:17.000000000 +0100
+++ /var/tmp/diff_new_pack.kivVMa/_new  2014-02-12 17:22:17.000000000 +0100
@@ -126,7 +126,7 @@
 int main(void)
 {
        int fd, fcopy_fd, len;
-       int error = 0;
+       int error;
        int version = FCOPY_CURRENT_VERSION;
        char *buffer[4096 * 2];
        struct hv_fcopy_hdr *in_msg;
@@ -139,7 +139,7 @@
        openlog("HV_FCOPY", 0, LOG_USER);
        syslog(LOG_INFO, "HV_FCOPY starting; pid is:%d", getpid());
 
-       fcopy_fd = open("/dev/hv_fcopy", O_RDWR);
+       fcopy_fd = open("/dev/vmbus/hv_fcopy", O_RDWR);
 
        if (fcopy_fd < 0) {
                syslog(LOG_ERR, "open /dev/hv_fcopy failed; error: %d %s",
@@ -160,15 +160,10 @@
                 * In this loop we process fcopy messages after the
                 * handshake is complete.
                 */
-
                len = pread(fcopy_fd, buffer, (4096 * 2), 0);
-               if (len <= 0) {
-                       if (!error) {
-                               syslog(LOG_ERR, "Read error: %s",
-                                        strerror(errno));
-                               error = HV_E_FAIL;
-                       }
-                       continue;
+               if (len < 0) {
+                       syslog(LOG_ERR, "pread failed: %s", strerror(errno));
+                       exit(EXIT_FAILURE);
                }
                in_msg = (struct hv_fcopy_hdr *)buffer;
 

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to