Re: [Qemu-devel] [PATCH] vmdk: return ENOTSUP before offset overflow

2018-03-22 Thread Eric Blake
On 03/21/2018 09:40 PM, yuchenlin--- via Qemu-devel wrote: From: yuchenlin VMDK has a hard limitation of extent size, which is due to the size of grain table entry is 32 bits. It means it can only point to a grain located at offset = 2^32. To prevent offset overflow and

[Qemu-devel] [PATCH] vmdk: return ENOTSUP before offset overflow

2018-03-21 Thread yuchenlin--- via Qemu-devel
From: yuchenlin VMDK has a hard limitation of extent size, which is due to the size of grain table entry is 32 bits. It means it can only point to a grain located at offset = 2^32. To prevent offset overflow and record a useless offset in grain table. We should return

Re: [Qemu-devel] [PATCH] vmdk: return ENOTSUP before offset overflow

2018-03-21 Thread Fam Zheng
On Thu, 03/22 10:40, yuchen...@synology.com wrote: > From: yuchenlin > > VMDK has a hard limitation of extent size, which is due to the size of grain > table entry is 32 bits. It means it can only point to a grain located at > offset = 2^32. To prevent offset overflow and