LLFIO  v2.00
llfio_v2_xxx::path_discovery::discovered_path Struct Reference

A discovered path. More...

#include "path_discovery.hpp"

Public Types

enum class  source_type {
  unknown , local , environment , system ,
  hardcoded
}
 Source of the discovered path. More...
 

Public Attributes

path_view path
 
enum llfio_v2_xxx::path_discovery::discovered_path::source_type unknown
 
optional< stat_tstat
 

Detailed Description

A discovered path.

Member Enumeration Documentation

◆ source_type

Source of the discovered path.

Enumerator
unknown 

This path comes from an unknown source.

local 

This path was added locally.

environment 

This path came from an environment variable (an override?).

system 

This path came from querying the system.

hardcoded 

This path came from an internal hardcoded list of paths likely for this system.

52  {
53  unknown, //!< This path comes from an unknown source.
54  local, //!< This path was added locally.
55  environment, //!< This path came from an environment variable (an override?).
56  system, //!< This path came from querying the system.
57  hardcoded //!< This path came from an internal hardcoded list of paths likely for this system.
58  } source{source_type::unknown};
@ unknown
This path comes from an unknown source.

Member Data Documentation

◆ path

path_view llfio_v2_xxx::path_discovery::discovered_path::path

The path discovered.

◆ stat

optional<stat_t> llfio_v2_xxx::path_discovery::discovered_path::stat

If this path was successfully probed for criteria verification, this was its stat after any symlink derefencing at that time. Secure applications ought to verify that any handles opened to the path have the same st_ino and st_dev as this structure before use.


The documentation for this struct was generated from the following file: