grr/server/grr_response_server/db.py
def WriteHashBlobReferences(self, references_by_hash):
    """Writes blob references for a given set of hashes.

    Every file known to GRR has a history of PathInfos. Every PathInfo has a
    hash_entry corresponding to a known hash of a file (or a downloaded part
    of the file) at a given moment.

    GRR collects files by collecting individual data blobs from the client.
    Thus, in the end a file contents may be described as a sequence of blobs.
    Using WriteHashBlobReferences we key this sequence of blobs not with the
    file name, but rather with a hash identifying file contents.

    This way for any given PathInfo we can look at the hash and say whether
    we have corresponding contents of the file by using ReadHashBlobRefernces.

    Args:
      references_by_hash: A dict where SHA256HashID objects are keys and lists
        of BlobReference objects are values.
    """
Writes blob references for a given set of hashes.

    Every file known to GRR has a history of PathInfos. Every PathInfo has a
    hash_entry corresponding to a known hash of a file (or a downloaded part
    of the file) at a given moment.

    GRR collects files by collecting individual data blobs from the client.
    Thus, in the end a file contents may be described as a sequence of blobs.
    Using WriteHashBlobReferences we key this sequence of blobs not with the
    file name, but rather with a hash identifying file contents.

    This way for any given PathInfo we can look at the hash and say whether
    we have corresponding contents of the file by using ReadHashBlobRefernces.

    Args:
      references_by_hash: A dict where SHA256HashID objects are keys and lists
        of BlobReference objects are values.
    
Writes blob references for a given set of hashes.
Every file known to GRR has a history of PathInfos. Every PathInfo has a
hash_entry corresponding to a known hash of a file (or a downloaded part
of the file) at a given moment.

GRR collects files by collecting individual data blobs from the client.
Thus, in the end a file contents may be described as a sequence of blobs.
Using WriteHashBlobReferences we key this sequence of blobs not with the
file name, but rather with a hash identifying file contents.

This way for any given PathInfo we can look at the hash and say whether
we have corresponding contents of the file by using ReadHashBlobRefernces.
Writes blob references for a given set of hashes . Every file known to GRR has a history of PathInfos . Every PathInfo has a hash_entry corresponding to a known hash of a file ( or a downloaded part of the file ) at a given moment . GRR collects files by collecting individual data blobs from the client . Thus in the end a file contents may be described as a sequence of blobs . Using WriteHashBlobReferences we key this sequence of blobs not with the file name but rather with a hash identifying file contents . This way for any given PathInfo we can look at the hash and say whether we have corresponding contents of the file by using ReadHashBlobRefernces .
def WriteHashBlobReferences(self, references_by_hash):
def WriteHashBlobReferences ( self , references_by_hash ) :
Writes blob references for a given set of hashes.
Writes blob references for a given set of hashes .
"""Writes blob references for a given set of hashes.

    Every file known to GRR has a history of PathInfos. Every PathInfo has a
    hash_entry corresponding to a known hash of a file (or a downloaded part
    of the file) at a given moment.

    GRR collects files by collecting individual data blobs from the client.
    Thus, in the end a file contents may be described as a sequence of blobs.
    Using WriteHashBlobReferences we key this sequence of blobs not with the
    file name, but rather with a hash identifying file contents.

    This way for any given PathInfo we can look at the hash and say whether
    we have corresponding contents of the file by using ReadHashBlobRefernces.

    Args:
      references_by_hash: A dict where SHA256HashID objects are keys and lists
        of BlobReference objects are values.
    """
self
references_by_hash
A dict where SHA256HashID objects are keys and lists
of BlobReference objects are values.
A dict where SHA256HashID objects are keys and lists of BlobReference objects are values .