Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Device mapper isolation method based on android containers

A container and linked list technology, applied in the direction of instruments, program control design, electrical digital data processing, etc., can solve the problem of creating DeviceMapper for mount points, and achieve the effect of improving compatibility

Inactive Publication Date: 2017-10-03
BEIJING HAIHANG COMM TECH CO LTD
View PDF2 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The native Device mapper uses mount points to distinguish different Device mapper entities. Then in the solution based on single-core multi-system, it will appear that after the Device Mapper is successfully created through the / system mount point, the second system cannot use the same name. The problem of creating Device Mapper with the mount point
[0006] A feasible solution is to replace the file system that needs to use the Device Mapper mechanism in different systems with a different mount point, but this solution needs to modify a lot of code that uses the file system, and new services need to pay attention to this problem

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Device mapper isolation method based on android containers
  • Device mapper isolation method based on android containers

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0015] The present invention will be further described below in conjunction with the description of the drawings and specific embodiments.

[0016] In order to solve the problem of the same-name mount point conflict of Device Mapper on a single-core multi-system, the present invention proposes a solution based on linux namespace, and solves this problem in the driver of Device Mapper.

[0017] Such as Figure 1 to Figure 2 As shown, a device mapper isolation method based on an android container includes the following steps:

[0018] 1. Add a linked list header dm_list to the struct mnt_namespace in the kernel. This structure is used to hang the newly created device mapper on the linked list headed by the dm_list of mnt_namespace when creating a device mapper later.

[0019] 2. When a new mnt namespace is created through system calls such as clone(), it is the mnt namespace in the kernel.

[0020] 3. When a certain system creates a device mapper, pass the mnt namespace corres...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a device mapper isolation method based on android containers. The method includes the following step: S1, adding a chain table head dm_list for a mnt namespace structure in an operating system kernel, using the mnt_namespace structure to create a device mapper, and mounting the newly created device mapper on a chain table which takes the chain table head dm_list of a mnt_namespace as a head, wherein each mnt namespace has a device mapper chain table. The method has the advantages that the Device Mapper is a virtual driver of the kernel, thus incompatibility problems of different android machines do not exist, and the compatibility is improved.

Description

technical field [0001] The invention relates to an isolation method, in particular to an android container-based device mapper isolation method. Background technique [0002] With the development of android, a container-based multi-system solution has been proposed on android, which implements process isolation, file system isolation, network isolation and so on. The android container solution is based on the namespace (namespace) and cgroups technology provided by the linux kernel (operating system kernel), and multiple complete virtual spaces are isolated on a single kernel. [0003] In order to illustrate the latter mechanism, let's first talk about how the isolation of the file system is realized in the solution based on single-core multi-system. The isolation of the file system is achieved through chroot (Change Root, which is to change the location of the root directory referenced when the program is executed) and mnt namespace. Through chroot, a rootfs (root file sys...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/44G06F9/445
CPCG06F8/31G06F9/44521
Inventor 王晓华张韵江滨邓永德
Owner BEIJING HAIHANG COMM TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products