×

Reducing read operations and branches in file system policy checks

  • US 10,067,943 B2
  • Filed: 12/22/2017
  • Issued: 09/04/2018
  • Est. Priority Date: 09/15/2016
  • Status: Active Grant
First Claim
Patent Images

1. A computer-implemented method foridentifying files conforming to a policy, the method comprising:

  • receiving, by at least one processor, a first request to determine a first set of filesincluded in a first snapshot of a file system that conform to at least one input policy;

    identifying, by the at least one processor, in response to the first request, a first subset of files, included in the first snapshot of the file system, that conform to a requested policy, wherein the requested policy is included in the at least one input policy;

    saving, by the at least one processor, in association with the requested policy, first policy output information descriptive of information nodes (i-nodes) associated with files included in the first subset of files;

    including, by the at least one processor, the requested policy in a saved policy set, wherein the at least one processor including the requested policy in the saved policy set is based, at least in part, on the requested policy being not previously included in the saved policy set and a setting configured to include the requested policy in the saved policy set until 2 consecutive requests are received that do not include the requested policy;

    identifying a common policy attribute, wherein the common policy attribute is a policy attribute included in each of a first policy and a second policy, wherein the first policy and the second policy are included in the requested policy, and wherein the common policy attribute comprises a rule that a respective data element be associated with a modification date more recent than a threshold date;

    combining a check for the common policy attribute included in the first policy with a check for the common policy attribute included in the second policy, wherein the combined check is configured to simultaneously check respective files for the common policy attribute that satisfies both the first policy and the second policy;

    receiving, by the at least one processor, a subsequent request to determine files in a subsequent snapshot of the file system that conform to the requested policy;

    determining, by the at least one processor, based at least in part on the first policy output information saved in association with the requested policy, a difference set of files comprising files included in the subsequent snapshot of the file system that are not included in the first snapshot of the file system;

    identifying, by the at least one processor, a second subset files, included in the difference set of files, that conform to the requested policy by performing at least the combined policy check;

    generating second policy output information, wherein the second policy output information is descriptive of files included in the second subset of files; and

    outputting, by the at least one processor, the saved first policy output information merged with the second policy output information.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×