Virtualized file server distribution across clusters
US-2017235764-A1 · Aug 17, 2017 · US
US11010355B2 · US · B2
| Field | Value |
|---|---|
| Publication number | US-11010355-B2 |
| Application number | US-201916371503-A |
| Country | US |
| Kind code | B2 |
| Filing date | Apr 1, 2019 |
| Priority date | Sep 30, 2016 |
| Publication date | May 18, 2021 |
| Grant date | May 18, 2021 |
A practical reading order for non-experts. Skip the full description unless you need deep technical detail.
What the patent document calls the invention.
A short plain-language summary of the technical disclosure.
Who owns or filed the patent and who is credited as inventor.
Filing, priority, publication, and grant dates set the timeline.
The legal scope of protection — read this for what is actually claimed.
Technology tags used to group this patent with similar filings.
Prior art links and similar publications in this corpus.
Official abstract text for this publication.
The present disclosure discloses a file access method of a virtualization instance, including performing union on some image subfiles in a host operating system (host OS) and mounting a united directory to a union directory, and when an application in a library operating system instance needs to access a file in the union directory, causing a central processing unit to generate an exit event such that a hypervisor captures and processes the exit event, and during processing, converts an access request that is from the instance into an access request based on a system call of the host OS, and performs access.
Opening claim text (preview).
What is claimed is: 1. A file access method implemented by a host operating system, wherein a hypervisor and a library operating system engine run on the host operating system, wherein the host operating system, the hypervisor, and the library operating system engine run in a host mode, and wherein the method comprises: obtaining, by the library operating system engine, an image file of a library operating system instance based on a library operating system, wherein the image file comprises a plurality of image subfiles, and the plurality of image subfiles are specified as one or more image layers; storing the plurality of image subfiles to a plurality of image subfile directories in the host operating system based on the one or more image layers specified by the plurality of image subfiles, wherein the plurality of image subfile directories are in a one-to-one correspondence to the one or more image layers; performing a first union on the plurality of image subfile directories; mounting a united directory to a first union directory using a union file system, wherein the first union directory comprises at least one union directory file, and wherein one or more union layers formed by the at least one union directory file are in a one-to-one correspondence to the one or more image layers; running, by the library operating system engine, the library operating system instance in a guest mode based on one or more of the plurality of image subfiles; generating, by the hypervisor, an exit event of switching from the guest mode to the host mode in response to the library operating system receiving a first access request to access the union directory file; capturing, by the hypervisor, the exit event; converting, by the hypervisor, the first access request into a second access request that can be used to access an image subfile corresponding to the union directory file; and accessing, by the hypervisor, the image subfile corresponding to the union directory file based on the second access request. 2. The method according to claim 1 , wherein the first union directory is in the library operating system, and wherein performing the first union on the plurality of image subfile directories and mounting the united directory to the first union directory using the union file system comprises: mounting, by the library operating system engine, the plurality of image subfile directories to one or more mount directories in the library operating system; and performing, by the library operating system, the first union on the one or more mount directories and at least one common file system-based directory in the library operating system; and mounting the united directory to the first union directory using the union file system contained in the library operating system, wherein the at least one common file system-based directory is readable or writable. 3. The method according to claim 2 , further comprising accessing the file in the at least one common file system-based directory in response to receiving a third access request to access a file in the at least one common file system-based directory. 4. The method according to claim 1 , wherein the first union directory is in the library operating system, and wherein performing the first union on the plurality of image subfile directories and mounting the united directory to the first union directory using the union file system comprises: mounting, by the library operating system engine, the plurality of image subfile directories to one or more mount directories in the library operating system; and performing, by the library operating system, the first union on the one or more mount directories; and mounting the united directory to the first union directory using the union file system contained in the library operating system. 5. The method according to claim 1 , wherein the first union directory is in the host operating system, and wherein performing the first union on the plurality of image subfile directories and mounting the united directory to the first union directory using the union file system comprises: performing, by the library operating system engine, the first union on the plurality of image subfile directories; and mounting the united directory to the first union directory by invoking the union file system in the host operating system. 6. The method according to claim 5 , further comprising: mounting, by the library operating system engine, the first union directory to a mount directory in the library operating system instance; performing, by the library operating system, a second union on the mount directory and at least one directory in the library operating system; and mounting the united directory to a second union directory by invoking the union file system contained in the library operating system, wherein the at least one directory is readable or writable. 7. The method according to claim 1 , wherein generating the exit event comprises invoking a customized file system in the library operating system to access the union directory file and generate the exit event, wherein the customized file system is a file system that is capable of generating the exit event according to the first access request. 8. The method according to claim 1 , wherein the first union directory is in the host operating system, and wherein performing the first union on the plurality of image subfile directories and mounting the united directory to the first union directory using the union file system comprises: performing, by the library operating system engine, the first union on the plurality of image subfile directories and at least one directory in the host operating system; and mounting the united directory to the first union directory using the union file system in the host operating system, wherein the at least one directory is readable or writable, and wherein the method further comprises: mounting, by the library operating system engine, the first union directory to a mount directory in the library operating system; and correspondingly accessing the union directory file through the mount directory in response to the application in the library operating system instance requesting to access the union directory file. 9. The method according to claim 1 , wherein the image subfile directory is read-only in the first union directory. 10. The method according to claim 1 , wherein the exit event is generated in response to invoking a hypercall instruction or is constructing an exception. 11. An electronic device implementing a host operating system, comprising: a processor; and a storage, wherein the processor is configured to read and execute code stored in the storage, wherein code stored in the storage comprises a plurality of instructions configured to execute a hypervisor and a library operating system engine in a host mode, wherein the plurality of instructions that, when executed by the processor, caused the processor to: obtain an image file of a library operating system instance based on a library operating system, wherein the image file comprises a plurality of image subfiles, and the plurality of image subfiles are specified as one or more image layers; store the plurality of image subfiles to a plurality of image subfile directories in the host operating system based on the one or more image layers specified by the plurality of image subfiles, wherein the plurality of image subfile directories are in a one-to-one correspondence to the one or more image layers; perform a first union on the plurality of image subfile directories; mount a united directory to a first union directory using a union file system, wherein the first union direc
Information retrieval; Database structures therefor; File system structures therefor · CPC title
Virtual file systems · CPC title
File or folder operations, e.g. details of user interfaces specifically adapted to file systems · CPC title
Support for shared access to files; File sharing support · CPC title
Hypervisors; Virtual machine monitors · CPC title
Related publications grouped by family.
Answers are generated from the same data shown on this page.