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