Package Details: bmap-tools 3.6-3

Git Clone URL: https://aur.archlinux.org/bmap-tools.git (read-only, click to copy)
Package Base: bmap-tools
Description: Tool optimized for copying largely sparse files using information from a block map (bmap) file
Upstream URL: https://github.com/intel/bmap-tools
Keywords: bmap python
Licenses: GPL2
Submitter: pnorcks
Maintainer: 2bluesc
Last Packager: 2bluesc
Votes: 11
Popularity: 0.000004
First Submitted: 2013-04-04 01:47 (UTC)
Last Updated: 2022-07-27 19:55 (UTC)

Latest Comments

cw1911 commented on 2022-07-27 12:04 (UTC)

During my use of the tool, I have also found that this package requires python-six as a dependency:

[build@9a7d4d5e6a82 /]$ bmaptool --help
Traceback (most recent call last):
  File "/usr/sbin/bmaptool", line 33, in <module>
    sys.exit(load_entry_point('bmap-tools==3.6', 'console_scripts', 'bmaptool')())
  File "/usr/sbin/bmaptool", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/lib/python3.10/site-packages/bmaptools/CLI.py", line 42, in <module>
    from bmaptools import BmapCreate, BmapCopy, BmapHelpers, TransRead
  File "/usr/lib/python3.10/site-packages/bmaptools/BmapCopy.py", line 65, in <module>
    from six import reraise
ModuleNotFoundError: No module named 'six'

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/