1. 02 Jun, 2015 1 commit
    • indexer: use lseek to extend the packfile · aa57231f
      We've been using `p_ftruncate()` to extend the packfile in order to mmap
      it and write the new data into it. This works well in the general case,
      but as truncation does not allocate space in the filesystem, it must do
      so when we write data to it.
      
      The only way the OS has to indicate a failure to allocate space is via
      SIGBUS which means we tried to write outside the file. This will cause
      everyone to crash as they don't expect to handle this signal.
      
      Switch to using `p_lseek()` and `p_write()` to extend the file in a way
      which tells the filesystem to allocate the space for the missing
      data. We can then be sure that we have space to write into.
      Carlos Martín Nieto committed
  2. 31 May, 2015 6 commits
  3. 29 May, 2015 4 commits
  4. 28 May, 2015 26 commits
  5. 27 May, 2015 3 commits