[sheepdog] Call to sd_truncate()
Hadrien KOHL
hadrien.kohl at gmail.com
Fri Dec 13 16:43:18 CET 2013
Ok I will try this right away.
It's a typo. I meant hundreds.
I did a couple of different tests. But in the end, I noticed that the error
happens event with a simple
dd if=/dev/zero of=/dev/vda
2013/12/13 Liu Yuan <namei.unix at gmail.com>
> On Fri, Dec 13, 2013 at 04:33:18PM +0100, Hadrien KOHL wrote:
> > I sure can, but how can I print those information?
> >
> > I didn't mention that earlier, but the problem does not arise before a
> > couple of hundreds of MB (even though it's a bit random).
>
> you can try following patch and tell the output. what did you mean by
> 'hunreads
> of MB', I notice you just mkfs.ext4 and said then it would cause problem.
>
> Thanks
> Yuan
>
> diff --git a/block/sheepdog.c b/block/sheepdog.c
> index b4ae50f..2036fbf 100644
> --- a/block/sheepdog.c
> +++ b/block/sheepdog.c
> @@ -1774,6 +1774,7 @@ static int sd_truncate(BlockDriverState *bs, int64_t
> offset)
> unsigned int datalen;
>
> if (offset < s->inode.vdi_size) {
> + printf("%ld, %ld\n", offset, s->inode.vdi_size);
> error_report("shrinking is not supported");
> return -EINVAL;
> } else if (offset > SD_MAX_VDI_SIZE) {
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/sheepdog/attachments/20131213/88b669b4/attachment-0004.html>
More information about the sheepdog
mailing list