What does it mean "Structure needs cleaning" ?
I've never seen such error code before - and man cp
is not that helpful.
It has happened to me on ext4
.
I was trying to copy directory using:
cp -arv dirname dirname.bak
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityWhat does it mean "Structure needs cleaning" ?
I've never seen such error code before - and man cp
is not that helpful.
It has happened to me on ext4
.
I was trying to copy directory using:
cp -arv dirname dirname.bak
Some googling told me that there was a patch to ext4 last year that mentions returning EUCLEAN upon an out of space error. E.g. https://patchwork.ozlabs.org/patch/452275/
The fix is either to run e2fsck -E bmap2extent, or to chattr +e the file.
Finally it turned out that problem was one level below.
To be more specific, I had an partition.img
image file, on external usb ntfs harddrive. The problem happened to ntfs partition, which started to report 0 free bytes, despite it should have 800GiB... therefore, writes stopped to be possible on underlying drive, so loop-mounted ext4 drive couldn't operate and started to report errors as described above.
Let me mart Ralph's answer as solution, as this gave me a hint in driving further investigation.
man cp
- thanks! – Grzegorz Wierzowiecki Apr 11 '16 at 22:17