Caching uncompressed data on a compressed drive
AssigneeMicrosoft Corporation
InventorsBenjamin W. Slivka, Forrest Foltz
Life of this patent
Estimating the term…
Abstract
An improved compressed file system is provided. In a preferred embodiment of the present invention, a memory cache is used for storing uncompressed data that is sent to or received from a compressed logical drive. When writing data to the compressed logical drive, the preferred embodiment of the present invention determines whether to use write-behind caching or write-through caching.
Claims9
A method in a computer system for writing data, the computer system having a compressed drive and a cache, the method comprising the steps of:
- when the compressed drive has sufficient space to store the data, storing the data in the cache in an uncompressed form so that the data can be later compressed and written to the compressed drive;
- and
- when the compressed drive has insufficient space to store the data,
- compressing the data;
- and
- writing the compressed data to the compressed drive.
A computer-readable medium whose contents cause a computer system having a compressed storage device and a cache to write data to the compressed storage device by:
- when the compressed drive has sufficient space to store the data, storing the data in the cache in an uncompressed form so that the data can be later compressed and written to the compressed drive;
- and
- when the compressed drive has insufficient space to store the data,
- compressing the data;
- and
- writing the compressed data to the compressed drive.
A method in a computer system having an operating system for storing data on a drive, comprising:
- receiving in the operating system from a program a write command specifying data to be written to a drive, the drive being designated to store data in a compressed form;
- and
- in response to receiving the write command, storing the data specified by the write command in a cache in an uncompressed form.
A computer-readable medium whose contents cause a computer system to store data on a storage device, by:
- receiving a write command specifying data to be written to a selected storage device, the selected storage device being designated to store data in a compressed form;
- and
- in response to receiving the write command, storing the data specified by the write command in a cache in an uncompressed form.
A computer memory containing a cache data structure for a compressed drive, the data structure comprising data specified in a command received from a program to write the data to the compressed drive, the data in the data structure being in an uncompressed form, such that the data contained in the data structure need not be compressed before the data is stored in the data structure, and such that compression of the data contained in the data structure can be deferred until the data is written to the compressed drive.
A caching device for a storage device, the storage device storing data in a compressed form, comprising:
- a processor for executing a program containing a command to write specified data to the storage device;
- and
- a cache for storing the specified data in an uncompressed form in response to execution of the program by the processor.
Dependencies are inferred from the claim text.