[Box Backup-dev] COMMIT r896 - box/chris/merge/lib/raidfile
Chris Wilson
boxbackup-dev@fluffy.co.uk
Sun, 15 Oct 2006 23:09:09 +0100 (BST)
Hi all,
On Sun, 15 Oct 2006, Chris Wilson wrote:
> On Sat, 14 Oct 2006, Charles Lecklider wrote:
>> We shouldn't need explicit locking under Win32 if we pass a 0
>> dwShareMode parameter to CreateFile().
>
> Good point, thanks for the simple solution Charles!
Unfortunately, this doesn't negate the need to convert RaidFileRead/Write
to using native file handles, since as far as I know, Windows' POSIX
open() function doesn't let us set the share mode.
[http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt__open.2c_._wopen.asp]
Cheers, Chris.
--
_ ___ __ _
/ __/ / ,__(_)_ | Chris Wilson <0000 at qwirx.com> - Cambs UK |
/ (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Perl/SQL/HTML Developer |
\ _/_/_/_//_/___/ | We are GNU-free your mind-and your software |