Performing discard commands on RAID storage devices
First Claim
1. A method comprising:
- receiving, by a processing device, a request to free a range of logical sectors that is mapped to a plurality of storage devices organized as Redundant Array of Independent Disks (RAID), each storage device of the plurality of storage devices partitioned into a plurality of partitions to store a respective plurality of physical sectors;
identifying a first physical sector number corresponding to a first logical sector having a lowest number greater or equal than a starting logical sector number of the range of logical sectors;
identifying a second physical sector number corresponding to a second logical sector having a lowest number greater or equal than an ending logical sector number of the range of logical sectors;
identifying, in view of the first physical sector number and the second physical sector number, a range of physical sectors that includes all physical sectors of one or more parity groups; and
issuing, by the processing device, a command to the plurality of storage devices to free the range of physical sectors.
1 Assignment
0 Petitions
Accused Products
Abstract
An example method for performing discard commands on Redundant Array of Independent Disks (RAID) devices may comprise receiving a request to free a range of logical sectors that is mapped to a plurality of storage devices organized as RAID. The method may further comprise identifying a first physical sector number corresponding to a first logical sector having a lowest number greater or equal than a starting logical sector number of the range of logical sectors. The method may further comprise identifying a second physical sector number corresponding to a second logical sector having a lowest number greater or equal than an ending logical sector number of the range of logical sectors. The method may further comprise issuing a single command to all of the plurality of storage devices to free a range of sectors identified by the first physical sector number and the second physical sector number.
-
Citations
20 Claims
-
1. A method comprising:
-
receiving, by a processing device, a request to free a range of logical sectors that is mapped to a plurality of storage devices organized as Redundant Array of Independent Disks (RAID), each storage device of the plurality of storage devices partitioned into a plurality of partitions to store a respective plurality of physical sectors; identifying a first physical sector number corresponding to a first logical sector having a lowest number greater or equal than a starting logical sector number of the range of logical sectors; identifying a second physical sector number corresponding to a second logical sector having a lowest number greater or equal than an ending logical sector number of the range of logical sectors; identifying, in view of the first physical sector number and the second physical sector number, a range of physical sectors that includes all physical sectors of one or more parity groups; and issuing, by the processing device, a command to the plurality of storage devices to free the range of physical sectors. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A system comprising:
-
a plurality of storage devices organized as a Redundant Array of Independent Disks (RAID), each storage device of the plurality of storage devices partitioned into a plurality of partitions to store a respective plurality of physical sectors; and a processing device operatively coupled to the plurality of storage devices, the processing device to; receive a request to free a range of logical sectors that is mapped to the plurality of storage devices, each storage device partitioned into a plurality of partitions to store a plurality of physical sectors; identify a first physical sector number corresponding to a first logical sector having a lowest number greater or equal than a starting logical sector number of the range of logical sectors; identify a second physical sector number corresponding to a second logical sector having a lowest number greater or equal than an ending logical sector number of the range of logical sectors; identify, in view of the first physical sector number and the second physical sector number, a range of physical sectors that includes all physical sectors of one or more parity groups; and issue a command to the plurality of storage devices to free the range of physical. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. A computer readable non-transitory storage medium comprising instructions to cause a processing device to:
-
receive, by the processing device, a request to free a range of logical sectors that is mapped to a plurality of storage devices organized as Redundant Array of Independent Disks (RAID), each storage device of the plurality of storage devices partitioned into a plurality of partitions to store a respective plurality of physical sectors; identify a first physical sector number corresponding to a first logical sector having a lowest number greater or equal than a starting logical sector number of the range of logical sectors; identify a second physical sector number corresponding to a second logical sector having a lowest number greater or equal than an ending logical sector number of the range of logical sectors; identify, in view of the first physical sector number and the second physical sector number, a range of physical sectors that includes all physical sectors of one or more parity groups; and issue, by the processing device, a command to the plurality of storage devices to free the range of physical sectors. - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification