Skip to contentSkip to conversation

Overlay issue when truncating files over 2G

DISCUSSION Alkis Georgopoulos 1 participant 1 message Sep 11, 2015

lore
Share & tools
lore
#0 lore raw

Hi, I think I've found an issue with overlay. Steps to reproduce:

# cd $(mktemp -d)
# mkdir lower upper work root
# truncate -s 3G lower/sparse
# mount -t overlay -o workdir=work,upperdir=upper,lowerdir=lower overlay work
# truncate -s 0 work/sparse
truncate: cannot open ‘work/sparse’ for writing: Value too large for defined data type
# umount work

My kernel is: 3.19.0-26-generic #28~14.04.1-Ubuntu SMP

Thanks,
Alkis Georgopoulos