CN107656837A - A kind of system and method for realizing user partition recovery to sharing smart machine - Google Patents

A kind of system and method for realizing user partition recovery to sharing smart machine Download PDF

Info

Publication number
CN107656837A
CN107656837A CN201710888715.9A CN201710888715A CN107656837A CN 107656837 A CN107656837 A CN 107656837A CN 201710888715 A CN201710888715 A CN 201710888715A CN 107656837 A CN107656837 A CN 107656837A
Authority
CN
China
Prior art keywords
user
smart machine
file system
data
recovery
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
Application number
CN201710888715.9A
Other languages
Chinese (zh)
Inventor
宋志峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Show Leopard Technology Co Ltd
Original Assignee
Shenzhen Show Leopard Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Show Leopard Technology Co Ltd filed Critical Shenzhen Show Leopard Technology Co Ltd
Priority to CN201710888715.9A priority Critical patent/CN107656837A/en
Publication of CN107656837A publication Critical patent/CN107656837A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1438Restarting or rejuvenating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1435Saving, restoring, recovering or retrying at system level using file system or storage system metadata

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

A kind of system and method for realizing user partition recovery to sharing smart machine, be advantageous to can either to remove previous utilization private data that person leaves after so as to recover user partition, and can enough retains the data that system is pre-set and is not destroyed, it can also avoid because frequently to the wafer damage or the lost of life caused by the erasing operation of user partition flash chip, and the present invention is far above traditional factory reset in terms of the speed of user data is removed.A kind of system for realizing user partition recovery to sharing smart machine, including AUFS file system, for the AUFS file system between underlying file systems and top layer Virtual File System, the top layer Virtual File System connects the underlying file systems by the AUFS file system.

Description

A kind of system and method for realizing user partition recovery to sharing smart machine
Technical field
The present invention relates to control or the place that the user partition in smart machine is data subregions or subscriber data file subregion Reason technology, particularly a kind of system and method for realizing user partition recovery to sharing smart machine, is advantageous to remove For the private data that previous utilization person leaves after so as to recover user partition, and can enough retains data that system is pre-set not It is destroyed, additionally it is possible to avoid because frequently to the wafer damage or the lost of life caused by the erasing operation of user partition.
Background technology
Conception for sharing smart machine, the inventors discovered that, for sharing smart machine, such as shared mobile phone etc., Often relate to different people and successively use same smart mobile phone, and everyone the always user in mobile phone in use divides Area leaves private data, and these private datas are simultaneously unnecessarily stayed in mobile phone, or even previous utilization person is reluctant to allow and made after User sees or utilized that this just needs the private in user partition is removed immediately after everyone terminates using shared smart machine Use data.At present, known recovery user partition (data subregions) technology is completed using the method for " factory reset ". User enters system and sets interface, selects factory reset, clicks on and determines.System can reboot into reforestation practices, by data Subregion carries out whole erasing operations, to reach the purpose of " erasing user data, recover smart machine original state ".But Following defect or deficiency be present in this mode for recovering user partition:1. a pair whole subregion is wiped, very time-consuming; The erasing times of 2.Flash chips are limited, frequently carry out erasing operation to flash, flash chip can be caused to damage It is bad.
The content of the invention
The present invention is for defect or deficiency present in prior art, there is provided a kind of to realize user point to shared smart machine The system and method that area recovers, the private data that the person that can either remove previous utilization leaves after so as to recover user partition, And can enough retains the data that system is pre-set and is not destroyed, additionally it is possible to avoids because of the frequently wiping to user partition flash chip Wafer damage or the lost of life caused by division operation, and the present invention is far above tradition in terms of the speed of user data is removed Factory reset.
Technical scheme is as follows:
A kind of system for realizing that user partition recovers to sharing smart machine, it is characterised in that including AUFS file system, Between underlying file systems and top layer Virtual File System, the top layer Virtual File System leads to the AUFS file system Cross the AUFS file system and connect the underlying file systems.
The underlying file systems include the file system of bottom first, the file system of bottom second and bottom alternative document system System, the file system of bottom first, the file system of bottom second and bottom alternative document system connect the AUFS texts respectively Part system.
AUFS file system drivers are provided with the system that the shared smart machine carries.
The user partition of the shared smart machine is that former data subregions are mapped to Reading Sections or by carry to be read-only Subregion, it is that the readable writeable subregion of data file is (therein to create a data_rw subregion in the shared smart machine Data_rw can be write as other forms, skilled artisans appreciate that similar directory name herein as directory name In usual English description, and it will be appreciated that similar description is the convenience or custom in order to describe, it is not unique, and Can change), and User Catalog i.e. user_rw catalogues are established inside the data_rw subregions, the AUFS files system The former data subregions and the user_rw catalogues are merged into new userdata subregions by system, and all write operations of user will reflect User_rw catalogues are mapped to, when needing to realize that user partition recovers to shared smart machine, it is only necessary to by the user_rw mesh Record is deleted, and both can guarantee that quick recovery user partition, and and can retains the content of former data subregions.
The shared smart machine is shared mobile phone.
A kind of method for realizing user partition recovery to sharing smart machine, it is characterised in that including the recovery operation stage And initial phase, the recovery operation stage start including recovery operation;Sent to system and recover user partition instruction;System After bottom receives or read the recovery user partition instruction, it is saved into predeterminated position or is write in the predeterminated position Enter to recover user partition mark;System reboot enters the initial phase;The initial phase starts including initialization; System carry AUFS file system drivers;After system start completion, according to the recovery user partition mark detected or User_rw catalogues are deleted in the recovery user partition instruction;The user partition of the shared smart machine is former data subregions quilt It is mapped to Reading Sections or is Reading Sections by carry, opens up or set a data_rw points in the shared smart machine Area is the readable writeable subregion of data file, and User Catalog i.e. user_rw catalogues, institute are established inside the data_rw subregions It is new userdata subregions to state AUFS file system the former data subregions and the user_rw catalogues are combined into carry, wherein The former data subregions are read-only i.e. former data_ro, and the user_rw catalogues are readable writeable, and all write operations of user will It is mapped to user_rw catalogues.
The technique effect of the present invention is as follows:The invention belongs to user partition fast recovery technique, the technology can not only be quick Recover user partition, moreover it is possible to retain the data pre-set and app, simultaneously, moreover it is possible to which significant shadow is not caused to flash life-span Ring.From the point of view of system perspective, file system is to carry out tissue and distribution to the space of file-storage device, is responsible for file storage simultaneously The system that the file of deposit is protected and retrieved.
In systems, AUFS file system drivers are added.Former data subregions are mapped to Reading Sections, open up one in addition User Catalog user_rw is established in data_rw subregions, the inside, and using AUFS file system, data and user_rw are merged into newly Userdata subregions.Meanwhile all write operation of user will be mapped to user_rw catalogues.So, when needs recover to use During the subregion of family, it is only necessary to delete user_rw.Both quick recovery user partition had been can guarantee that, and can retains original data points The content in area.
Brief description of the drawings
Fig. 1 is to implement a kind of system structure diagram that user partition recovery is realized to sharing smart machine of the present invention.
Reference lists as follows:The file system of 1- bottoms first or NFS file system (NFS is NFS, network file system);(EXT4 is forth generation extension file system for the file system of 2- bottoms second or EXT4 file system System, the fourth extended file system);3- bottom alternative document systems;(AUFS is 4-AUFS file system A kind of Union File System union file systems, are called Another UnionFS, are Alternative later UnionFS, the i.e. advanced union file systems of Advance UnionFS are still later, some catalogues in sequence and can be weighed Limit mount is integrated into a catalogue and showed);(VFS is for 5- top layers Virtual File System or VFS Virtual File Systems Virtual File System, virtual file system).
Embodiment
Below in conjunction with the accompanying drawings (Fig. 1) the present invention will be described.
Fig. 1 is to implement a kind of system structure diagram that user partition recovery is realized to sharing smart machine of the present invention.Such as Shown in Fig. 1, by the file system such as EXT4, adding AUFS systems intermediate layer, one is carried out to the file system of bottom Unified packaging.The file operation (VFS Virtual File Systems) of all top layers can all first pass through AUFS layers and be handled, by AUFS Layer determines how file should be written and read operation.This ensures that all file operations can be controlled by AUFS layers System.
The recovery operation stage includes, and when system needs to recover user partition data, can be sent to bottom and recover subregion Instruction, bottom can write corresponding mark to a certain position, then restart system after the instruction is received.This recovering mark It can be judged in system initialisation phase.
Initial phase includes, system carry AUFS file system drivers first, and then waiting system starts the mark terminated Will, thereafter, then detect whether to recover the mark of user partition, if detecting the mark, delete the user_ previously mapped RW catalogues, it is new data subregions by data and user_RW joint carries, wherein data divides then using AUFS file system Area is ro (read-only), and user_RW is rw (readable writeable).It is all executable in each start to initialize flow.
As shown in figure 1, a kind of system for realizing user partition recovery to sharing smart machine, including AUFS file system 4, The AUFS file system 4 is between underlying file systems and top layer Virtual File System 5, the top layer Virtual File System 5 connect the underlying file systems by the AUFS file system 4.The underlying file systems include the first file of bottom system System 1, the second file system of bottom 2 and bottom alternative document system 3, first file system of bottom 1, the second file of bottom system System 2 and bottom alternative document system 3 connect the AUFS file system 4 respectively.In the system that the shared smart machine carries It is provided with AUFS file system drivers.The user partition of the shared smart machine is that former data subregions are mapped to Reading Sections Or by carry be Reading Sections, it is that data file is readable writeable that a data_rw subregion is created in the shared smart machine (data_rw therein can be write as other forms, skilled artisans appreciate that herein to subregion as directory name Usual English description in similar directory name, and it will be appreciated that similar description is the convenience or custom in order to describe, its It is not unique, but can change), and User Catalog i.e. user_rw catalogues are established inside the data_rw subregions, The former data subregions and the user_rw catalogues are merged into new userdata subregions, Yong Husuo by the AUFS file system Some write operations will be mapped to user_rw catalogues, when needing to realize that user partition recovers to shared smart machine, it is only necessary to will The user_rw directory deletes, both can guarantee that quick recovery user partition, and and can retains the content of former data subregions.Institute It is shared mobile phone to state shared smart machine.
A kind of method for realizing user partition recovery to sharing smart machine, including recovery operation stage and initialization rank Section, the recovery operation stage start including recovery operation;Sent to system and recover user partition instruction;System bottom receives Or after reading the recovery user partition instruction, it is saved into predeterminated position or in the predeterminated position write recovery user Subregion sign;System reboot enters the initial phase;The initial phase starts including initialization;System carry AUFS file system drivers;After system start completion, according to the recovery user partition mark detected or the recovery User_rw catalogues are deleted in user partition instruction;The user partition of the shared smart machine is that former data subregions are mapped to only Reading subregion is Reading Sections by carry, and it is that data file can that a data_rw subregion is created in the shared smart machine Writeable subregion is read, and User Catalog i.e. user_rw catalogues are established inside the data_rw subregions, the AUFS file system It is new userdata subregions by the former data subregions and user_rw catalogues joint carry, wherein the former data subregions For read-only i.e. former data_ro, the user_rw catalogues are readable writeable, and all write operations of user will be mapped to user_rw mesh Record.
It is hereby stated that described above contribute to skilled artisan understands that the invention, but not limit the present invention The protection domain of creation.It is any that equivalent substitution described above, modification are improved without departing from the invention substantive content And/or the implementation deleted numerous conform to the principle of simplicity and carried out, each fall within the protection domain of the invention.

Claims (6)

1. a kind of system for realizing user partition recovery to sharing smart machine, it is characterised in that including AUFS file system, institute AUFS file system is stated between underlying file systems and top layer Virtual File System, the top layer Virtual File System passes through The AUFS file system connects the underlying file systems.
2. the system according to claim 1 for realizing user partition recovery to sharing smart machine, it is characterised in that described Underlying file systems include the file system of bottom first, the file system of bottom second and bottom alternative document system, the bottom First file system, the file system of bottom second and bottom alternative document system connect the AUFS file system respectively.
3. the system according to claim 1 for realizing user partition recovery to sharing smart machine, it is characterised in that described AUFS file system drivers are provided with the system that shared smart machine carries.
4. the system according to claim 1 for realizing user partition recovery to sharing smart machine, it is characterised in that described The user partition of shared smart machine is that former data subregions are mapped to Reading Sections or are Reading Sections by carry, described common The establishment readable writeable subregion of one data_rw subregion i.e. data file in smart machine is enjoyed, and inside the data_rw subregions User Catalog i.e. user_rw catalogues are established, the AUFS file system closes the former data subregions and the user_rw catalogues And be new userdata subregions, all write operations of user will be mapped to user_rw catalogues, real to shared smart machine when needing During current family partition recovery, it is only necessary to by the user_rw directory deletes, both can guarantee that quick recovery user partition, again The content of former data subregions can be retained.
5. the system according to claim 1 for realizing user partition recovery to sharing smart machine, it is characterised in that described Shared smart machine is shared mobile phone.
A kind of 6. method for realizing that user partition recovers to sharing smart machine, it is characterised in that including the recovery operation stage and Initial phase, the recovery operation stage start including recovery operation;Sent to system and recover user partition instruction;System bottom After layer receives or read the recovery user partition instruction, it is saved into predeterminated position or is write in the predeterminated position Recover user partition mark;System reboot enters the initial phase;The initial phase starts including initialization;System System carry AUFS file system drivers;After system start completion, according to the recovery user partition mark detected or institute State and recover user partition instruction deletion user_rw catalogues;The user partition of the shared smart machine is that former data subregions are reflected It is mapped to Reading Sections or is Reading Sections by carry, it is data that a data_rw subregion is created in the shared smart machine The readable writeable subregion of file, and User Catalog i.e. user_rw catalogues are established inside the data_rw subregions, the AUFS texts It is new userdata subregions that the former data subregions and the user_rw catalogues are combined carry by part system, wherein the original Data subregions are read-only i.e. former data_ro, and the user_rw catalogues are readable writeable, and all write operations of user will be mapped to User_rw catalogues.
CN201710888715.9A 2017-09-27 2017-09-27 A kind of system and method for realizing user partition recovery to sharing smart machine Pending CN107656837A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710888715.9A CN107656837A (en) 2017-09-27 2017-09-27 A kind of system and method for realizing user partition recovery to sharing smart machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710888715.9A CN107656837A (en) 2017-09-27 2017-09-27 A kind of system and method for realizing user partition recovery to sharing smart machine

Publications (1)

Publication Number Publication Date
CN107656837A true CN107656837A (en) 2018-02-02

Family

ID=61116276

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710888715.9A Pending CN107656837A (en) 2017-09-27 2017-09-27 A kind of system and method for realizing user partition recovery to sharing smart machine

Country Status (1)

Country Link
CN (1) CN107656837A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108804026A (en) * 2018-03-27 2018-11-13 深圳忆联信息系统有限公司 A kind of solid state disk scan full hard disk method and solid state disk

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050004925A1 (en) * 2003-05-07 2005-01-06 Nathaniel Stahl Copy-on-write mapping file system
CN1813253A (en) * 2003-05-07 2006-08-02 莱万塔公司 Detection and alerting of viruses in a shared read-only file system
CN1831701A (en) * 2005-03-11 2006-09-13 北京共创开源软件有限公司 Operation system protection method based on virtual file system
US20110231370A1 (en) * 2010-03-16 2011-09-22 Valerie Anita Aurora Mechanism for Unioning File Systems Using Fall-Through Directory Entries
CN102609448A (en) * 2012-01-10 2012-07-25 西北工业大学 Multi-user-version hierarchical document mapping method
CN105389228A (en) * 2015-11-03 2016-03-09 广东欧珀移动通信有限公司 Data partition repairing method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050004925A1 (en) * 2003-05-07 2005-01-06 Nathaniel Stahl Copy-on-write mapping file system
CN1813253A (en) * 2003-05-07 2006-08-02 莱万塔公司 Detection and alerting of viruses in a shared read-only file system
CN1831701A (en) * 2005-03-11 2006-09-13 北京共创开源软件有限公司 Operation system protection method based on virtual file system
US20110231370A1 (en) * 2010-03-16 2011-09-22 Valerie Anita Aurora Mechanism for Unioning File Systems Using Fall-Through Directory Entries
CN102609448A (en) * 2012-01-10 2012-07-25 西北工业大学 Multi-user-version hierarchical document mapping method
CN105389228A (en) * 2015-11-03 2016-03-09 广东欧珀移动通信有限公司 Data partition repairing method and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李涛等: "具有事件恢复功能的文件系统的研究与实现", 《计算机科学》 *
虞云翔: "嵌入式Linux系统中Overlay文件系统的实现", 《微电子学与计算机》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108804026A (en) * 2018-03-27 2018-11-13 深圳忆联信息系统有限公司 A kind of solid state disk scan full hard disk method and solid state disk
CN108804026B (en) * 2018-03-27 2022-02-18 深圳忆联信息系统有限公司 Solid state disk full-disk scanning method and solid state disk

Similar Documents

Publication Publication Date Title
CN102035881B (en) Data caching method of cloud storage system
CN107247619B (en) Live migration of virtual machine method, apparatus, system, storage medium and equipment
US9189168B2 (en) Data migration system and data migration method
US7558907B2 (en) Virtual memory card controller
CN106201357A (en) The construction method of a kind of storage pool and system
CN106569738B (en) A kind of method and device for deleting cascade snapshot
CN103973731B (en) The recycle bin management method and device of a kind of cloud storage
CN103533096B (en) A kind of network card interface binding method and device
CN105446826A (en) Virtual machine backup and recovery method and device
CN104461687A (en) Virtual machine configuration information storage method and device
CN101944129A (en) Diskless system, workstation thereof, and building method of local root file by workstation
CN108681434A (en) A kind of container persistent storage hanging method
CN106874145A (en) A kind of asynchronous data backup method based on message queue
CN103037005A (en) File synchronization method and device of on-line storage service
CN104090913B (en) File operation method and device based on thin client
CN102122248B (en) Method for managing wire clip software of communication equipment
CN107656837A (en) A kind of system and method for realizing user partition recovery to sharing smart machine
CN105867962A (en) System upgrading method and device
CN102523301A (en) Method for caching data on client in cloud storage
CN107203331A (en) Write the method and device of data
CN109656888A (en) A kind of file complete deletion method and device based on linux file system
CN109697281A (en) The online method, apparatus and electronic equipment for merging document
CN102541872A (en) System and method for managing a plurality of albums
CN103778032A (en) Unix-like operating system backup method and device
CN105677579A (en) Data access method and system in cache system

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180202