No Description

010-fallocate.patch 389B

1234567891011121314
  1. --- tgt-1.0.48.orig/usr/util.h 2014-06-04 15:03:53.000000000 +0300
  2. +++ tgt-1.0.48/usr/util.h 2014-06-04 15:17:48.548123039 +0300
  3. @@ -212,11 +212,6 @@
  4. */
  5. static inline int unmap_file_region(int fd, off_t offset, off_t length)
  6. {
  7. -#ifdef FALLOC_FL_PUNCH_HOLE
  8. - if (fallocate(fd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE,
  9. - offset, length) == 0)
  10. - return 0;
  11. -#endif
  12. return -1;
  13. }