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

github.com/elfmz/far2l.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'far2l/src/mix/MountInfo.h')
-rw-r--r--far2l/src/mix/MountInfo.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/far2l/src/mix/MountInfo.h b/far2l/src/mix/MountInfo.h
index 4c630697..65781245 100644
--- a/far2l/src/mix/MountInfo.h
+++ b/far2l/src/mix/MountInfo.h
@@ -1,6 +1,9 @@
#pragma once
#include <string>
#include <vector>
+#include <memory>
+
+struct Mountpoints;
/* This class detects if path points to device that is best to be
* accessed in multi-thread parallel manner, like SSD drives.
@@ -8,16 +11,11 @@
*/
class MountInfo
{
- struct Mountpoint {
- std::string path;
- std::string filesystem;
- bool multi_thread_friendly;
- };
- struct Mountpoints : std::vector<Mountpoint> {} _mountpoints;
+ std::shared_ptr<Mountpoints> _mountpoints;
char _mtfs = 0;
public:
- MountInfo();
+ MountInfo(bool query_space);
std::string GetFileSystem(const std::string &path) const;