Package Details: bmaptool 3.8.0-1

Git Clone URL: https://aur.archlinux.org/bmaptool.git (read-only, click to copy)
Package Base: bmaptool
Description: Tool optimized for copying largely sparse files using information from a block map (bmap) file
Upstream URL: https://github.com/yoctoproject/bmaptool
Licenses: GPL2
Replaces: bmap-tools
Submitter: 2bluesc
Maintainer: 2bluesc
Last Packager: 2bluesc
Votes: 14
Popularity: 0.99
First Submitted: 2024-06-22 23:09 (UTC)
Last Updated: 2024-06-22 23:09 (UTC)

Latest Comments

« First ‹ Previous 1 2

Distag commented on 2022-03-23 10:30 (UTC) (edited on 2022-03-29 08:50 (UTC) by Distag)

@2bluesc I launched it on my ext4 filesystem.

EDIT: The complete error log:

bmaptool: ERROR: An error occurred, here is the traceback:
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/bmaptools/Filemap.py", line 388, in _invoke_fiemap
    fcntl.ioctl(self._f_image, _FIEMAP_IOCTL, self._buf, 1)
OSError: [Errno 95] Operation not supported

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/bmaptools/Filemap.py", line 533, in filemap
    return FilemapFiemap(image)
  File "/usr/lib/python3.10/site-packages/bmaptools/Filemap.py", line 362, in __init__
    self.block_is_mapped(0)
  File "/usr/lib/python3.10/site-packages/bmaptools/Filemap.py", line 409, in block_is_mapped
    struct_fiemap = self._invoke_fiemap(block, 1)
  File "/usr/lib/python3.10/site-packages/bmaptools/Filemap.py", line 396, in _invoke_fiemap
    raise ErrorNotSupp(errstr)
bmaptools.Filemap.ErrorNotSupp: FilemapFiemap: the FIEMAP ioctl is not supported by the file-system

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/bmaptools/BmapCreate.py", line 176, in __init__
    self.filemap = Filemap.filemap(self._f_image)
  File "/usr/lib/python3.10/site-packages/bmaptools/Filemap.py", line 535, in filemap
    return FilemapSeek(image)
  File "/usr/lib/python3.10/site-packages/bmaptools/Filemap.py", line 208, in __init__
    self._probe_seek_hole()
  File "/usr/lib/python3.10/site-packages/bmaptools/Filemap.py", line 243, in _probe_seek_hole
    raise ErrorNotSupp("the file-system does not support "
bmaptools.Filemap.ErrorNotSupp: the file-system does not support "SEEK_HOLE" and "SEEK_DATA" but only provides a stub implementation

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/bmaptools/CLI.py", line 555, in create_command
    creator = BmapCreate.BmapCreate(args.image, output, "sha256")
  File "/usr/lib/python3.10/site-packages/bmaptools/BmapCreate.py", line 178, in __init__
    raise Error("cannot generate bmap for file '%s': %s"

bmaptool: ERROR: cannot generate bmap for file 'disk.ext4': the file-system does not support "SEEK_HOLE" and "SEEK_DATA" but only provides a stub implementation

2bluesc commented on 2022-03-22 17:12 (UTC)

@Distag this is more of an issue with your filesystem.

I used bmap-tools on btrfs almost daily without issue. What file system are using? Perhaps something like vfat?

Distag commented on 2022-03-22 16:50 (UTC)

Hello, It seems does not work correctly with the current archlinux.

truncate --size=1G disk.ext4 #create a 1G sparse file
mkfs.ext4 disk.ext4
bmaptool create disk.ext4 > test.bmap

It gives this error:

bmaptool: ERROR: cannot generate bmap for file 'disk.ext4': the file-system does not support "SEEK_HOLE" and "SEEK_DATA" but only provides a stub implementation

arblt commented on 2019-10-24 05:36 (UTC) (edited on 2019-10-24 05:37 (UTC) by arblt)

Actually python-setuptools should be part of depends, not makedepends, as it's required at runtime.

Easy to verify:

$ sudo pacman -R python-setuptools
$ bmaptool create some-image.img > tmp.bmap
Traceback (most recent call last):
  File "/usr/bin/bmaptool", line 6, in <module>
    from pkg_resources import load_entry_point
ModuleNotFoundError: No module named 'pkg_resources'

This is mentioned at https://wiki.archlinux.org/index.php/Python_package_guidelines#setuptools

simona commented on 2019-08-21 15:43 (UTC)

errore: bmap-tools: signature from "Levon 'noptrix' Kayan (BlackArch Developer) noptrix@nullsecurity.net" is invalid

zman0900 commented on 2016-11-27 09:30 (UTC)

Project moved to github: http://git.infradead.org/users/dedekind/bmap-tools.git/blob/fb981e139d399b08ed2ab56c0023818ebd5e22dd:/README.txt

tredaelli commented on 2015-10-08 17:06 (UTC)

Why don't you use the official tar (ftp) instead? ftp://ftp.infradead.org/pub/bmap-tools/