diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2011-01-11 17:50:45 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2011-01-11 17:50:45 +0300 |
commit | 95a5c969ab3016e3ea79ef2c3ea705cb12dc69e5 (patch) | |
tree | f890a7b4d90f6d03cfea7d6cc37009489056199b /winsup/cygwin/wincap.h | |
parent | 5837aa428fd812d89e54ebccdbe96bafd271b453 (diff) |
* 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.
Diffstat (limited to 'winsup/cygwin/wincap.h')
-rw-r--r-- | winsup/cygwin/wincap.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/winsup/cygwin/wincap.h b/winsup/cygwin/wincap.h index decfc1e50..8a704b800 100644 --- a/winsup/cygwin/wincap.h +++ b/winsup/cygwin/wincap.h @@ -1,7 +1,7 @@ /* wincap.h: Header for OS capability class. Copyright 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, - 2009, 2010 Red Hat, Inc. + 2009, 2010, 2011 Red Hat, Inc. This file is part of Cygwin. @@ -51,6 +51,7 @@ struct wincaps unsigned has_mwmo_inputavailable : 1; unsigned has_buggy_thread_startup : 1; unsigned has_fast_cwd : 1; + unsigned has_restricted_raw_disk_access : 1; }; class wincapc @@ -107,6 +108,7 @@ public: bool IMPLEMENT (has_mwmo_inputavailable) bool IMPLEMENT (has_buggy_thread_startup) bool IMPLEMENT (has_fast_cwd) + bool IMPLEMENT (has_restricted_raw_disk_access) #undef IMPLEMENT }; |