bmaptool
create block map (bmap) for a file or copy a file using bmap
- Provided by: bmap-tools (Version: 2.5-1)
- Report a bug
create block map (bmap) for a file or copy a file using bmap
bmaptool [--help] [--version] [--quiet] <subcommand> [<args>]
Bmaptool is a generic tool for creating the block map (bmap) for a file and copying files using the block map. The idea is that large files, like raw system image files, can be copied or flashed a lot faster with bmaptool than with traditional tools, like "dd" or "cp".
Bmaptool supports 2 subcommands:
Please, find full documentation for the project at https://source.tizen.org/documentation/reference/bmaptool
--version
-h, --help
-q, --quiet
Unless the bmap file is explicitly specified with the "--bmap" option, bmaptool automatically discovers it by looking for a file with the same basename as IMAGE but with the ".bmap" extension. The bmap file is only looked for in IMAGE's directory (or base URL, in case IMAGE was specified as an URL). If the bmap file is not found, bmaptool fails. To copy without bmap, use the "--nobmap" option.
Both IMAGE and the bmap file may be specified as an URL (http://, ftp://, https://, file://, ssh://). In order to make bmaptool use a proxy server, please, specify the proxy using the standard "$http_proxy", "$https_proxy", "$ftp_proxy" or "$no_proxy" environment variables.
If the server requires authentication, user name and password may be specified in the URL, for example "https://user:password@my.server.org/image.raw.bz2", or "ssh://user:password@host:path/to/image.raw".
IMAGE may be compressed, in which case bmaptool decompresses it on-the-fly. The compression type is detected by the file extension and the following compression types are supported: ".bz2", ".gz", ".tar.gz" or ".tgz", and ".tar.bz2". If IMAGE has none of these extensions, it is assumed to be uncompressed.
If DEST is a block device node (e.g., "/dev/sdg"), bmaptool opens it in exclusive mode. This means that it will fail if any other process has IMAGE block device node opened. This also means that no other processes will be able to open IMAGE until bmaptool finishes the copying. Please, see semantics of the "O_EXCL" flag of the "open()" syscall.
--bmap BMAP
--nobmap
--no-verify
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.
-o, --output OUTPUT
--no-checksum
Artem Bityutskiy <artem.bityutskiy@linux.intel.com>.
Please, report bugs to Artem Bityutskiy <artem.bityutskiy@linux.intel.com>.