Skip to content
Snippets Groups Projects
  1. Dec 03, 2013
  2. Nov 15, 2013
  3. Nov 08, 2013
  4. Oct 30, 2013
    • Nadav Har'El's avatar
      Simplify host-side of zfs image build · be3e55d6
      Nadav Har'El authored
      
      This patch simplifies the host-side work in the new /usr zfs filesystem
      build process.
      
      Previously, we copied the files to a temporary directory, used "cpio"
      to archive them and sent its output to the guest with "netcat".
      
      With this patch, we no longer have a temporary directory, and do not
      need either cpio or netcat on the build machine.
      
      Rather, mkzfs.py itself, using python (instead of a separate "nc" process),
      connects to the guest and sends it the files - still using the CPIO format.
      
      Rather than arbitrarily sleep for 3 seconds before the host tries to
      connect to the guest (which might not be enough for some, or a waste
      of time for others), with this patch the host looks at the guest's output
      and connects when it sees the message "Waiting for connection".
      
      Signed-off-by: default avatarNadav Har'El <nyh@cloudius-systems.com>
      be3e55d6
  5. Oct 29, 2013
  6. Oct 25, 2013
    • Pekka Enberg's avatar
      tools/route: Fix DOS line breaks · 7f5e3bd1
      Pekka Enberg authored
      
      Run 'dos2unix' on the sucker...
      
      Signed-off-by: default avatarPekka Enberg <penberg@cloudius-systems.com>
      7f5e3bd1
    • Tomasz Grabiec's avatar
      cpio: reduce memory pressure · 9ee4a63e
      Tomasz Grabiec authored
      
      The current implementation was copying the whole file contents into an
      array and then into stringstream which under the hood copied it again
      into even bigger array. These allocations were causing memory
      fragmentation which some times led to malloc failure.
      
      The new approach is using fixed amount of memory. For each file it
      wraps the cpio input stream in a restricted stream which limits the
      amount of data that can be read from it so that it represents a view
      for only that file's data. After the consumer has read it we simply
      ignore the remaining padding from the cpio stream.
      
      This fixes issue #66
      
      Signed-off-by: default avatarTomasz Grabiec <tgrabiec@cloudius-systems.com>
      9ee4a63e
  7. Oct 24, 2013
  8. Oct 17, 2013
  9. Oct 16, 2013
  10. Oct 10, 2013
    • Avi Kivity's avatar
      build: define _KERNEL everywhere · 95ce17e3
      Avi Kivity authored
      We have _KERNEL defines scattered throughout the code, which makes
      understanding it difficult.
      
      Define it just once, and adjust the source to build.
      
      We define it in an overridable variable, so that non-kernel imported code
      can undo it.
      95ce17e3
  11. Oct 03, 2013
  12. Sep 29, 2013
  13. Sep 25, 2013
  14. Aug 27, 2013
  15. Jun 19, 2013
    • Guy Zana's avatar
      bsd: avoid using extern "C" in c++ files · 8536721b
      Guy Zana authored
      1. it is much cleaner that the header files perform extern "C" themselves,
         so they can be included both from C and C++ code.
      
      2. when doing extern "C" from a C++ file then __cplusplus is also defined,
         and compilation can break in some situations.
      
      3. as a bonus, this patch increase compilation time.
      8536721b
    • Nadav Har'El's avatar
      Fix "ifconfig" corrupting accept_mtx · 073d9ea7
      Nadav Har'El authored
      ifconfig used to call sofree(), which assumed accept_mtx was taken, which
      wasn't true, resulting in either an assertion failure (if we implement
      assert_mtx - see next patch) or a mutex corruption (if assert_mtx does
      nothing).
      
      Instead, we should call soclose(). This wasn't very hard to figure out,
      given the comment in socreate() saying "The socket should be closed with
      soclose()." :-)
      073d9ea7
  16. Jun 04, 2013
  17. Jun 03, 2013
Loading