From 9b8d12f5dccd459429c27b6f6ca8b4614dbbbe1f Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Tue, 28 Jan 2014 14:38:45 +0200 Subject: [PATCH] man page: mention SEEK_HOLE Mention that we fall-back to SEEK_HOLE when FIEMAP is not supported. Change-Id: I3aec79f214982e6f4aec0f9900f26231a26c665f Signed-off-by: Artem Bityutskiy --- docs/man1/bmaptool.1 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/man1/bmaptool.1 b/docs/man1/bmaptool.1 index dffcc08..a1c6f0e 100644 --- a/docs/man1/bmaptool.1 +++ b/docs/man1/bmaptool.1 @@ -222,8 +222,10 @@ from "imag.bmap.asc". .PP Generate bmap for a regular file IMAGE. Internally, this subcommand uses the -Linux "FIEMAP" ioctl to find out which IMAGE blocks are mapped. By default, the -resulting bmap file is printed to stdout, unless the "--output" option is used. +Linux "FIEMAP" ioctl to find out which IMAGE blocks are mapped. However, if +"FIEMAP" is not supported, the "SEEK_HOLE" feature of the "lseek" system call +is used instead. By default, the resulting bmap file is printed to stdout, +unless the "--output" option is used. .PP The IMAGE file is always synchronized before the block map is generated. And it -- 2.34.1