Handle for controlling an unindexing operation. More...
#include </home/buildbot/bb-worker/worker/gnunet_firefly/build/src/service/fs/fs_api.h>
Data Fields | |
struct ContentHashKey | chk |
The content hash key of the last block we processed, will in the end be set to the CHK from the URI. More... | |
struct GNUNET_FS_Handle * | h |
Global FS context. More... | |
struct TopLevelActivity * | top |
Our top-level activity entry. More... | |
struct GNUNET_FS_DirScanner * | dscan |
Directory scanner to find keywords (KBlock removal). More... | |
struct GNUNET_FS_Uri * | ksk_uri |
Keywords found (telling us which KBlocks to remove). More... | |
uint32_t | ksk_offset |
Current offset in KSK removal. More... | |
char * | filename |
Name of the file that we are unindexing. More... | |
char * | serialization |
Short name under which we are serializing the state of this operation. More... | |
struct GNUNET_MQ_Handle * | mq |
Connection to the FS service, only valid during the UNINDEX_STATE_FS_NOTIFY phase. More... | |
struct GNUNET_DATASTORE_Handle * | dsh |
Connection to the datastore service, only valid during the UNINDEX_STATE_DS_NOTIFY phase. More... | |
void * | client_info |
Pointer kept for the client. More... | |
struct GNUNET_FS_TreeEncoder * | tc |
Merkle-ish tree encoder context. More... | |
struct GNUNET_DISK_FileHandle * | fh |
Handle used to read the file. More... | |
struct GNUNET_DATASTORE_QueueEntry * | dqe |
Handle to datastore 'get_key' operation issued for obtaining KBlocks. More... | |
struct GNUNET_HashCode | ukey |
Current key for decrypting UBLocks from 'get_key' operation. More... | |
struct GNUNET_HashCode | uquery |
Current query of 'get_key' operation. More... | |
char * | emsg |
Error message, NULL on success. More... | |
struct GNUNET_CRYPTO_FileHashContext * | fhc |
Context for hashing of the file. More... | |
uint64_t | file_size |
Overall size of the file. More... | |
struct GNUNET_TIME_Absolute | start_time |
When did we start? More... | |
struct GNUNET_HashCode | file_id |
Hash of the file's contents (once computed). More... | |
enum UnindexState | state |
Current operatinonal phase. More... | |
struct ContentHashKey GNUNET_FS_UnindexContext::chk |
The content hash key of the last block we processed, will in the end be set to the CHK from the URI.
Used to remove the KBlocks.
Definition at line 1356 of file fs_api.h.
Referenced by deserialize_unindex_file(), GNUNET_FS_unindex_sync_(), process_kblock_for_unindex(), and unindex_process().
struct GNUNET_FS_Handle* GNUNET_FS_UnindexContext::h |
Global FS context.
Definition at line 1361 of file fs_api.h.
Referenced by deserialize_unindex_file(), GNUNET_FS_unindex_do_extract_keywords_(), GNUNET_FS_unindex_do_remove_(), GNUNET_FS_unindex_do_remove_kblocks_(), GNUNET_FS_unindex_make_status_(), GNUNET_FS_unindex_signal_suspend_(), GNUNET_FS_unindex_start(), GNUNET_FS_unindex_stop(), GNUNET_FS_unindex_sync_(), and unindex_finish().
struct TopLevelActivity* GNUNET_FS_UnindexContext::top |
Our top-level activity entry.
Definition at line 1366 of file fs_api.h.
Referenced by deserialize_unindex_file(), GNUNET_FS_unindex_signal_suspend_(), GNUNET_FS_unindex_start(), and GNUNET_FS_unindex_stop().
struct GNUNET_FS_DirScanner* GNUNET_FS_UnindexContext::dscan |
Directory scanner to find keywords (KBlock removal).
Definition at line 1371 of file fs_api.h.
Referenced by GNUNET_FS_unindex_do_extract_keywords_(), GNUNET_FS_unindex_signal_suspend_(), GNUNET_FS_unindex_stop(), and unindex_directory_scan_cb().
struct GNUNET_FS_Uri* GNUNET_FS_UnindexContext::ksk_uri |
Keywords found (telling us which KBlocks to remove).
Definition at line 1376 of file fs_api.h.
Referenced by deserialize_unindex_file(), GNUNET_FS_unindex_do_remove_kblocks_(), GNUNET_FS_unindex_signal_suspend_(), GNUNET_FS_unindex_stop(), GNUNET_FS_unindex_sync_(), process_kblock_for_unindex(), and unindex_directory_scan_cb().
uint32_t GNUNET_FS_UnindexContext::ksk_offset |
Current offset in KSK removal.
Definition at line 1381 of file fs_api.h.
Referenced by continue_after_remove(), deserialize_unindex_file(), GNUNET_FS_unindex_do_remove_kblocks_(), GNUNET_FS_unindex_sync_(), and process_kblock_for_unindex().
char* GNUNET_FS_UnindexContext::filename |
Name of the file that we are unindexing.
Definition at line 1386 of file fs_api.h.
Referenced by deserialize_unindex_file(), GNUNET_FS_unindex_do_extract_keywords_(), GNUNET_FS_unindex_do_remove_(), GNUNET_FS_unindex_make_status_(), GNUNET_FS_unindex_signal_suspend_(), GNUNET_FS_unindex_start(), GNUNET_FS_unindex_stop(), GNUNET_FS_unindex_sync_(), and unindex_directory_scan_cb().
char* GNUNET_FS_UnindexContext::serialization |
Short name under which we are serializing the state of this operation.
Definition at line 1391 of file fs_api.h.
Referenced by deserialize_unindex_file(), GNUNET_FS_unindex_signal_suspend_(), GNUNET_FS_unindex_stop(), and GNUNET_FS_unindex_sync_().
struct GNUNET_MQ_Handle* GNUNET_FS_UnindexContext::mq |
Connection to the FS service, only valid during the UNINDEX_STATE_FS_NOTIFY phase.
Definition at line 1397 of file fs_api.h.
Referenced by GNUNET_FS_unindex_signal_suspend_(), GNUNET_FS_unindex_stop(), handle_unindex_response(), unindex_finish(), and unindex_mq_error_handler().
struct GNUNET_DATASTORE_Handle* GNUNET_FS_UnindexContext::dsh |
Connection to the datastore service, only valid during the UNINDEX_STATE_DS_NOTIFY phase.
Definition at line 1403 of file fs_api.h.
Referenced by GNUNET_FS_unindex_do_remove_(), GNUNET_FS_unindex_do_remove_kblocks_(), GNUNET_FS_unindex_signal_suspend_(), GNUNET_FS_unindex_stop(), process_kblock_for_unindex(), unindex_finish(), and unindex_process().
void* GNUNET_FS_UnindexContext::client_info |
Pointer kept for the client.
Definition at line 1408 of file fs_api.h.
Referenced by GNUNET_FS_unindex_make_status_(), GNUNET_FS_unindex_signal_suspend_(), GNUNET_FS_unindex_start(), and GNUNET_FS_unindex_stop().
struct GNUNET_FS_TreeEncoder* GNUNET_FS_UnindexContext::tc |
Merkle-ish tree encoder context.
Definition at line 1413 of file fs_api.h.
Referenced by GNUNET_FS_unindex_do_remove_(), GNUNET_FS_unindex_signal_suspend_(), GNUNET_FS_unindex_stop(), process_cont(), and unindex_finish().
struct GNUNET_DISK_FileHandle* GNUNET_FS_UnindexContext::fh |
Handle used to read the file.
Definition at line 1418 of file fs_api.h.
Referenced by GNUNET_FS_unindex_do_remove_(), GNUNET_FS_unindex_signal_suspend_(), GNUNET_FS_unindex_stop(), unindex_finish(), and unindex_reader().
struct GNUNET_DATASTORE_QueueEntry* GNUNET_FS_UnindexContext::dqe |
Handle to datastore 'get_key' operation issued for obtaining KBlocks.
Definition at line 1424 of file fs_api.h.
Referenced by continue_after_remove(), GNUNET_FS_unindex_do_remove_kblocks_(), GNUNET_FS_unindex_signal_suspend_(), GNUNET_FS_unindex_stop(), and process_kblock_for_unindex().
struct GNUNET_HashCode GNUNET_FS_UnindexContext::ukey |
struct GNUNET_HashCode GNUNET_FS_UnindexContext::uquery |
Current query of 'get_key' operation.
Definition at line 1434 of file fs_api.h.
Referenced by GNUNET_FS_unindex_do_remove_kblocks_(), and process_kblock_for_unindex().
char* GNUNET_FS_UnindexContext::emsg |
Error message, NULL on success.
Definition at line 1439 of file fs_api.h.
Referenced by deserialize_unindex_file(), GNUNET_FS_unindex_do_remove_(), GNUNET_FS_unindex_do_remove_kblocks_(), GNUNET_FS_unindex_process_hash_(), GNUNET_FS_unindex_signal_suspend_(), GNUNET_FS_unindex_stop(), GNUNET_FS_unindex_sync_(), process_cont(), signal_unindex_error(), unindex_directory_scan_cb(), unindex_finish(), unindex_mq_error_handler(), and unindex_reader().
struct GNUNET_CRYPTO_FileHashContext* GNUNET_FS_UnindexContext::fhc |
Context for hashing of the file.
Definition at line 1444 of file fs_api.h.
Referenced by deserialize_unindex_file(), GNUNET_FS_unindex_process_hash_(), GNUNET_FS_unindex_signal_suspend_(), GNUNET_FS_unindex_start(), and GNUNET_FS_unindex_stop().
uint64_t GNUNET_FS_UnindexContext::file_size |
Overall size of the file.
Definition at line 1449 of file fs_api.h.
Referenced by deserialize_unindex_file(), GNUNET_FS_unindex_do_remove_(), GNUNET_FS_unindex_make_status_(), GNUNET_FS_unindex_signal_suspend_(), GNUNET_FS_unindex_start(), GNUNET_FS_unindex_stop(), GNUNET_FS_unindex_sync_(), handle_unindex_response(), unindex_finish(), and unindex_reader().
struct GNUNET_TIME_Absolute GNUNET_FS_UnindexContext::start_time |
When did we start?
Definition at line 1454 of file fs_api.h.
Referenced by deserialize_unindex_file(), GNUNET_FS_unindex_make_status_(), GNUNET_FS_unindex_start(), and GNUNET_FS_unindex_sync_().
struct GNUNET_HashCode GNUNET_FS_UnindexContext::file_id |
Hash of the file's contents (once computed).
Definition at line 1459 of file fs_api.h.
Referenced by deserialize_unindex_file(), GNUNET_FS_unindex_process_hash_(), GNUNET_FS_unindex_sync_(), unindex_finish(), and unindex_process().
enum UnindexState GNUNET_FS_UnindexContext::state |
Current operatinonal phase.
Definition at line 1464 of file fs_api.h.
Referenced by deserialize_unindex_file(), GNUNET_FS_unindex_do_remove_(), GNUNET_FS_unindex_do_remove_kblocks_(), GNUNET_FS_unindex_process_hash_(), GNUNET_FS_unindex_signal_suspend_(), GNUNET_FS_unindex_stop(), GNUNET_FS_unindex_sync_(), handle_unindex_response(), httpdomain.autohttp.bottle.AutobottleDirective::run(), httpdomain.autohttp.flask.AutoflaskDirective::run(), httpdomain.autohttp.flaskqref.QuickReferenceFlaskDirective::run(), httpdomain.autohttp.tornado.AutoTornadoDirective::run(), typescriptdomain.TypeScriptDefinition::run(), unindex_directory_scan_cb(), unindex_extract_keywords(), unindex_finish(), and unindex_mq_error_handler().