packages/net/tgt/patches/010-fallocate.patch
Maxim Storchak bf1f6fc330 tgt: update to 1.0.48 and add all stuff announced in the the previous commit
Signed-off-by: Maxim Storchak <m.storchak@gmail.com>
2014-06-11 10:09:08 +03:00

14 lines
389 B
Diff

--- 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;
}