Patent ID: 9684658
Date: 2017-06-20
CPC Classifications: G06F

Claim:
1. A method of providing access to an updated file in a document management system comprising a storage device coupled to an external processor, wherein a file translation layer (FTL) map is maintained by an FTL between logical page numbers (LPNs) maintained by a file system and physical page numbers (PPNs) maintained by the storage device, the method comprising: receiving by the storage device a first command from the processor, the first command sent responsive to an application receiving an update comprising modified content of a first file and creation of a second file into which the modified content is copied, while access to the first file is maintained, wherein parameters of the first command includes, a first list of LPNs corresponding to the first file, and a second list of LPNs corresponding to the second file, and wherein the first list of LPNs is mapped to a first list of PPNs representing storage locations of the first file on the storage device, and the second list of LPNs is mapped to a second list of PPNs representing storage locations of the second file on the storage device; atomically remapping the first list of LPNs so that the first list of LPNs is mapped to the second list of PPNs in order, wherein for each LPN of the first list of LPNs, a mapping is created in the FTL map between a LPN of the first list of LPNs and a corresponding PPN of the second list of PPNs; trimming a mapping of the first list of LPNs to the first list of PPNs asynchronously, wherein for every LPN of the first list of LPNs, a mapping is removed in the FTL map between a LPN of the first list of LPNs and a corresponding PPN of the first list of PPNs; and unmapping a mapping of the second list of LPNs to the second list of PPNs, wherein for every LPN of the second list of LPNs, a mapping is removed in the FTL map between a LPN of the second list of LPNs and a corresponding PPN of the second list of PPNs.