From: Jamie Lokier <jamie@shareable.org>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] QCOW/QCOW2 for win32
Date: Mon, 11 Sep 2006 22:53:35 +0100 [thread overview]
Message-ID: <20060911215335.GA8409@mail.shareable.org> (raw)
In-Reply-To: <000a01c6d563$b8fffaa0$0464a8c0@athlon>
Kazu wrote:
> > Kazu wrote:
> >> Patch.
> >> http://www.h7.dion.ne.jp/~qemu-win/download/qemu-20060906-qcow.patch
> >
> >>> #ifdef QEMU_TOOL
> >>> - overlapped = 0;
> >>> + overlapped = FILE_ATTRIBUTE_NORMAL;
> >>> #else
> >>> overlapped = FILE_FLAG_OVERLAPPED;
> >>> #endif
> >
> > I suspect the second value should be (FILE_ATTRIBUTE_NORMAL |
> > FILE_FLAG_OVERLAPPED). But I'm no Win32 expert.
>
> I think FILE_ATTRIBUTE_NORMAL is only used without other options.
I think that is true only for "attribute" options, i.e. those
beginning with FILE_ATTRIBUTE_* and not those beginning with
FILE_FLAG_*.
The Microsoft CreateFile documentation is not very clear:
"FILE_ATTRIBUTE_NORMAL: A file does not have other attributes
set. This attribute is valid only if used alone.". But it does
distinguish between attributes and flags.
It also explains that the attributes are only used when creating a
file, not when opening an existing one. Whereas the flags affect the
operation of open file handles, even if the file already exists.
But as I say, I'm no win32 expert.
-- Jamie
prev parent reply other threads:[~2006-09-11 21:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-07 6:13 [Qemu-devel] QCOW/QCOW2 for win32 Kazu
2006-09-11 0:28 ` Jamie Lokier
2006-09-11 5:32 ` Kazu
2006-09-11 21:53 ` Jamie Lokier [this message]
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=20060911215335.GA8409@mail.shareable.org \
--to=jamie@shareable.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).