![]() |
Disk ARchive
2.5.18
Full featured and portable backup and archiving tool
|
keep trace of already written inodes to restore hard links More...
#include <filesystem.hpp>
Inherits libdar::mem_ui, and libdar::on_pool.
Inherited by libdar::filesystem_restore.
Public Member Functions | |
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 cat_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) |
![]() | |
void * | operator new (size_t n_byte) |
void * | operator new (size_t n_byte, const std::nothrow_t ¬hrow_value) |
void * | operator new[] (size_t n_byte) |
void * | operator new[] (size_t n_byte, const std::nothrow_t ¬hrow_value) |
void * | operator new (size_t n_byte, memory_pool *p) |
void * | operator new[] (size_t n_byte, memory_pool *p) |
void | operator delete (void *ptr, memory_pool *p) |
this operator is called by the compiler if an exception is throw from the constructor of the allocated object | |
void | operator delete[] (void *ptr, memory_pool *p) |
this operator is called by the compiler if an exception is throw from the constructor of the allocated objects | |
void | operator delete (void *ptr) |
this is the usual delete operator, modified to handle allocated objects allocated on a memory pool or not | |
void | operator delete[] (void *ptr) |
this is the usual delete[] operator, modified to handle allocated objects allocated on a memory pool or not | |
Protected Member Functions | |
void | corres_reset () |
void | make_file (const cat_nomme *ref, const path &ou, bool dir_perm, cat_inode::comparison_fields what_to_check, const fsa_scope &scope) |
bool | raw_set_ea (const cat_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 cat_nomme *e, const std::string &path) |
remove EA set from filesystem's file, allows subsequent raw_set_ea More... | |
![]() | |
user_interaction & | get_ui () const |
get access to the user_interaction cloned object More... | |
mem_ui (const user_interaction &dialog) | |
constructor More... | |
mem_ui (user_interaction *dialog) | |
mem_ui (const mem_ui &ref) | |
the copy constructor More... | |
virtual | ~mem_ui () throw (Ebug) |
destructor More... | |
const mem_ui & | operator= (const mem_ui &ref) |
assignement operator More... | |
![]() | |
memory_pool * | get_pool () const |
template<class T > | |
void | meta_new (T *&ptr, size_t num) |
template<class T > | |
void | meta_delete (T *ptr) |
void * | operator new (size_t n_byte) |
void * | operator new (size_t n_byte, const std::nothrow_t ¬hrow_value) |
void * | operator new[] (size_t n_byte) |
void * | operator new[] (size_t n_byte, const std::nothrow_t ¬hrow_value) |
void * | operator new (size_t n_byte, memory_pool *p) |
void * | operator new[] (size_t n_byte, memory_pool *p) |
void | operator delete (void *ptr, memory_pool *p) |
this operator is called by the compiler if an exception is throw from the constructor of the allocated object | |
void | operator delete[] (void *ptr, memory_pool *p) |
this operator is called by the compiler if an exception is throw from the constructor of the allocated objects | |
void | operator delete (void *ptr) |
this is the usual delete operator, modified to handle allocated objects allocated on a memory pool or not | |
void | operator delete[] (void *ptr) |
this is the usual delete[] operator, modified to handle allocated objects allocated on a memory pool or not | |
keep trace of already written inodes to restore hard links
Definition at line 230 of file filesystem.hpp.
void libdar::filesystem_hard_link_write::clear_corres_if_pointing_to | ( | const infinint & | ligne, |
const std::string & | path | ||
) |
forget everything about a hard link if the path used to build subsequent hard links is the one given in argument
[in] | ligne | is the etiquette number for that hard link |
[in] | path | if the internaly recorded path to build subsequent hard link to that inode is equal to path, forget everything about this hard linked inode |
|
protected |
remove EA set from filesystem's file, allows subsequent raw_set_ea
[in] | e | this object may be a hard link to or an inode |
[in] | path | the path in the filesystem where reside the object whose EA to clear |
|
protected |
add the given EA matching the given mask to the file pointed to by "e" and spot
[in] | e | may be an inode or a hard link to an inode, |
[in] | list_ea | the list of EA to restore |
[in] | spot | the path where to restore these EA (full path required, including the filename of 'e') |
[in] | ea_mask | the EA entry to restore from the list_ea (other entries are ignored) |