Method and system for an overlay filesystem
First Claim
Patent Images
1. A system comprising:
- at least one processor; and
at least one memory coupled to the at least one processor, wherein the at least one memory is configured to store;
a vnode layer configured to receive a plurality of requests for filesystem operations generated by at least one application, wherein the plurality of requests for the filesystem operations comprise an open( ) request specifying a file; and
an overlay filesystem comprising;
a back filesystem containing shared read-only files; and
a front filesystem mounted above the back filesystem and containing writable files;
wherein the overlay filesystem is configured to;
selectively route the plurality of requests for the filesystem operations from the vnode layer to the front and back filesystems; and
allocate an onode in the at least one memory upon opening the file specified by the open( ) request, wherein the onode corresponds to the file specified by the open( ) request and comprises a shadow vnode.
9 Assignments
0 Petitions
Accused Products
Abstract
An overlay filesystem is described. The overlay filesystem is capable of accessing files from a first layer or a second layer based on one or more criteria. The overlay filesystem is also capable of saving changes made to any files in a different layer while preserving the original files in the original layer.
-
Citations
19 Claims
-
1. A system comprising:
-
at least one processor; and at least one memory coupled to the at least one processor, wherein the at least one memory is configured to store; a vnode layer configured to receive a plurality of requests for filesystem operations generated by at least one application, wherein the plurality of requests for the filesystem operations comprise an open( ) request specifying a file; and an overlay filesystem comprising; a back filesystem containing shared read-only files; and a front filesystem mounted above the back filesystem and containing writable files; wherein the overlay filesystem is configured to; selectively route the plurality of requests for the filesystem operations from the vnode layer to the front and back filesystems; and allocate an onode in the at least one memory upon opening the file specified by the open( ) request, wherein the onode corresponds to the file specified by the open( ) request and comprises a shadow vnode. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17)
-
-
18. A computer-implemented method comprising:
-
receiving a plurality of requests for filesystem operations at a vnode layer, wherein the plurality of requests for filesystem operations are generated by at least one application, and wherein the plurality of requests for the filesystem operations comprise an open( ) request specifying a file; selectively routing the plurality of requests for the filesystem operations from the vnode layer to a back filesystem and a front filesystem in an overlay filesystem, wherein the back filesystem contains shared read-only files, and wherein the front filesystem is mounted above the back filesystem and contains writable files; and allocating an onode in memory upon opening the file specified by the open( ) request, wherein the onode corresponds to the file specified by the open( ) request and comprises a shadow vnode.
-
-
19. A computer-readable storage medium comprising program instructions, wherein the program instructions are computer-executable to perform:
-
receiving a plurality of requests for filesystem operations at a vnode layer, wherein the plurality of requests for filesystem operations are generated by at least one application, and wherein the plurality of requests for the filesystem operations comprise an open( ) request specifying a file; selectively routing the plurality of requests for the filesystem operations from the vnode layer to a back filesystem and a front filesystem in an overlay filesystem, wherein the back filesystem contains shared read-only files, and wherein the front filesystem is mounted above the back filesystem and contains writable files; and allocating an onode in memory upon opening the file specified by the open( ) request, wherein the onode corresponds to the file specified by the open( ) request and comprises a shadow vnode.
-
Specification