Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin')
-rw-r--r--winsup/cygwin/local_includes/path.h4
-rw-r--r--winsup/cygwin/release/3.5.03
2 files changed, 5 insertions, 2 deletions
diff --git a/winsup/cygwin/local_includes/path.h b/winsup/cygwin/local_includes/path.h
index c7f113f87..d19721e0c 100644
--- a/winsup/cygwin/local_includes/path.h
+++ b/winsup/cygwin/local_includes/path.h
@@ -174,8 +174,8 @@ class path_conv
bool isgood_inode (ino_t ino) const;
bool support_sparse () const
{
- return (mount_flags & MOUNT_SPARSE)
- && (fs_flags () & FILE_SUPPORTS_SPARSE_FILES);
+ return (fs_flags () & FILE_SUPPORTS_SPARSE_FILES)
+ && (fs.is_ssd () || (mount_flags & MOUNT_SPARSE));
}
int has_dos_filenames_only () const {return mount_flags & MOUNT_DOS;}
int has_buggy_reopen () const {return fs.has_buggy_reopen ();}
diff --git a/winsup/cygwin/release/3.5.0 b/winsup/cygwin/release/3.5.0
index 3b6df951d..d0a6c2fc8 100644
--- a/winsup/cygwin/release/3.5.0
+++ b/winsup/cygwin/release/3.5.0
@@ -55,3 +55,6 @@ What changed:
https://www.austingroupbugs.net/view.php?id=1674
- FIFOs now also work over NFS.
+
+- Enable automatic sparsifying of files on SSDs, independent of the
+ "sparse" mount mode.