[newlib-cygwin/main] Cygwin: check remote drives for being SSDs as well
Corinna Vinschen
corinna@sourceware.org
Mon Jan 8 12:12:22 GMT 2024
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=94d871eeac43657090138653ececd49dc97ee631
commit 94d871eeac43657090138653ececd49dc97ee631
Author: Corinna Vinschen <corinna@vinschen.de>
AuthorDate: Thu Dec 7 20:35:44 2023 +0100
Commit: Corinna Vinschen <corinna@vinschen.de>
CommitDate: Mon Jan 8 11:45:13 2024 +0100
Cygwin: check remote drives for being SSDs as well
This enables automatic sparse file support for remote SSDs.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diff:
---
winsup/cygwin/mount.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/winsup/cygwin/mount.cc b/winsup/cygwin/mount.cc
index 9545d22e0768..bf26c4af3ed9 100644
--- a/winsup/cygwin/mount.cc
+++ b/winsup/cygwin/mount.cc
@@ -524,7 +524,7 @@ fs_info::update (PUNICODE_STRING upath, HANDLE in_vol)
&& !is_nfs ());
/* Check for being an SSD */
- if (!is_remote_drive () && !is_cdrom ())
+ if (!is_cdrom ())
{
/* Theoretically FileFsVolumeFlagsInformation would be sufficient,
but apparently it's not exposed into userspace. */
More information about the Cygwin-cvs
mailing list