Patent ID: 8538997

Claim:
A method, comprising: receiving, using one or more processing units, a plurality of requests associated with one or more files stored on a storage device, wherein each file is stored at a storage location, wherein each request has a corresponding priority, and wherein each request corresponds to an indexing operation or a metadata operation; determining, using the one or more processing units, that the storage device is in a low power mode; determining, using the one or more processing units, a first subset of requests, wherein the priority of each request in the first subset has a high priority; determining, using the one or more processing units, a second subset of requests, wherein the priority of each request in the second subset has a low priority; queuing, using the one or more processing units, the first subset of requests in a high priority queue; queuing, using the one or more processing units, the second subset of requests in a low priority queue; generating, using the one or more processing units, a sequence of requests in the high priority queue, wherein the sequence is based upon the storage locations of the files associated with the first subset of requests; and processing, using the one or more processing units, requests in the high priority queue according to the sequence.