From 506427628afeb5d70eefdac1fe4c2a1ffb27df5f Mon Sep 17 00:00:00 2001 From: Asias He Date: Mon, 25 Feb 2013 14:03:43 +0800 Subject: [PATCH] target/file: Add UNMAP emulation support This patch adds support for emulation of UNMAP within fd_execute_unmap() backend code. If the FILEIO backend is normal file, the emulation uses fallocate to punch hole to reclaim the free space used by the file. If the FILEIO backend is block device, the emulation uses blkdev_issue_discard(). Cc: Christoph Hellwig Cc: Martin K. Petersen Cc: Nicholas Bellinger Signed-off-by: Asias He Signed-off-by: Nicholas Bellinger --- Reading git-format-patch failed