public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin/main] Cygwin: check remote drives for being SSDs as well
@ 2024-01-08 12:12 Corinna Vinschen
  0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2024-01-08 12:12 UTC (permalink / raw)
  To: cygwin-cvs

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. */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-01-08 12:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-08 12:12 [newlib-cygwin/main] Cygwin: check remote drives for being SSDs as well Corinna Vinschen

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 read-only IMAP folder(s) and NNTP newsgroup(s).