simgrid::fsmod::Partition
-
class Partition
Public Types
-
enum class CachingScheme
An enum that defines the possible caching schemes that can be used by a partition.
Values:
-
enumerator NONE
No caching. When there is not sufficient space an exception is thrown.
-
enumerator FIFO
FIFO caching behavior. When there is not sufficient space, an attempt is made to evict non-opened, evictable files in First-In-First-Out fashion (based on file creation dates) to create space if possible, otherwise an exception is thrown.
-
enumerator LRU
LRU caching behavior. When there is not sufficient space, an attempt is made to evict non-opened, evictable files in Least-Recently-Used fashion (based on latest file creation/read/write timestamp) to create space if possible, otherwise an exception is thrown.
-
enumerator NONE
Public Functions
-
const char *get_cname() const
Retrieve the partition’s name as a C-style string.
- Returns:
a name
-
sg_size_t get_free_space() const
Retrieve the partition’s free space in bytes.
- Returns:
a number of bytes
-
const std::string &get_name() const
Retrieve the partition’s name.
- Returns:
a name
-
sg_size_t get_num_files() const
Retrieve the number of files stored in the partition.
- Returns:
a number of files
-
sg_size_t get_size() const
Retrieve the partition’s size in bytes.
- Returns:
a number of bytes
-
enum class CachingScheme