Card-based management of discardable files
First Claim
1. A method for managing files with a storage device, the method comprising:
- in a storage device operatively coupled to a host, the storage device having a storage area comprising user files, free space and discardable files, the storage device;
identifying a record of free clusters in a discardable file system data structure, wherein the discardable file system data structure is separate from a host file system data structure stored on the storage device;
receiving a request from the host to store a user file in the storage area;
determining whether logical block addresses (LBAs) associated with data in the request are in a range of logical block addresses associated with clusters in the record in the discardable file system data structure; and
when the LBAs are in the range and there is free space available in the range;
mapping the LBAs of the user file to free clusters identified in the discardable file system data structure; and
subsequently removing the clusters mapped to the LBAs of the user file from the discardable file system data structure.
2 Assignments
0 Petitions
Accused Products
Abstract
A method and storage device are disclosed for card-based management of discardable files, where discardable files are tracked in a discardable file system on a storage device and are invisible to a host file system, which only tracks user files and free space. The method includes the storage device detecting currently free logical clusters corresponding to at least a portion of free space in the storage area and determining whether addresses associated with a subsequent user file write request are in a range of free clusters managed in the discardable file system by the storage device. When addresses in a host write request overlap the addresses of space managed by the discardable file system, the storage device discards discardable files as necessary and removes the newly freed clusters from the discardable file system, such that the discardable file system data structure is resized when room for user files is needed.
172 Citations
26 Claims
-
1. A method for managing files with a storage device, the method comprising:
-
in a storage device operatively coupled to a host, the storage device having a storage area comprising user files, free space and discardable files, the storage device; identifying a record of free clusters in a discardable file system data structure, wherein the discardable file system data structure is separate from a host file system data structure stored on the storage device; receiving a request from the host to store a user file in the storage area; determining whether logical block addresses (LBAs) associated with data in the request are in a range of logical block addresses associated with clusters in the record in the discardable file system data structure; and when the LBAs are in the range and there is free space available in the range; mapping the LBAs of the user file to free clusters identified in the discardable file system data structure; and subsequently removing the clusters mapped to the LBAs of the user file from the discardable file system data structure. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13)
-
-
14. A storage device for removable connection with a host, the storage device comprising:
-
a storage area having user files, free space and discardable files; and a controller in communication with the storage area, wherein the controller is configured to; identify a record of the free clusters in a discardable file system data structure, wherein the discardable file system data structure is separate from a host file system data structure stored on the storage device; receive a request from the host to store a user file in the storage area; determine whether logical block addresses (LBAs) associated with data in the request are in a range of logical block addresses associated with clusters in the record in the discardable file system data structure; and when the LBAs are in the range and there is free space available in the range; map the LBAs of the user file to free clusters identified in the discardable file system data structure; and subsequently remove the clusters mapped to the LBAs of the user file from the discardable file system data structure. - View Dependent Claims (15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26)
-
Specification