1. 15 4月, 2015 4 次提交
    • J
      sanlock: Use VIR_ERR_RESOURCE_BUSY if sanlock_acquire fails · 4864e377
      Jiri Denemark 提交于
      When acquiring resource via sanlock fails, we would report it as
      VIR_ERR_INTERNAL_ERROR, which is not very friendly to applications using
      libvirt. Moreover, the lockd driver would report the same failure as
      VIR_ERR_RESOURCE_BUSY, which looks better.
      
      Unfortunately, in sanlock driver we don't really know if acquiring the
      resource failed because it was already locked or there was another
      reason behind. But the end result is the same and I think using
      VIR_ERR_RESOURCE_BUSY reason for all acquire failures is still better
      than what we have now.
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1165119Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      4864e377
    • E
      build: provide virNetDevSysfsFile on non-Linux · 58dfc534
      Eric Blake 提交于
      Commit 49ed6cff is broken on mingw and other non-linux platforms:
      
        CCLD     libvirt.la
        Cannot export virNetDevSysfsFile: symbol not defined
        collect2: error: ld returned 1 exit status
      
      * src/util/virnetdev.c: Provide virNetDevSysfsFile fallback.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      58dfc534
    • E
      build: include correct header for time() · e4ab0848
      Eric Blake 提交于
      Found by ./autobuild.sh during a mingw cross-compile:
      
      Commit 8a96e87e was not innocuous - glibc happens to leak the
      definition of time() through other headers, so that even without
      <sys/select.h>, virrandom.c compiled just fine.  But on mingw,
      we were not so lucky; <sys/select.h> was important for its side
      effect of dragging in <time.h>, and we now have nothing providing
      the declaration of time():
      
      ../../src/util/virrandom.c: In function 'virRandomOnceInit':
      ../../src/util/virrandom.c:65:5: error: implicit declaration of function 'time' [-Werror=implicit-function-declaration]
           unsigned int seed = time(NULL) ^ getpid();
                ^
      	  ../../src/util/virrandom.c:65:5: error: nested extern declaration of 'time' [-Werror=nested-externs]
      Signed-off-by: NEric Blake <eblake@redhat.com>
      e4ab0848
    • M
      Introduce virnetdevtest · 49ed6cff
      Michal Privoznik 提交于
      This is yet another test for check of basic functionality of our
      NIC state handling code.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      49ed6cff
  2. 14 4月, 2015 31 次提交
  3. 13 4月, 2015 5 次提交