From 38393d276f379f17747c96f10b7f70106eeab950 Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Fri, 7 May 2010 19:56:34 +0200 Subject: [PATCH] xfsprogs: add a platform_discard_blocks stub for GNU/kFreebsd Signed-off-by: Christoph Hellwig Reviewed-by: Nathan Scott --- include/gnukfreebsd.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/gnukfreebsd.h b/include/gnukfreebsd.h index 0d8843eb2..1ec291fdf 100644 --- a/include/gnukfreebsd.h +++ b/include/gnukfreebsd.h @@ -119,4 +119,10 @@ static __inline__ void platform_uuid_copy(uuid_t *dst, uuid_t *src) uuid_copy(*dst, *src); } +static __inline__ int +platform_discard_blocks(int fd, uint64_t start, uint64_t len) +{ + return 0; +} + #endif /* __XFS_KFREEBSD_H__ */ -- 2.47.2