×

Efficient file hash identifier computation

  • US 9,424,266 B2
  • Filed: 10/01/2007
  • Issued: 08/23/2016
  • Est. Priority Date: 10/01/2007
  • Status: Active Grant
First Claim
Patent Images

1. A method, implemented at a computer system that includes a processing unit, for determining whether to compute a new hash value for a file, comprising:

  • identifying a first state of a file;

    computing a first hash value corresponding to the first state of the file;

    recording the first hash value corresponding to the first state of the file and first state data corresponding to the first state of the file, the first state data comprising at least one of an update sequence number and a journal identifier that both correspond to the first state of the file, the update sequence number comprising an incrementable number that is changed every time the file is updated and the journal identifier comprising an identifier of a current instance of a journal;

    receiving a request for a second hash value of the file corresponding to a current second state of the file;

    based at least on receiving the request, and prior to computing the second hash value corresponding to the second state of the file, determining whether to provide the first hash value corresponding to the first state of the file or to compute the second hash value corresponding to the second state of the file based on a determination of whether or not contents of the file have changed since the first hash value corresponding to the first state of the file was computed, the determination of whether or not contents of the file have changed comprising comparing the recorded first state data corresponding to the first state of the file to current second state data of the file that indicates a second state of the file at the time of the request, to determine whether the contents of the file are the same between the first state and the second state, the contents of the file being the same when the first state data is equivalent to the second state data, at least one of the first state data of the file or the second state data of the file comprising at least one of an update sequence number and a journal identifier;

    based on determining that the first state data of the file is equivalent to the second state data of the file based upon the comparison, providing the first hash value corresponding to the first state of the file in response to the request, instead of computing the second hash value; and

    based on determining that the first state data of the file is not equivalent to the second state data of the file based upon the comparison, computing the second hash value for the file.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×