markfasheh / duperemove

Tools for deduping file systems
GNU General Public License v2.0
816 stars 81 forks source link

dedupe phase gives fiemap error #143

Closed leggewie closed 8 years ago

leggewie commented 8 years ago

I was able to dedupe files successfully in the past. But today whenever I run duperemove it ends with an error.

$ sudo duperemove -hrd --hashfile /tmp/duperemove.hashes /var/lib/lxc/
[...]
/var/lib/lxc//trusty-i386.1/rootfs/usr/share/vim/vim74/lang/nb/LC_MESSAGES/vim.mo: fiemap error 25: Inappropriate ioctl for device
/var/lib/lxc//trusty-i386.1/rootfs/usr/share/vim/vim74/lang/no/LC_MESSAGES/vim.mo: fiemap error 25: Inappropriate ioctl for device
/var/lib/lxc//trusty-i386.1/rootfs/usr/share/X11/xkb/rules/base.xml: fiemap error 25: Inappropriate ioctl for device
/var/lib/lxc//trusty-i386.1/rootfs/usr/share/X11/xkb/rules/evdev.xml: fiemap error 25: Inappropriate ioctl for device
/var/lib/lxc//trusty-i386.1/rootfs/usr/share/vim/vim74/spell/en.latin1.sug: fiemap error 25: Inappropriate ioctl for device
/var/lib/lxc//trusty-i386.1/rootfs/usr/share/vim/vim74/spell/en.utf-8.sug: fiemap error 25: Inappropriate ioctl for device
/var/lib/lxc//trusty-i386.1/rootfs/var/cache/debconf/templates.dat: fiemap error 25: Inappropriate ioctl for device
/var/lib/lxc//trusty-i386.1/rootfs/var/cache/debconf/templates.dat-old: fiemap error 25: Inappropriate ioctl for device

This is on Ubuntu trusty, kernel 3.13.0-95-generic

leggewie commented 8 years ago

Turns out this is actually an incompatibility with the i386 binary when running an amd64 kernel (32 vs 64 bit). I think this was a false report and can be safely closed. FWIW, lsattr (32 bit) had the same problem.