|
Disk ARchive
2.4.13
|
receive the flow of inode from the restoration filtering routing and promotes these to real filesystem objects More...
#include <filesystem.hpp>
Inherits libdar::filesystem_hard_link_write, and libdar::filesystem_hard_link_read.
Public Types | |
| enum | action_done_for_data { done_data_restored, done_no_change_no_data, done_no_change_policy, done_data_removed } |
Public Member Functions | |
| filesystem_restore (user_interaction &dialog, const path &root, bool x_warn_overwrite, bool x_info_details, const mask &x_ea_mask, inode::comparison_fields what_to_check, bool x_warn_remove_no_match, bool empty, const crit_action *x_overwrite, bool x_only_overwrite) | |
| constructor | |
| filesystem_restore (const filesystem_restore &ref) | |
| copy constructor is forbidden (throws an exception) | |
| const filesystem_restore & | operator= (const filesystem_restore &ref) |
| assignment operator is forbidden (throws an exception) | |
| ~filesystem_restore () | |
| destructor | |
| void | reset_write () |
| reset the writing process for the current object | |
| void | write (const entree *x, action_done_for_data &data_restored, bool &ea_restored, bool &data_created, bool &hard_link) |
| restore a libdar object to a filesystem entry both data and EA More... | |
| void | ignore_overwrite_restrictions_for_next_write () |
Public Member Functions inherited from libdar::filesystem_hard_link_write | |
| filesystem_hard_link_write (user_interaction &dialog) | |
| filesystem_hard_link_write (const filesystem_hard_link_write &ref) | |
| const filesystem_hard_link_write & | operator= (const filesystem_hard_link_write &ref) |
| void | write_hard_linked_target_if_not_set (const mirage *ref, const std::string &chemin) |
| bool | known_etiquette (const infinint &eti) |
| void | clear_corres_if_pointing_to (const infinint &ligne, const std::string &path) |
Public Member Functions inherited from libdar::filesystem_hard_link_read | |
| filesystem_hard_link_read (user_interaction &dialog, bool x_furtive_read_mode) | |
| filesystem_hard_link_read (const filesystem_hard_link_read &ref) | |
| const filesystem_hard_link_read & | operator= (const filesystem_hard_link_read &ref) |
| const infinint & | get_last_etoile_ref () const |
Additional Inherited Members | |
Protected Member Functions inherited from libdar::filesystem_hard_link_write | |
| void | corres_reset () |
| void | make_file (const nomme *ref, const path &ou, bool dir_perm, inode::comparison_fields what_to_check) |
| bool | raw_set_ea (const nomme *e, const ea_attributs &list_ea, const std::string &spot, const mask &ea_mask) |
| add the given EA matching the given mask to the file pointed to by "e" and spot More... | |
| bool | raw_clear_ea_set (const nomme *e, const std::string &path) |
| remove EA set from filesystem's file, allows subsequent raw_set_ea More... | |
Protected Member Functions inherited from libdar::mem_ui | |
| mem_ui (user_interaction &dialog) | |
| constructor More... | |
| mem_ui (const mem_ui &ref) | |
| the copy constructor More... | |
| virtual | ~mem_ui () |
| destructor More... | |
| const mem_ui & | operator= (const mem_ui &ref) |
| assignement operator More... | |
| user_interaction & | get_ui () const |
| get access to the user_interaction cloned object More... | |
Protected Member Functions inherited from libdar::filesystem_hard_link_read | |
| void | corres_reset () |
| nomme * | make_read_entree (path &lieu, const std::string &name, bool see_hard_link, const mask &ea_mask) |
receive the flow of inode from the restoration filtering routing and promotes these to real filesystem objects
Definition at line 281 of file filesystem.hpp.
|
inline |
ask for no warning or user interaction for the next write operation
Definition at line 329 of file filesystem.hpp.
| void libdar::filesystem_restore::write | ( | const entree * | x, |
| action_done_for_data & | data_restored, | ||
| bool & | ea_restored, | ||
| bool & | data_created, | ||
| bool & | hard_link | ||
| ) |
restore a libdar object to a filesystem entry both data and EA
| [in] | x | is the libdar object to restore |
| [out] | data_restored | true if data has been restored (inode or hard link created), false if either there is no data to restore or if this action is forbidden by the overwriting policy |
| [out] | ea_restored | true if EA has been restored, false if either no EA to restore or if forbidden by overwriting policy |
| [out] | data_created | true if data has been restored leading to file creation, false in any other case |
| [out] | hard_link | true when data_restored is true and only a hard link to an already existing inode has been created |
1.8.6