From: Jamie Lokier <jamie@shareable.org>
To: Filip Navara <filip.navara@gmail.com>
Cc: Kevin Wolf <kwolf@redhat.com>, Avi Kivity <avi@redhat.com>,
qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] qcow2: Metadata preallocation
Date: Sun, 16 Aug 2009 17:48:42 +0100 [thread overview]
Message-ID: <20090816164841.GA27122@shareable.org> (raw)
In-Reply-To: <5b31733c0908160512r25abf0d2ld45a3602a8c540fa@mail.gmail.com>
Filip Navara wrote:
> FILE_ATTRIBUTE_SPARSE_FILE? You can't actually set it when
> opening/creating the file, a separate call to
> DeviceIoControl/FSCTL_SET_SPARSE is needed.
I see that you increase the file size by writing zeros to the end.
Can't you use the Windows equivalent of unix ftruncate() to extend the
file instead, after FSCTL_SET_SPARSE?
-- Jamie
next prev parent reply other threads:[~2009-08-16 16:48 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-14 15:00 [Qemu-devel] [PATCH] qcow2: Metadata preallocation Kevin Wolf
2009-08-16 11:58 ` Avi Kivity
2009-08-16 12:12 ` Filip Navara
2009-08-16 16:48 ` Jamie Lokier [this message]
2009-08-16 20:28 ` Jamie Lokier
2009-08-17 7:16 ` Kevin Wolf
2009-08-17 7:11 ` Kevin Wolf
2009-08-17 7:45 ` Avi Kivity
2009-08-17 7:58 ` Kevin Wolf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090816164841.GA27122@shareable.org \
--to=jamie@shareable.org \
--cc=avi@redhat.com \
--cc=filip.navara@gmail.com \
--cc=kwolf@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.