]> sourceware.org Git - newlib-cygwin.git/commit
* fhandler.h (MAX_PARTITIONS): New definition.
authorCorinna Vinschen <corinna@vinschen.de>
Tue, 11 Jan 2011 14:50:45 +0000 (14:50 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Tue, 11 Jan 2011 14:50:45 +0000 (14:50 +0000)
commit95a5c969ab3016e3ea79ef2c3ea705cb12dc69e5
treef890a7b4d90f6d03cfea7d6cc37009489056199b
parent5837aa428fd812d89e54ebccdbe96bafd271b453
* fhandler.h (MAX_PARTITIONS): New definition.
(class fhandler_dev_floppy): Add partitions array member.  Add close
method.
* fhandler_floppy.cc (fhandler_dev_floppy::fhandler_dev_floppy): Zero
out partitions array.
(fhandler_dev_floppy::open): Fix "entire disk" condition for call to
DeviceIoControl (FSCTL_ALLOW_EXTENDED_DASD_IO).
When opening disks for writing, call DeviceIoControl (FSCTL_LOCK_VOLUME)
on all affected disk partitions starting with Vista.
(fhandler_dev_floppy::close): New method.
(fhandler_dev_floppy::dup): Duplicate handles in partitions, if any.
* wincap.h (wincaps::has_restricted_raw_disk_access): New element.
* wincap.cc: Implement above element throughout.
winsup/cygwin/ChangeLog
winsup/cygwin/fhandler.h
winsup/cygwin/fhandler_floppy.cc
winsup/cygwin/wincap.cc
winsup/cygwin/wincap.h
This page took 0.028122 seconds and 5 git commands to generate.