CN107704307A - A kind of management method, device and the terminal of virtual external storage - Google Patents
A kind of management method, device and the terminal of virtual external storage Download PDFInfo
- Publication number
- CN107704307A CN107704307A CN201610647943.2A CN201610647943A CN107704307A CN 107704307 A CN107704307 A CN 107704307A CN 201610647943 A CN201610647943 A CN 201610647943A CN 107704307 A CN107704307 A CN 107704307A
- Authority
- CN
- China
- Prior art keywords
- external storage
- virtual external
- storage device
- information
- storage
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45579—I/O management, e.g. providing access to device drivers or storage
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present invention provides a kind of management method, device and the terminal of virtual external storage, and this method includes:Monitor the state change of physical storage device;According to the state change of physical storage device, the basic handling that file system is carried out to virtual external storage corresponding to physical storage device operates;Routing information of the virtual external storage after basic handling operation is completed is updated, obtains currently available virtual external storage information;When receiving storage device access request, according to currently available virtual external storage information, confirm to allow the physical storage device accessed, storage device access request is sent to physical storage device.The present invention is by the state change of physical storage device, the renewal of processing operation rear path information is carried out to virtual external storage corresponding to it, the multiple virtual external storages being easy in management terminal so that the multiple virtual external storages of user-accessible, lift Consumer's Experience.
Description
Technical field
The present invention relates to mobile communication technology field, more particularly to a kind of management method of virtual external storage,
Device and terminal.
Background technology
Android M systems introduce SD card (Secure Digital Memory Card, safe digital card) formatting
For the function of built-in storage.After user inserts SD card, it can select SD card being formatted as built in memory device.In being formatted as
The part that the SD card of portion's storage will store as internal system, for extending internal system storage size.
Before SD card is inserted, in order to provide using the function of preserving user data, android system is by sharing data
The mode of subregion, by system /data/media catalogues invent a type be emulated external storage, then
External deposit is mounted to by FUSE (Filesystem in Userspace, user's space file system) daemon service processes
Equipment mount point is stored up to access for upper layer application.Because system is using the scheme of shared data subregions, the emulated come is fictionalized
The amount of capacity of the external storage of type is the size of data subregions.
After inserting SD card, after SD card carry, user can select SD card being formatted as built in memory device.Work as SD card
After being formatted as storage inside, system can on SD card root a newly-built media catalogue, then by the media mesh
Record invents the external storage of another emulated type, and follow-up system can be by FUSE daemon carries simultaneously
Access the external storage.
Because current system only supports the external storage of one emulated type of carry, acquiescence is in start process
By system/data/media catalogues fictionalize come emulated type external storages.If it is desired to by user data
Be saved in SD card be formatted as after built in memory device by the media catalogues of SD card root fictionalize come emulated classes
Type external storage, user are needed by the transfer data menu of SD card or during SD card formats built-in store
Moving operation is selected, is first deleted the content of target emulated type external storages in SD card, then general/data/
The copy content of media catalogue corresponding source emulated type external storages is set to the external storage of target emulated types
It is standby upper, then the content of source emulated type external storages is deleted again, finally again by FUSE daemon service into
Target emulated type external storages are mounted to external storage mount point by journey.
In addition, after emulated type external storages corresponding to carry SD card are selected, if user unloads SD card,
The external storage without emulated types is now in carry state in system.If system is by outside emulated types
Main storage device of the storage device as system is put, then system hosts storage equipment can be caused to be not present, upper layer application can not preserve
The problem of user data.
The content of the invention
It is an object of the invention to provide a kind of management method, device and the terminal of virtual external storage, to solve
The problem of certainly virtual external storage of mobile terminal system can not be accessed simultaneously in the prior art.
In order to solve the above-mentioned technical problem, the embodiment of the present invention provides a kind of management method of virtual external storage,
Including:
Monitor the state change of physical storage device;
According to the state change of the physical storage device, virtual external storage corresponding to the physical storage device is set
The standby basic handling operation for carrying out file system;
Routing information of the virtual external storage after the basic handling operation is completed is updated, obtains currently may be used
Virtual external storage information;
When receiving storage device access request, according to the currently available virtual external storage information, really
Recognize the physical storage device for allowing to access, the storage device access request is sent to the physical storage device.
Wherein, methods described also includes:
The formatted requests to the physical storage device that monitoring users are initiated;
Formatting corresponding to being carried out according to the formatted requests to the physical storage device is handled.
Wherein, according to the state change of the physical storage device, to virtual external corresponding to the physical storage device
The step of basic handling that storage device carries out file system operates includes:
It is virtual by described first when listening to physics built in memory device and being created as the first virtual external storage
External storage carry is to the first default mount point;
Routing information of the renewal virtual external storage after the basic handling operation is completed, is worked as
The step of preceding available virtual external storage information, includes:
Routing information of the described first virtual external storage after carry operation is completed is added, is obtained currently available
Virtual external storage information.
Wherein, according to the state change of the physical storage device, to virtual external corresponding to the physical storage device
The step of basic handling that storage device carries out file system operates includes:
, will be virtual external corresponding to the physics external storage when listening to the addition of physics external storage
Storage device carry is to the second default mount point;
Routing information of the renewal virtual external storage after the basic handling operation is completed, is worked as
The step of preceding available virtual external storage information, includes:
Routing information of the virtual external storage after carry operation is completed is added, is obtained currently available virtual
External storage information.
Wherein, according to the state change of the physical storage device, to virtual external corresponding to the physical storage device
The step of basic handling that storage device carries out file system operates includes:
, will be virtual external corresponding to the physics external storage when listening to the removal of physics external storage
Storage device unloads;
Routing information of the renewal virtual external storage after the basic handling operation is completed, is worked as
The step of preceding available virtual external storage information, includes:
Routing information corresponding to deleting the virtual external storage, obtains currently available virtual external storage
Information.
Wherein, when receiving storage device access request, believed according to the currently available virtual external storage
Breath, confirm to allow the physical storage device accessed, the step of the storage device access request is sent to the physical storage device
Suddenly include:
When receiving storage device access request, the currently available virtual external storage information is inquired about, is obtained
Take active user's storage device access strategy;
According to active user's storage device access strategy, by the virtual access path of the storage device access request
Be converted to actual physics path;
The storage device access request is sent to physical storage device corresponding to the actual physics path.
Wherein, methods described also includes:
Receive Client-initiated storage device inquiry request;
Currently available virtual external storage information is returned to the user.
The embodiment of the present invention also provides a kind of managing device of virtual external storage, including:
First monitors module, for monitoring the state change of physical storage device;
Processing module is performed, for the state change according to the physical storage device, to the physical storage device pair
The virtual external storage answered carries out the basic handling operation of file system;
Information updating module, for updating road of the virtual external storage after the basic handling operation is completed
Footpath information, obtain currently available virtual external storage information;
Access modules, for when receiving storage device access request, currently available virtual external deposited according to described
Facility information is stored up, confirms to allow the physical storage device accessed, the storage device access is sent to the physical storage device
Request.
The embodiment of the present invention also provides a kind of terminal, including:Virtual external storage as described in above-mentioned embodiment
Managing device.
The above-mentioned technical proposal of the present invention has the beneficial effect that:
In the such scheme of the present invention, by when the state of physical storage device changes, to physical storage device
Corresponding virtual external storage carries out upgrading in time for the routing information after basic handling operation, is easy to more in terminal
The unified management of individual virtual external storage so that the multiple virtual external storages of user-accessible, lift Consumer's Experience.
Brief description of the drawings
Fig. 1 is the basic step schematic diagram of the management method of the virtual external storage of the embodiment of the present invention;
Fig. 2 is the composition structural representation of the managing device of the virtual external storage of the embodiment of the present invention;
Fig. 3 is the system framework figure of the terminal of the managing device including virtual external storage of the embodiment of the present invention.
Embodiment
To make the technical problem to be solved in the present invention, technical scheme and advantage clearer, below in conjunction with accompanying drawing and tool
Body embodiment is described in detail.
The problem of present invention can not be accessed simultaneously for the virtual external storage of prior art mobile terminal system,
A kind of management method of virtual external storage is provided, is easy to manage multiple the unified of virtual external storage in terminal
Reason so that the multiple virtual external storages of user-accessible, lift Consumer's Experience.
First embodiment
As shown in figure 1, the embodiment of the present invention provides a kind of management method of virtual external storage, including:
Step 11, the state change of physical storage device is monitored;
It should be noted that physical storage device includes:Physics external storage and physics built in memory device.Example
Such as, physics external storage can be SD card etc., and physics built in memory device can be welded to built-in on terminal mainboard
Memory etc..
Step 12, according to the state change of the physical storage device, to virtual outer corresponding to the physical storage device
Put the basic handling operation that storage device carries out file system;
Here, the basic handling operation of file system includes:Carry operates or unloading operation.
Here, carry refers to a storage device being mounted in an already present catalogue.
Step 13, routing information of the virtual external storage after the basic handling operation is completed is updated, is obtained
To currently available virtual external storage information;
It should be noted that the routing information of virtual external storage refers to the carry mesh of virtual external storage
Record, that is, carry path, it is, the mount point information of virtual external storage.User's passage path information can visit
Ask the content in virtual external storage.
Step 14, when receiving storage device access request, according to the currently available virtual external storage
Information, confirm to allow the physical storage device accessed, the storage device access request is sent to the physical storage device.
Explanation is needed exist for, storage device access request can be that user is initiated by application program, can also
It is, what the operating system of terminal was initiated in itself.The storage device access request is usually the access to virtual external storage
Request.
It should be noted that storage device access request can include:The read-write of file, deletion, copy, newly-built etc. please
Ask.For example, the image file for completion of taking pictures is asked addition by the camera applications of terminal, that is, write to virtual external storage and set
It is standby.
The management method of virtual external storage provided in an embodiment of the present invention, passes through the state in physical storage device
When changing, the routing information after basic handling operation is carried out to virtual external storage corresponding to physical storage device
Upgrade in time, be easy to the unified management to multiple virtual external storages in terminal so that user-accessible is multiple virtual
External storage, lift Consumer's Experience.
Preferably, the management method of the virtual external storage of the embodiment of the present invention can also further comprise:
The formatted requests to the physical storage device that monitoring users are initiated;
It should be noted that terminal monitor physical storage device state change while, can also monitoring users pass through
The form that physics external storage is formatted as to built in memory device that application program for storage device management is initiated
Change request.
Formatting corresponding to being carried out according to the formatted requests to the physical storage device is handled.
Here, terminal can also listen to the subregion change of physical storage device.The subregion of physics external storage can be with
The physics external storage being attached in terminal is divided into the storage region space for storing files in different types system.
It should be noted that the state change of physical storage device can include:Physics built in memory device is created as
Three kinds of feelings of removal of first virtual external storage, the addition of physics external storage and physics external storage
Condition.The execution steps flow chart of these three situations is illustrated separately below.
That is, specifically, when physics built in memory device is created as the first virtual external storage, this hair
The step 12 of bright embodiment may particularly include:
It is virtual by described first when listening to physics built in memory device and being created as the first virtual external storage
External storage carry is to the first default mount point.
It should be noted that when terminal system initializes, meeting newly-built virtual external storage under predetermined directory,
It is mounted to afterwards by preset service process on the external storage mount point of system configuration.
For example, the operating system of terminal is Android M systems, can be in shared data subregion during system initialization
Multimedia catalogue under a newly-built emulated type external storage, be mounted to system by FUSE service processes and match somebody with somebody
On the external storage mount point put.
Now, the step 13 of the embodiment of the present invention may particularly include:
Routing information of the described first virtual external storage after carry operation is completed is added, is obtained currently available
Virtual external storage information.
It should be noted that currently available virtual external storage information can stored record in the form of a list.
Specifically, when physics external storage is added, the step 12 of the embodiment of the present invention also may particularly include:
, will be virtual external corresponding to the physics external storage when listening to the addition of physics external storage
Storage device carry is to the second default mount point.
Here, the addition of physics external storage is listened to, that is, terminal monitoring is to there is physics external storage,
Such as SD card, it is inserted into terminal.
It should be noted that when the addition for listening to physics external storage, and the physics external storage is supported
When being created as virtual external storage, carry is carried out to virtual external storage corresponding to the physical storage device.
Now, the step 13 of the embodiment of the present invention also may particularly include:
Routing information of the virtual external storage after carry operation is completed is added, is obtained currently available virtual
External storage information.
Specifically, when physics external storage is removed, the step 12 of the embodiment of the present invention also may particularly include:
, will be virtual external corresponding to the physics external storage when listening to the removal of physics external storage
Storage device unloads.
It should be noted that listen to the removal of physics external storage, it is, terminal monitoring is to having installed in eventually
Physics external storage on end, such as SD card, is pulled out from the terminal.
Now, the step 13 of the embodiment of the present invention also may particularly include:
Routing information corresponding to deleting the virtual external storage, obtains currently available virtual external storage
Information.
Preferably, step 14 described in the embodiment of the present invention can also further comprise:
When receiving storage device access request, the currently available virtual external storage information is inquired about, is obtained
Take active user's storage device access strategy;
Explanation is needed exist for, storage device access request can be that user is initiated by application program, can also
It is, what the operating system of terminal was initiated in itself.The storage device access request is usually the access to virtual external storage
Request.
Explanation is needed exist for, currently available virtual external storage information can include:Virtual external storage
Routing information of the quantity of equipment, the capacity of virtual external storage and virtual external storage etc..
Here, the capacity of virtual external storage specifically may include the residual capacity of virtual external storage, certainly
It may also include the total capacity of virtual external storage or use capacity.
Routing information can include the virtual route information and actual physics routing information of virtual external storage.This
In virtual route information, that is, the mount point information of virtual external storage.
It should be noted that currently available virtual external storage information can store answering for setting for user
With user is shown in program in the form of graphic interface, checked for user, and active user's storage device access plan is set
Slightly.
According to active user's storage device access strategy, by the virtual access path of the storage device access request
Be converted to actual physics path;
Here, active user's storage device access strategy mainly sets user storage device access privileges, it is,
When receiving storage device access request, can be determined virtual external to deposit multiple according to active user's storage device access strategy
The virtual external storage preferentially accessed in storage equipment.
Here, active user's storage device access strategy includes the metadata information of virtual external storage, also
It is the actual physics path of physical storage device corresponding to virtual external storage.
The storage device access request is sent to physical storage device corresponding to the actual physics path.
Here, the storage device access request of the embodiment of the present invention is write request, it is, request writes data to and deposited
Store up equipment.
Certainly, storage device access request can also be read requests, it is, request is from the storage device to be accessed
Read data.It should be noted that when storage device access request is read requests, according to the virtual external storage of current record
The metadata information of equipment, physical storage device corresponding to read requests is obtained, sending the reading to the physical storage device please
Ask.
Preferably, the management method of the virtual external storage of the embodiment of the present invention can also further comprise:
Receive Client-initiated storage device inquiry request;
Explanation is needed exist for, terminal can receive user by storing what the application program set provided for user
The storage device inquiry request initiated is checked on the graphical interfaces of currently available virtual external storage list for user.
Currently available virtual external storage information is returned to the user.
The management method of virtual external storage provided in an embodiment of the present invention, passes through the state in physical storage device
When changing, the routing information after basic handling operation is carried out to virtual external storage corresponding to physical storage device
Upgrade in time, be easy to the unified management to multiple virtual external storages in terminal so that user-accessible is multiple virtual
External storage, lift Consumer's Experience.
Second embodiment
As shown in Fig. 2 the embodiment of the present invention provides a kind of managing device of virtual external storage, including:
First monitors module 21, for monitoring the state change of physical storage device;
It should be noted that physical storage device includes:Physics external storage and physics built in memory device.Example
Such as, physics external storage can be SD card etc., and physics built in memory device can be welded to built-in on terminal mainboard
Memory etc..
Processing module 22 is performed, for the state change according to the physical storage device, to the physical storage device
Corresponding virtual external storage carries out the basic handling operation of file system;
Here, the basic handling operation of file system includes:Carry operates or unloading operation.
Here, carry refers to a storage device being mounted in an already present catalogue.
Information updating module 23, for updating the virtual external storage after the basic handling operation is completed
Routing information, obtain currently available virtual external storage information;
It should be noted that the routing information of virtual external storage refers to the carry mesh of virtual external storage
Record, that is, carry path, it is, the mount point information of virtual external storage.User's passage path information can visit
Ask the content in virtual external storage.
Access modules 24, for when receiving storage device access request, according to described currently available virtual external
Storing device information, confirm to allow the physical storage device accessed, sending the storage device to the physical storage device visits
Ask request.
Explanation is needed exist for, storage device access request can be that user is initiated by application program, can also
It is, what the operating system of terminal was initiated in itself.The storage device access request is usually the access to virtual external storage
Request.
It should be noted that storage device access request can include:The read-write of file, deletion, copy, newly-built etc. please
Ask.For example, the image file for completion of taking pictures is asked addition by the camera applications of terminal, that is, write to virtual external storage and set
It is standby.
Specifically, the managing device of the virtual external storage of the embodiment of the present invention also may particularly include:
Second monitors module, the formatted requests to the physical storage device initiated for monitoring users;
It should be noted that terminal monitor physical storage device state change while, can also monitoring users pass through
The form that physics external storage is formatted as to built in memory device that application program for storage device management is initiated
Change request.
Format processing module, for according to the formatted requests to the physical storage device carry out corresponding to form
Change is handled.
Here, the second monitoring module can also listen to the subregion change of physical storage device.Physics external storage
The physics external storage being attached in terminal can be divided into the storage for storing files in different types system by subregion
Regional space.
It should be noted that the state change of physical storage device can include:Physics built in memory device is created as
Three kinds of feelings of removal of first virtual external storage, the addition of physics external storage and physics external storage
Condition.
That is, specifically, the execution processing module 22 may particularly include:
First performs processing unit, and being created as the first virtual external storage for listening to physics built in memory device sets
When standby, by the described first virtual external storage carry to the first default mount point.
It should be noted that when terminal system initializes, first performs processing unit can be newly-built one under predetermined directory
Virtual external storage, it is mounted to afterwards by preset service process on the external storage mount point of system configuration.
For example, the operating system of terminal is Android M systems, during system initialization, first performs processing unit
The external storage of meeting newly-built emulated type under the multimedia catalogue of shared data subregion, is serviced by FUSE
Process is mounted on the external storage mount point of system configuration.
Now, the information updating module 23 of the embodiment of the present invention can specifically be corresponded to and included:
First information updating block, for adding road of the described first virtual external storage after carry operation is completed
Footpath information, obtain currently available virtual external storage information.
It should be noted that currently available virtual external storage information can stored record in the form of a list.
Specifically, the execution processing module 22 also may particularly include:
Second performs processing unit, for when listening to the addition of physics external storage, the physics is external
Virtual external storage carry corresponding to storage device is to the second default mount point.
Here, the addition of physics external storage is listened to, that is, terminal monitoring is to there is physics external storage,
Such as SD card, it is inserted into terminal.
It should be noted that when the addition for listening to physics external storage, and the physics external storage is supported
When being created as virtual external storage, carry is carried out to virtual external storage corresponding to the physical storage device.
Now, the information updating module 23 of the embodiment of the present invention can specifically be corresponded to and included:
Second information updating unit, for adding path letter of the virtual external storage after carry operation is completed
Breath, obtains currently available virtual external storage information.
Specifically, the execution processing module 22 also may particularly include:
3rd performs processing unit, for when listening to the removal of physics external storage, the physics is external
Virtual external storage unloading corresponding to storage device.
It should be noted that listen to the removal of physics external storage, it is, terminal monitoring is to having installed in eventually
Physics external storage on end, such as SD card, is pulled out from the terminal.
Now, the information updating module 23 of the embodiment of the present invention can specifically be corresponded to and included:
3rd information updating unit, for deleting the virtually routing information corresponding to external storage, obtain current
Available virtual external storage information.
Specifically, the access modules 24 of the embodiment of the present invention also may particularly include:
Query unit, for when receiving storage device access request, inquiry is described currently available virtual external to deposit
Facility information is stored up, obtains active user's storage device access strategy;
Explanation is needed exist for, storage device access request can be that user is initiated by application program, can also
It is, what the operating system of terminal was initiated in itself.The storage device access request is usually the access to virtual external storage
Request.
Explanation is needed exist for, currently available virtual external storage information can include:Virtual external storage
Routing information of the quantity of equipment, the capacity of virtual external storage and virtual external storage etc..
Here, the capacity of virtual external storage specifically may include the residual capacity of virtual external storage, certainly
It may also include the total capacity of virtual external storage or use capacity.
Routing information can include the virtual route information and actual physics routing information of virtual external storage.This
In virtual route information, that is, the mount point information of virtual external storage.
It should be noted that currently available virtual external storage information can store answering for setting for user
With user is shown in program in the form of graphic interface, checked for user, and active user's storage device access plan is set
Slightly.
Path converting, for according to active user's storage device access strategy, by the storage device access
The virtual access path integration of request is actual physics path;
Here, active user's storage device access strategy mainly sets user storage device access privileges, it is,
When receiving storage device access request, can be determined virtual external to deposit multiple according to active user's storage device access strategy
The virtual external storage preferentially accessed in storage equipment.
Here, active user's storage device access strategy includes the metadata information of virtual external storage, also
It is the actual physics path of physical storage device corresponding to virtual external storage.
Access unit, for sending the storage device access to physical storage device corresponding to the actual physics path
Request.
Here, the storage device access request of the embodiment of the present invention is write request, it is, request writes data to and deposited
Store up equipment.
Certainly, storage device access request can also be read requests, it is, request is from the storage device to be accessed
Read data.It should be noted that when storage device access request is read requests, according to the virtual external storage of current record
The metadata information of equipment, physical storage device corresponding to read requests is obtained, sending the reading to the physical storage device please
Ask.
Preferably, the device of the virtual external storage of the embodiment of the present invention also may particularly include:
Receiving module, receive Client-initiated storage device inquiry request;
Explanation is needed exist for, terminal can receive user by storing what the application program set provided for user
The storage device inquiry request initiated is checked on the graphical interfaces of currently available virtual external storage list for user.
Information return module, currently available virtual external storage information is returned to the user.
The embodiment of the present invention also provides a kind of terminal, includes the pipe of the virtual external storage as described in above-mentioned embodiment
Manage device.
As shown in figure 3, the system of the terminal for the managing device including virtual external storage of the embodiment of the present invention
Frame diagram.
It should scheme to briefly describe the management for forming virtual external storage in the system framework figure of the terminal below
The annexation of the module of device.
The managing device of virtual external storage includes:Monitor module, access modules, perform processing module, information more
New module and the application program (not shown) for showing user's storage facilities.
Wherein, information updating module difference connected reference module and execution processing module, module is monitored with performing processing mould
Block connects.
It should be noted that currently available storage device is stored with information updating module with tabular form, it is,
Include storage device list in information updating module.
Here, the first monitoring module and second that monitoring module is included described in second embodiment monitors module, that is,
Say, there is the monitoring module the first monitoring module and second to monitor the function of module simultaneously.
When monitoring module listens to the state change of physics external storage, by the state of physics external storage
Change notifies, to processing module is performed, to perform state of the processing module according to physics external storage in the form of notification message
Change carries out the basic handling operation of file system.
For example, performing processing module parsing monitors the notification message that module is sent, judge that its type of message is deposited for addition
When storing up equipment, then carry storage device.
Afterwards, processing module transmission message informing information updating module is performed to deposit virtually external corresponding to the storage device
Storage device path is added in current storage device list.
Below should figure illustrate user by application program initiate storage device access request implementation process.
First, user initiates storage device access request by application APP to access modules;
It should be noted that the storage device access request is sent to visit through function library Libc by FUSE service processes
Ask module.
Then, information updating module inquires about storage device list according to storage device access request, obtains active user and deposits
Store up equipment access strategy;
Afterwards, access modules according to active user's storage device access strategy by the virtual access of storage device access request
Path integration is actual physics path, and sends the storage device to physical storage device corresponding to the actual physics path
Access request;
Explanation is needed exist for, storage device access request passes through JFS EXT4 according to actual physics path
Stored device drives are sent to physical storage device corresponding to actual physics path.
Finally, physical storage device carries out response processing to Client-initiated storage device access request, and returns to response
As a result the user is given.
For example, the storage device access request that user is initiated by application program is storage, that is, image file is write,
Then physical storage device stores according to storage device access request to image file, if successfully storing, will store successfully
Result return to user;If storage failure, the result for storing failure is returned into user.
The device of virtual external storage provided in an embodiment of the present invention, set by the first monitoring module in physical store
When standby state changes, perform processing module and virtual external storage corresponding to physical storage device is located substantially
After reason operation, information updating module upgrades in time to the routing information of virtual external storage, is easy to more in terminal
The unified management of individual virtual external storage so that user can access multiple virtual external storages by access modules,
Lift Consumer's Experience.
Described above is the preferred embodiment of the present invention, it is noted that for those skilled in the art
For, on the premise of principle of the present invention is not departed from, some improvements and modifications can also be made, these improvements and modifications
It should be regarded as protection scope of the present invention.
Claims (9)
- A kind of 1. management method of virtual external storage, it is characterised in thatMonitor the state change of physical storage device;According to the state change of the physical storage device, virtual external storage corresponding to the physical storage device is entered The basic handling operation of row file system;Routing information of the virtual external storage after the basic handling operation is completed is updated, is obtained currently available Virtual external storage information;When receiving storage device access request, according to the currently available virtual external storage information, confirm to permit Perhaps the physical storage device accessed, the storage device access request is sent to the physical storage device.
- 2. the management method of virtual external storage according to claim 1, it is characterised in that methods described is also wrapped Include:The formatted requests to the physical storage device that monitoring users are initiated;Formatting corresponding to being carried out according to the formatted requests to the physical storage device is handled.
- 3. the management method of virtual external storage according to claim 1, it is characterised in that deposited according to the physics The state change of equipment is stored up, the basic place of file system is carried out to virtual external storage corresponding to the physical storage device The step of reason operation, includes:It is virtual external by described first when listening to physics built in memory device and being created as the first virtual external storage Storage device carry is to the first default mount point;Routing information of the renewal virtual external storage after the basic handling operation is completed, obtains currently may be used The step of virtual external storage information, includes:Routing information of the described first virtual external storage after carry operation is completed is added, is obtained currently available virtual External storage information.
- 4. the management method of virtual external storage according to claim 1, it is characterised in that deposited according to the physics The state change of equipment is stored up, the basic place of file system is carried out to virtual external storage corresponding to the physical storage device The step of reason operation, includes:When listening to the addition of physics external storage, by virtual external storage corresponding to the physics external storage Hanging equipment is loaded onto the second default mount point;Routing information of the renewal virtual external storage after the basic handling operation is completed, obtains currently may be used The step of virtual external storage information, includes:Routing information of the virtual external storage after carry operation is completed is added, is obtained currently available virtual external Storing device information.
- 5. the management method of virtual external storage according to claim 1, it is characterised in that deposited according to the physics The state change of equipment is stored up, the basic place of file system is carried out to virtual external storage corresponding to the physical storage device The step of reason operation, includes:When listening to the removal of physics external storage, by virtual external storage corresponding to the physics external storage Equipment unloads;Routing information of the renewal virtual external storage after the basic handling operation is completed, obtains currently may be used The step of virtual external storage information, includes:Routing information corresponding to deleting the virtual external storage, obtain currently available virtual external storage letter Breath.
- 6. the management method of virtual external storage according to claim 1, it is characterised in that set receiving storage During standby access request, according to the currently available virtual external storage information, the physical store for confirming to allow to access is set It is standby, include to the step of physical storage device transmission storage device access request:When receiving storage device access request, the currently available virtual external storage information is inquired about, obtains and works as Preceding user storage device access strategy;According to active user's storage device access strategy, by the virtual access path integration of the storage device access request For actual physics path;The storage device access request is sent to physical storage device corresponding to the actual physics path.
- 7. the management method of virtual external storage according to claim 1, it is characterised in that methods described is also wrapped Include:Receive Client-initiated storage device inquiry request;Currently available virtual external storage information is returned to the user.
- A kind of 8. managing device of virtual external storage, it is characterised in that including:First monitors module, for monitoring the state change of physical storage device;Processing module is performed, for the state change according to the physical storage device, to corresponding to the physical storage device Virtual external storage carries out the basic handling operation of file system;Information updating module, for updating path letter of the virtual external storage after the basic handling operation is completed Breath, obtains currently available virtual external storage information;Access modules, for when receiving storage device access request, being set according to the currently available virtual external storage Standby information, confirm to allow the physical storage device accessed, the storage device access request is sent to the physical storage device.
- A kind of 9. terminal, it is characterised in that including:The managing device of virtual external storage as claimed in claim 8.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610647943.2A CN107704307A (en) | 2016-08-09 | 2016-08-09 | A kind of management method, device and the terminal of virtual external storage |
PCT/CN2017/090396 WO2018028321A1 (en) | 2016-08-09 | 2017-06-27 | Method and apparatus for managing virtual external storage device, and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610647943.2A CN107704307A (en) | 2016-08-09 | 2016-08-09 | A kind of management method, device and the terminal of virtual external storage |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107704307A true CN107704307A (en) | 2018-02-16 |
Family
ID=61162662
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610647943.2A Pending CN107704307A (en) | 2016-08-09 | 2016-08-09 | A kind of management method, device and the terminal of virtual external storage |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107704307A (en) |
WO (1) | WO2018028321A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109213447A (en) * | 2018-08-23 | 2019-01-15 | 郑州云海信息技术有限公司 | A kind of SAN storage volume carry, discharging method and system |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113296758B (en) * | 2021-03-15 | 2022-11-25 | 上海爱数信息技术股份有限公司 | Front-end component library construction method and device and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100082897A1 (en) * | 2008-09-26 | 2010-04-01 | Hitachi, Ltd. | Load sharing method and system for computer system |
CN102541475A (en) * | 2012-03-12 | 2012-07-04 | 成都市华为赛门铁克科技有限公司 | Data storage method and data storage device |
CN103686379A (en) * | 2013-12-18 | 2014-03-26 | 青岛海信电器股份有限公司 | Playing method and device for multi-media file, and television |
CN104951243A (en) * | 2014-03-28 | 2015-09-30 | 伊姆西公司 | Storage expansion method and device in virtualized storage system |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101882058A (en) * | 2010-05-26 | 2010-11-10 | 孟智平 | Method for virtually dividing storage device into a plurality of devices |
TWI556174B (en) * | 2014-03-05 | 2016-11-01 | 威盛電子股份有限公司 | System and method for assigning virtual functions and management host thereof |
CN104778222B (en) * | 2015-03-23 | 2017-12-05 | 四川长虹电器股份有限公司 | Media library based on USB storage device is established and update method |
CN104699508B (en) * | 2015-03-25 | 2017-08-22 | 南京大学 | Rapid deployment and renewal virtual environment system and its method in cloud computing platform |
-
2016
- 2016-08-09 CN CN201610647943.2A patent/CN107704307A/en active Pending
-
2017
- 2017-06-27 WO PCT/CN2017/090396 patent/WO2018028321A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100082897A1 (en) * | 2008-09-26 | 2010-04-01 | Hitachi, Ltd. | Load sharing method and system for computer system |
CN102541475A (en) * | 2012-03-12 | 2012-07-04 | 成都市华为赛门铁克科技有限公司 | Data storage method and data storage device |
CN103686379A (en) * | 2013-12-18 | 2014-03-26 | 青岛海信电器股份有限公司 | Playing method and device for multi-media file, and television |
CN104951243A (en) * | 2014-03-28 | 2015-09-30 | 伊姆西公司 | Storage expansion method and device in virtualized storage system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109213447A (en) * | 2018-08-23 | 2019-01-15 | 郑州云海信息技术有限公司 | A kind of SAN storage volume carry, discharging method and system |
Also Published As
Publication number | Publication date |
---|---|
WO2018028321A1 (en) | 2018-02-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105338078B (en) | Date storage method and device for storage system | |
EP3495981B1 (en) | Directory deletion method and device, and storage server | |
CN102611745B (en) | On-line file moving method, device and system | |
CN102346740B (en) | A kind of file synchronisation method, electronic equipment and synchronization system | |
CN107885804A (en) | Database synchronization method, application server and computer-readable recording medium | |
CN106302609B (en) | Access method and device | |
US20090307245A1 (en) | Uninterrupted Data Access During the Migration of Data Between Physical File Systems | |
CN102609466B (en) | Method and system for controlling shared memory | |
CN108234554B (en) | Cloud file editing method and device | |
WO2017036183A1 (en) | Differential upgrade package processing method and device, upgrade method, system and device | |
CN104158858A (en) | Method and system for accessing distributed cluster file system | |
CN109684282A (en) | A kind of method and device constructing metadata cache | |
US9015526B2 (en) | Restoring method and computer system | |
CN108255989A (en) | Picture storage method, device, terminal device and computer storage media | |
CN103197987A (en) | Data backup method, data recovery method and cloud storage system | |
CN107704307A (en) | A kind of management method, device and the terminal of virtual external storage | |
CN104035728A (en) | Hard disk hot plug handling method, device and node | |
CN113448946B (en) | Data migration method and device and electronic equipment | |
CN104517067A (en) | Method, device and system for data access | |
US20140281125A1 (en) | Systems and methods for in-place reorganization of device storage | |
CN103092768A (en) | Method and device of data processing in application system | |
CN107148612A (en) | A kind of method and apparatus of extending user subregion | |
WO2016188200A1 (en) | Method and device for implementing partition switching | |
CN106844261A (en) | The method and apparatus of hot plug is realized in recovery mode | |
CN109669815A (en) | A kind of method and system restored by the long-range Mapping implementation Backup Data of LUN |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |