aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/local_includes/mount.h
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2023-11-30 22:13:49 +0100
committerCorinna Vinschen <corinna@vinschen.de>2023-11-30 22:37:35 +0100
commit8b01c5d6903fbcbb14c52db45c12494b53493c5a (patch)
tree6b3a4cd5a541e77231f5b241f408f410c103a3c7 /winsup/cygwin/local_includes/mount.h
parent61f49ada90b2541925d56183e91e7d57aad1547a (diff)
downloadnewlib-8b01c5d6903fbcbb14c52db45c12494b53493c5a.zip
newlib-8b01c5d6903fbcbb14c52db45c12494b53493c5a.tar.gz
newlib-8b01c5d6903fbcbb14c52db45c12494b53493c5a.tar.bz2
Cygwin: fs_info: check for SSD
During fs_info::update, check for the file being on an SSD. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin/local_includes/mount.h')
-rw-r--r--winsup/cygwin/local_includes/mount.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/winsup/cygwin/local_includes/mount.h b/winsup/cygwin/local_includes/mount.h
index 5bb84b9..57c89e0 100644
--- a/winsup/cygwin/local_includes/mount.h
+++ b/winsup/cygwin/local_includes/mount.h
@@ -69,6 +69,7 @@ class fs_info
ULONG name_len; /* MaximumComponentNameLength */
fs_info_type fs_type; /* Filesystem type */
unsigned is_remote_drive : 1;
+ unsigned is_ssd : 1;
unsigned has_acls : 1;
unsigned hasgood_inode : 1;
unsigned caseinsensitive : 1;
@@ -80,6 +81,8 @@ class fs_info
ULONG sernum; /* Volume Serial Number */
char fsn[80]; /* Windows filesystem name */
+ void check_ssd (HANDLE);
+
public:
void clear ()
{
@@ -93,6 +96,7 @@ class fs_info
IMPLEMENT_STATUS_FLAG (ULONG, samba_version)
IMPLEMENT_STATUS_FLAG (ULONG, name_len)
IMPLEMENT_STATUS_FLAG (bool, is_remote_drive)
+ IMPLEMENT_STATUS_FLAG (bool, is_ssd)
IMPLEMENT_STATUS_FLAG (bool, has_acls)
IMPLEMENT_STATUS_FLAG (bool, hasgood_inode)
IMPLEMENT_STATUS_FLAG (bool, caseinsensitive)