public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org>
To: cygwin-cvs@sourceware.org
Subject: [newlib-cygwin/main] Cygwin: check remote drives for being SSDs as well
Date: Mon,  8 Jan 2024 12:12:22 +0000 (GMT)	[thread overview]
Message-ID: <20240108121222.DD3993858420@sourceware.org> (raw)

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

                 reply	other threads:[~2024-01-08 12:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240108121222.DD3993858420@sourceware.org \
    --to=corinna@sourceware.org \
    --cc=cygwin-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).