CN107463652A - The connection control method and device of external storage equipment - Google Patents
The connection control method and device of external storage equipment Download PDFInfo
- Publication number
- CN107463652A CN107463652A CN201710622479.6A CN201710622479A CN107463652A CN 107463652 A CN107463652 A CN 107463652A CN 201710622479 A CN201710622479 A CN 201710622479A CN 107463652 A CN107463652 A CN 107463652A
- Authority
- CN
- China
- Prior art keywords
- file system
- exfat
- external storage
- storage equipment
- module
- 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
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/18—File system types
- G06F16/1847—File system types specifically adapted to static storage, e.g. adapted to flash memory or SSD
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
- G06F16/168—Details of user interfaces specifically adapted to file systems, e.g. browsing and visualisation, 2d or 3d GUIs
Abstract
The disclosure is directed to a kind of connection control method and device of external storage equipment.This method includes:Interface function of the loading for exFAT file system in the process for managing external storage equipment;Whether the file system for detecting external storage equipment is exFAT file system;In the case where file system is exFAT file system, check whether file system is wrong using interface function;In the case of file system is faultless, interface function carry external storage equipment is utilized.Embodiment of the disclosure in the process for managing external storage equipment by loading the interface function for exFAT file system, and detecting that the file system of external storage equipment is exFAT file system, and in the case of utilizing interface function inspection file system faultless, carry external storage equipment, so as to realize support of the terminal device to file system for exFAT external storage equipment.
Description
Technical field
This disclosure relates to field of computer technology, more particularly to the connection control method and dress of a kind of external storage equipment
Put.
Background technology
Nowadays, many users are liked the external storage equipment of all kinds of audio/video files deposit mobile terminal (for example, mobile phone)
In (for example, sdcard), film or TV play are watched with mobile terminal with realization.
However, vfat (the Virtual File that section terminating equipment (for example, android mobile phones) acquiescence is only supported
Allocation Table, Virtual File Allocation Table) file system of the file system as its external storage equipment, and this document
System only supports the maximum single file for being no more than 4GB, so that audio/video file (for example, high-definition movie) nothing more than 4GB
Method is copied in terminal device, causes user can not appreciate the movie or television that definition is high, capacity is big acute.
The content of the invention
To overcome problem present in correlation technique, the disclosure provide a kind of external storage equipment connection control method and
Device.
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of connection control method of external storage equipment, including:
Loading is directed to exFAT (Extended File Allocation in the process for managing external storage equipment
Table File System, extend file allocation table) file system interface function;
Whether the file system for detecting external storage equipment is exFAT file system;
In the case where the file system is exFAT file system, using the interface function, the file system is checked
Whether system is wrong;
In the case of the file system is faultless, using the interface function, external storage equipment described in carry.
For above method, in a kind of possible implementation, methods described also includes:
In the case where the file system is not exFAT file system, display format control;
In the case where the formatting controls are triggered, using the interface function, format the external storage and set
Standby, the file system for making the external storage equipment is exFAT file system.
For above method, in a kind of possible implementation, the file system of the detection external storage equipment is
It is no to include for exFAT file system:
Read the type code of subregion corresponding with the external storage equipment in partition table (MBR);
In the case where the type code is 0x07, the file system type of the external storage equipment is detected.
For above method, in a kind of possible implementation, the filesystem class of the external storage equipment is detected
Type includes:
Read the external storage equipment and correspond to the first content of subregion to buffering area;
By the Content Transformation of the buffering area into exFAT superblocks;
Whether the member variable parsed in the exFAT superblocks is exFAT;
When the member variable is exFAT, the file system for determining the external storage equipment is exFAT files system
System.
For above method, in a kind of possible implementation, methods described also includes:Using the interface function,
Judge whether operating system supports exFAT file system,
Wherein, judge whether operating system supports exFAT file system to include:
Judge Formatting Facility and checking tool whether are supported in operating system,
Wherein, the Formatting Facility is used to format the external storage equipment, makes the text of the external storage equipment
Part system is exFAT file system, and the checking tool is used to check whether the file system is wrong;
Whether exFAT keywords are included in parsing operating system;
The Formatting Facility and the checking tool are supported in the operating system, and it is crucial comprising exFAT
In the case of word, judge that the operating system supports exFAT file system.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of connection control device of external storage equipment, including:
Load-on module, for loading the connecing for exFAT file system in the process for managing external storage equipment
Mouth function;
Detection module, whether the file system for detecting external storage equipment is exFAT file system;
Module is checked, in the case of being exFAT file system in the file system, using the interface function,
Check whether the file system is wrong;
Carry module, it is outer described in carry using the interface function in the case of the file system is faultless
Connect storage device.
For apparatus above, in a kind of possible implementation, described device also includes:
Display module, in the case of not being exFAT file system in the file system, display format control;
Formatting module, in the case of being triggered in the formatting controls, using the interface function, format
The external storage equipment, the file system for making the external storage equipment are exFAT file system.
For apparatus above, in a kind of possible implementation, the detection module includes:
First reading submodule, for reading the type code of subregion corresponding with the external storage equipment in partition table;
Detection sub-module, in the case of being 0x07 in the type code, detect the text of the external storage equipment
Part system type.
For apparatus above, in a kind of possible implementation, the detection sub-module includes:
Second reading submodule, the first content of subregion is corresponded to buffering area for reading the external storage equipment;
Transform subblock, for by the Content Transformation of the buffering area into exFAT superblocks;
First analyzing sub-module, whether the member variable for parsing in the exFAT superblocks is exFAT;
Determination sub-module, for when the member variable is exFAT, determining the file system of the external storage equipment
For exFAT file system.
For apparatus above, in a kind of possible implementation, described device also includes:
Judge module, for utilizing the interface function, judge whether operating system supports exFAT file system,
Wherein, the judge module includes:
First judging submodule, for judging Formatting Facility and checking tool whether are supported in operating system,
Wherein, the Formatting Facility is used to format the external storage equipment, makes the text of the external storage equipment
Part system is exFAT file system, and the checking tool is used to check whether the file system is wrong;
Second analyzing sub-module, for parsing in operating system whether include exFAT keywords;
Second judging submodule, for supporting the Formatting Facility and the inspection work in the operating system
Tool, and comprising exFAT keywords in the case of, judge that the operating system supports exFAT file system.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of connection control device of external storage equipment, including:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as performing the above method.
According to the fourth aspect of the embodiment of the present disclosure, there is provided a kind of non-transitorycomputer readable storage medium, when described
When instruction in storage medium is by computing device so that processor is able to carry out the connection controlling party of above-mentioned external storage equipment
Method.
The technical scheme provided by this disclosed embodiment can include the following benefits:By for managing external deposit
Store up loading in the process of equipment and be directed to the interface function of exFAT file system, and detect the file system of external storage equipment
Unite as exFAT file system, and in the case of checking that file system is faultless using interface function, the carry external storage is set
It is standby, so as to realize support of the terminal device to file system for exFAT external storage equipment.
It should be appreciated that the general description and following detailed description of the above are only exemplary and explanatory, not
The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the disclosure
Example, and be used to together with specification to explain the principle of the disclosure.
Fig. 1 is a kind of flow chart of the connection control method of external storage equipment according to an exemplary embodiment.
Fig. 2 is a kind of flow chart of the connection control method of external storage equipment according to an exemplary embodiment.
Fig. 3 be a kind of external storage equipment according to an exemplary embodiment connection control method in step S12
Flow chart.
Fig. 4 be a kind of external storage equipment according to an exemplary embodiment connection control method in step S122
Flow chart.
Fig. 5 is a kind of flow chart of the connection control method of external storage equipment according to an exemplary embodiment.
Fig. 6 is a kind of application scenarios of the connection control method of external storage equipment according to an exemplary embodiment
Schematic diagram.
Fig. 7 is a kind of connection control device block diagram of external storage equipment according to an exemplary embodiment.
Fig. 8 is a kind of connection control device block diagram of external storage equipment according to an exemplary embodiment.
Fig. 9 is a kind of connection control device block diagram of external storage equipment according to an exemplary embodiment.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended
The example of the consistent apparatus and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of flow chart of the connection control method of external storage equipment according to an exemplary embodiment.
As shown in figure 1, this method is used in terminal device (for example, smart mobile phone etc.).Set according to the external storage of the embodiment of the present disclosure
Standby connection control method includes:
In step s 11, interface of the loading for exFAT file system in the process for managing external storage equipment
Function.
In step s 12, whether the file system for detecting external storage equipment is exFAT file system;
In step s 13, in the case where the file system is exFAT file system, the interface function, inspection are utilized
Whether wrong look into the file system;
It is outer described in carry using the interface function in the case of the file system is faultless in step S14
Connect storage device.
Embodiment of the disclosure is directed to exFAT file system by being loaded in the process for managing external storage equipment
Interface function, and detecting that the file system of external storage equipment is exFAT file system, and utilize interface function inspection
In the case of file system is faultless, carry external storage equipment, so as to realize that terminal device is exFAT's to file system
The support of external storage equipment.
For example, the terminal device can be the smart mobile phone for being provided with Android (Android) system, wherein,
Android is a kind of freedom based on Linux and the operating system of open source code, can be used for managing and configuring internal memory, control
System input and the atomic transaction such as output equipment and management file system.File system is responsible for and stored in operating system
The software mechanism of fileinfo.Operating system nucleus is the core of most of operating systems, is to be used to manage in operating system
Manage the part of file, memory and system resource.Operating system nucleus generally runs process, and provides the communication between process.
In a kind of possible implementation, the operating system nucleus of the terminal device can load exFAT file system.
For example, exFAT (extension file allocation table) file system can support very big file and storage device.
When source code (the Android kernel sheets that exFAT has been transplanted in the operating system nucleus (such as Android kernels) of terminal device
Body does not support exFAT file system, it is necessary to enable (enable) exFAT file system in its kernel) when, the terminal device
Operating system nucleus can load exFAT file system.In this way, the terminal device operating system nucleus can be supported
ExFAT file system, and exFAT file system can be loaded as needed.
In a kind of possible implementation, the terminal device can add in the process for managing external storage equipment
Carry the interface function for exFAT file system.
For example, the terminal device can load pin in the process (vold processes) for managing external storage equipment
To 4 interface functions of exFAT file system, respectively it is used to judge whether operating system supports connecing for exFAT file system
Mouthful function IsSupported, for checking the whether vicious interface function Check of corresponding partitioned file system, for will be outer
The interface function Format that storage device is formatted as exFAT file system types is met, and for supporting the external storage of carry
The interface function Mount of equipment.It will be understood by those skilled in the art that pin is loaded in the process for managing external storage equipment
Species, title to the interface function of exFAT file system can have a diversified forms, and the disclosure is without limitation.
Fig. 2 is a kind of flow chart of the connection control method of external storage equipment according to an exemplary embodiment.
In a kind of possible implementation, as shown in Fig. 2 methods described also includes:
In step S15, using the interface function, judge whether operating system supports exFAT file system,
Wherein, judge whether operating system supports exFAT file system to include:
Judge Formatting Facility and checking tool whether are supported in operating system,
Wherein, the Formatting Facility is used to format the external storage equipment, makes the text of the external storage equipment
Part system is exFAT file system, and the checking tool is used to check whether the file system is wrong;
Whether exFAT keywords are included in parsing operating system;
The Formatting Facility and the checking tool are supported in the operating system, and it is crucial comprising exFAT
In the case of word, judge that the operating system supports exFAT file system.
For example, it can judge whether the operating system supports exFAT files using interface function IsSupported
System.It will be understood by those skilled in the art that in the case where the operating system supports exFAT file system, text can be just connected
Part system type is exFAT external storage equipment., can not in the case where the operating system does not support exFAT file system
Threaded file system type is exFAT external storage equipment.
In a kind of possible implementation, it can be determined that Formatting Facility whether is supported in operating system and checks work
Tool,
Wherein, the Formatting Facility is used to format the external storage equipment, makes the text of the external storage equipment
Part system is exFAT file system, and the checking tool is used to check whether the file system is wrong.
For example, it can judge whether the operating system supports exFAT files using interface function IsSupported
System.Such as, it can be determined that whether support Formatting Facility and checking tool under/system/bin/ catalogues.Wherein ,/
What is preserved in system/bin/ is the local program of system, and mostly system carries component.The Formatting Facility can be
Mkexfatfs (is used to format external storage equipment, the file system for making the external storage equipment is exFAT file system);
The checking tool can be exfatfsck (being used to check whether this document system is wrong).For example, as/system/
When including mkexfatfs and exfatfsck under bin/ catalogues, it can be determined that form chemical industry is supported under/system/bin/ catalogues
Tool and checking tool.
In a kind of possible implementation, can parse in operating system whether include exFAT keywords;
For example, can parse/proc/filesystems in whether include exFAT keywords.Wherein ,/proc/
Filesystems is the file system type listing file currently supported by operating system nucleus.Therefore, can be by parsing it
In whether comprising exFAT keywords judge whether the operating system supports exFAT file system.
In a kind of possible implementation, the Formatting Facility and the inspection are supported in the operating system
Instrument, and comprising exFAT keywords in the case of, judge that the operating system supports exFAT file system.
For example, when supporting Formatting Facility (mkexfatfs) and checking tool under/system/bin/ catalogues
(exfatfsck) in the case of, and including exFAT keywords in/proc/filesystems, it can be determined that the operation system
System supports exFAT file system.
In this way, it can prejudge whether the operating system supports exFAT file system.People in the art
Member is it should be understood that judge whether the operating system supports the mode of exFAT file system to include a variety of, Formatting Facility and inspection
The instrument of looking into can also include other modes, as long as can interpolate that whether the operating system supports exFAT file system, this public affairs
Open without limitation.
In a kind of possible implementation, whether the file system for detecting external storage equipment is exFAT file system.
For example, in the case that the terminal device has detected external storage equipment, the external storage can be detected
Whether the file system of equipment is exFAT file system.
Fig. 3 be a kind of external storage equipment according to an exemplary embodiment connection control method in step S12
Flow chart.In a kind of possible implementation, as shown in figure 3,
In step S121, the type code of subregion corresponding with the external storage equipment in partition table is read;
For example, the reading partition functions in the process (vold processes) for managing external storage equipment can be passed through
(such as readPartitions) reads the type code of subregion corresponding with the external storage equipment in partition table, for example, can be with
It is 0x07 to read the external equipment and correspond to the type code of subregion.It should be noted that exFAT and NTFS are made using 0x07
For the divisional type mark in partition table, now, the file system that not can determine that the external storage equipment still is exFAT files system
System.
In a kind of possible implementation, in by the process (vold processes) for managing external storage equipment
Read the type code that partition functions (such as readPartitions) read subregion corresponding with the external storage equipment in partition table
When, the terminal device can be supported to create the public volume for the file system that type code is 0x07 (exFAT)
(PublicVolume)。
For example, the type that the external storage equipment corresponds to subregion is read for example, by vold processes in terminal device
When being masked as 0x07, the terminal device operating system can create a public volume, the file system type mark of the public volume
For 0x07 (representing exFAT file system types).
In this way, can in partition table is read during the type code of subregion corresponding with the external storage equipment,
Create the volume information of the external storage equipment.
In step S122, in the case where the type code is 0x07, the file of the external storage equipment is detected
System type.
For example, can be by further detecting the external storage in the case where the type code of reading is 0x07
The file system type of equipment, whether it is exFAT file system with the file system of the clearly external storage equipment.
In a kind of possible implementation, the file of the external storage equipment can be for example determined by blkid instruments
The type of system.Wherein, the blkid instruments are a kind of order works for being used to inquire about the file system type of (parsing) storage device
Tool.For example, can by parsed in blkid instruments the external storage equipment correspond to subregion file system type whether be
ExFAT file system.
Fig. 4 be a kind of external storage equipment according to an exemplary embodiment connection control method in step S122
Flow chart.In a kind of possible implementation, as shown in figure 4,
In step S1221, read the external storage equipment and correspond to the first content of subregion to buffering area.For example, can
Preceding 4096 bytes of subregion are corresponded into corresponding buffering area to read the external storage equipment.
In step S1222, by the Content Transformation of the buffering area into exFAT superblocks.For example, can be by the buffering area
Content unsteady state operation into exFAT superblocks (exfat_super_block).
In step S1223, whether the member variable parsed in the exFAT superblocks is exFAT.For example, it can solve
Whether the member variable (oem_name) analysed in exFAT superblocks is " exFAT ".
In step S1224, when the member variable is exFAT, the file system of the external storage equipment is determined
For exFAT file system.For example, the member variable is " exFAT ", then the file system that can determine the external storage equipment is
ExFAT file system.
In this way, the file system that may further determine that the external storage equipment is exFAT file system.This
Art personnel should be understood that the file system type of detection external storage equipment can be realized in several ways, as long as
Whether the file system type that the external storage equipment can be detected is exFAT, and the disclosure is not done specifically to detection mode
Limitation.
Fig. 5 is a kind of flow chart of the connection control method of external storage equipment according to an exemplary embodiment.
In a kind of possible implementation, as shown in figure 5, also including:
In step s 16, in the case where the file system is not exFAT file system, display format control.
For example, the file system type that external storage equipment may be found by detecting is not exFAT file system.
For example, it may be possible to terminal device reads the type code of subregion corresponding with the external storage equipment in partition table by vold processes
It is not 0x07 (now, the file system of the external storage equipment is not exFAT file system), it is also possible to which vold processes are read
The type code of subregion corresponding with the external storage equipment is 0x07 in partition table, but it is external by blkid instruments to be resolved to this
The file system type that storage device corresponds to subregion is not exFAT file system.In such a case, it is possible to display format control
Part, whether it is formatted for selection by the user.
In step S17, in the case where the formatting controls are triggered, using the interface function, institute is formatted
External storage equipment is stated, the file system for making the external storage equipment is exFAT file system.
For example, in the case where the formatting controls are triggered (for example, user triggers the formatting controls), can be with
The external storage equipment is formatted using interface function Format.For example, interface function Format can be with call format chemical industry
Tool (mkexfatfs) formats the external storage equipment, and it is exFAT file system to make its file system.
In this way, can be when the default document system of external storage equipment be not exFAT file system, foundation
The selection of user, the external storage equipment is formatted, and make the file system of the external storage equipment after formatting literary for exFAT
Part system.It will be understood by those skilled in the art that the file system type for formatting external storage equipment can be in several ways
To realize, as long as the external storage equipment can be formatted, and its file system is set to be changed into exFAT file system, this public affairs
Open and format mode is not particularly limited.
In a kind of possible implementation, in the case where the file system is exFAT file system, using described
Interface function, check whether the file system is wrong.
For example, detecting that the file system of the external storage equipment is exFAT file system, or detecting
The file system of the external storage equipment is not exFAT file system, but by interface function by the external storage equipment form
Change so that when the file system of the external storage equipment is exFAT file system, this document system can be detected using interface function
Whether system is wrong.
In a kind of possible implementation, can by interface function Check call checking tool (exfatfsck) come
Check the external storage equipment correspond to subregion file system it is whether wrong.In this way, can this be external in carry
Check whether the file system of the external storage equipment is wrong before storage device.It is somebody's turn to do it will be understood by those skilled in the art that checking
External storage equipment correspond to subregion file system it is whether wrong can realize in several ways, as long as check that this
Whether the file system that external storage equipment corresponds to subregion is wrong, and the disclosure is without limitation.
In a kind of possible implementation, in the case of this document system is faultless, using the interface function, hang
Carry the external storage equipment.
For example, can come carry, this be external using interface function Mount in the case of this document system is faultless
Storage device, to realize the normal connection of the terminal device and the external storage equipment.It will be understood by those skilled in the art that at this
In the case of file system is faultless, the carry external storage equipment can be carried out in several ways, the disclosure is not limited this
System.
Using example
Below in conjunction with " SD card (sdcard) is inserted its Android mobile phone by user " as an exemplary application scene, provide
According to the application example of the embodiment of the present disclosure, in order to understand the flow of the connection control method of external storage equipment.This area
It should be understood to the one skilled in the art that it is not construed as below using example merely for the sake of the purpose for readily appreciating the embodiment of the present invention to this
The limitation of inventive embodiments.
Fig. 6 is a kind of application scenarios of the connection control method of external storage equipment according to an exemplary embodiment
Schematic diagram.As shown in fig. 6, in this applies example, SD card is inserted its Android mobile phone by user.
In this applies example, exFAT source codes, and its mobile phone in the Android mobile phone operating system nucleus of user be present
4 interface functions of exFAT file system have been with the addition of in process (vold processes) for managing external storage equipment, point
The interface function IsSupported of exFAT file system whether Wei not be supported for decision system, for checking corresponding point
The whether vicious interface function Check of area file system, for external storage equipment to be formatted as into file system type it is
The exFAT interface function Format and interface function Mount for supporting carry external storage equipment.
In this applies example, for the Android mobile phone of user under open state, its operating system nucleus can load exFAT
File system, the vold processes of system can load the interface function (step 601) for exFAT file system.
In this applies example, the terminal device can judge that its operating system is using interface function IsSupported
No support exFAT file system.Such as, it can be determined that whether support mkexfatfs (to be used for form under/system/bin/ catalogues
Change external storage equipment, the file system for making the external storage equipment be exFAT file system) and exfatfsck (for examining
Whether wrong look into this document system).And parse/proc/filesystems in whether include exFAT keywords.Should at this
With in example, whether supporting mkexfatfs and exfatfsck, and/proc/ under/system/bin/ catalogues
ExFAT keywords are included in filesystems, it can be determined that the terminal device supports exFAT file system (steps 602).
In this applies example, when the terminal device detects SD card, corresponding with the SD card point can be read in partition table
The type code in area is 0x07 (steps 603).In this applies example, the terminal device can support that creating type code is
The public volume of 0x07 (exFAT) file system, to play the volume information effect for creating the SD card., can in this applies example
To correspond to the file system type of subregion by blkid instruments parsing SD card.
In this applies example, preceding 4096 bytes of the correspondence subregion can be read into corresponding buffering area, and will
The Content Transformation of the buffering area parses whether member variable in exFAT superblocks is " exFAT ", if should into exFAT superblocks
Member variable is " exFAT ", then can determine that the file system that the SD card corresponds to subregion is exFAT file system (steps 604).
In this applies example, interface function Check can be utilized to call exfatfsck instruments to check that this document system is
No wrong (step 608).In this applies example, in the case where this document system is without mistake, interface letter can be utilized
The number Mount carries SD card (step 609).
In this applies example, the file system that the SD card is found by detecting is not exFAT file system (steps
605), such as to read the type code of SD card respective partition be not 0x07.In this applies example, the terminal device can show
Show formatting controls (step 606).In this applies example, in the case where the formatting controls are triggered, it can utilize and connect
The mouth function Format call function mkexfatfs tool formats SD card, make its file system for exFAT file system (step
It is rapid 607)., can be with the case that the file system of the SD card after the formatting is exFAT file system in this applies example
Exfatfsck instruments are called to check the whether wrong (step 608) of this document system using interface function Check.In the application
In example, in the case where this document system is without mistake, the interface function Mount carries SD card (step 609) can be utilized.
In accordance with an embodiment of the present disclosure exFAT files are directed to by being loaded in the process for managing external storage equipment
The interface function of system, and detecting that the file system of external storage equipment is exFAT file system, and utilize interface function
In the case of checking that file system is faultless, carry external storage equipment, so as to realize that terminal device is to file system
The support of exFAT external storage equipment.
Fig. 7 is a kind of connection control device block diagram of external storage equipment according to an exemplary embodiment.Reference
Fig. 8, the device include load-on module 71, detection module 72, check module 73 and carry module 74.
The load-on module 71 is configured as the loading in the process for managing external storage equipment and is directed to exFAT files system
The interface function of system;
Whether the file system that the detection module 72 is configured as detecting external storage equipment is exFAT file system;
The inspection module 73 is configured as, in the case where the file system is exFAT file system, connecing using described
Mouth function, checks whether the file system is wrong;
The carry module 74 is configured as in the case of the file system is faultless, using the interface function, is hung
Carry the external storage equipment.
Fig. 8 is a kind of connection control device block diagram of external storage equipment according to an exemplary embodiment.One
In the possible implementation of kind, reference picture 8, the device also includes:
Display module 76, it is configured as in the case where the file system is not exFAT file system, display format
Control;
Formatting module 77, it is configured as in the case where the formatting controls are triggered, using the interface function,
The external storage equipment is formatted, the file system for making the external storage equipment is exFAT file system.
In a kind of possible implementation, the detection module 72 includes:
First reading submodule 721, for reading the type mark of subregion corresponding with the external storage equipment in partition table
Will;
Detection sub-module 722, in the case of being 0x07 in the type code, detect the external storage equipment
File system type.
In a kind of possible implementation, the detection sub-module 722 includes:
Second reading submodule 7221, the first content of subregion is corresponded to buffering for reading the external storage equipment
Area;
Transform subblock 7222, for by the Content Transformation of the buffering area into exFAT superblocks;
First analyzing sub-module 7223, whether the member variable for parsing in the exFAT superblocks is exFAT;
Determination sub-module 7224, for when the member variable is exFAT, determining the file of the external storage equipment
System is exFAT file system.
In a kind of possible implementation, described device also includes:
Judge module 75, for utilizing the interface function, judge whether operating system supports exFAT file system,
Wherein, the judge module 75 includes:
First judging submodule, for judging Formatting Facility and checking tool whether are supported in operating system,
Wherein, the Formatting Facility is used to format the external storage equipment, makes the text of the external storage equipment
Part system is exFAT file system, and the checking tool is used to check whether the file system is wrong;
Second analyzing sub-module, for parsing in operating system whether include exFAT keywords;
Second judging submodule, for supporting the Formatting Facility and the inspection work in the operating system
Tool, and comprising exFAT keywords in the case of, judge that the operating system supports exFAT file system.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant this method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 9 is a kind of connection control device block diagram of external storage equipment according to an exemplary embodiment.For example,
Device 800 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, cure
Treat equipment, body-building equipment, personal digital assistant etc..
Reference picture 9, device 800 can include following one or more assemblies:Processing component 802, memory 804, power supply
Component 806, multimedia groupware 808, audio-frequency assembly 810, the interface 812 of input/output (I/O), sensor cluster 814, and
Communication component 816.
The integrated operation of the usual control device 800 of processing component 802, such as communicated with display, call, data, phase
The operation that machine operates and record operation is associated.Processing component 802 can refer to including one or more processors 820 to perform
Order, to complete all or part of step of above-mentioned method.In addition, processing component 802 can include one or more modules, just
Interaction between processing component 802 and other assemblies.For example, processing component 802 can include multi-media module, it is more to facilitate
Interaction between media component 808 and processing component 802.
Memory 804 is configured as storing various types of data to support the operation in device 800.These data are shown
Example includes the instruction of any application program or method for being operated on device 800, contact data, telephone book data, disappears
Breath, picture, video etc..Memory 804 can be by any kind of volatibility or non-volatile memory device or their group
Close and realize, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) are erasable to compile
Journey read-only storage (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash
Device, disk or CD.
Power supply module 806 provides electric power for the various assemblies of device 800.Power supply module 806 can include power management system
System, one or more power supplys, and other components associated with generating, managing and distributing electric power for device 800.
Multimedia groupware 808 is included in the screen of one output interface of offer between described device 800 and user.One
In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen
Curtain may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch sensings
Device is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding action
Border, but also detect and touched or the related duration and pressure of slide with described.In certain embodiments, more matchmakers
Body component 808 includes a front camera and/or rear camera.When device 800 is in operator scheme, such as screening-mode or
During video mode, front camera and/or rear camera can receive outside multi-medium data.Each front camera and
Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio-frequency assembly 810 is configured as output and/or input audio signal.For example, audio-frequency assembly 810 includes a Mike
Wind (MIC), when device 800 is in operator scheme, during such as call model, logging mode and speech recognition mode, microphone by with
It is set to reception external audio signal.The audio signal received can be further stored in memory 804 or via communication set
Part 816 is sent.In certain embodiments, audio-frequency assembly 810 also includes a loudspeaker, for exports audio signal.
I/O interfaces 812 provide interface between processing component 802 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock
Determine button.
Sensor cluster 814 includes one or more sensors, and the state for providing various aspects for device 800 is commented
Estimate.For example, sensor cluster 814 can detect opening/closed mode of device 800, and the relative positioning of component, for example, it is described
Component is the display and keypad of device 800, and sensor cluster 814 can be with 800 1 components of detection means 800 or device
Position change, the existence or non-existence that user contacts with device 800, the orientation of device 800 or acceleration/deceleration and device 800
Temperature change.Sensor cluster 814 can include proximity transducer, be configured to detect in no any physical contact
The presence of neighbouring object.Sensor cluster 814 can also include optical sensor, such as CMOS or ccd image sensor, for into
As being used in application.In certain embodiments, the sensor cluster 814 can also include acceleration transducer, gyro sensors
Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between device 800 and other equipment.Device
800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementation
In example, communication component 816 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
In one exemplary embodiment, the communication component 816 also includes near-field communication (NFC) module, to promote junction service.Example
Such as, in NFC module radio frequency identification (RFID) technology can be based on, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology,
Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 800 can be believed by one or more application specific integrated circuits (ASIC), numeral
Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided
Such as include the memory 804 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 820 of device 800.For example,
The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk
With optical data storage devices etc..
Those skilled in the art will readily occur to the disclosure its after considering specification and putting into practice invention disclosed herein
Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or
Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledges in the art of the disclosure
Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by following
Claim is pointed out.
It should be appreciated that the precision architecture that the disclosure is not limited to be described above and is shown in the drawings, and
And various modifications and changes can be being carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.
Claims (12)
- A kind of 1. connection control method of external storage equipment, it is characterised in that including:Interface function of the loading for exFAT file system in the process for managing external storage equipment;Whether the file system for detecting external storage equipment is exFAT file system;In the case where the file system is exFAT file system, using the interface function, check that the file system is It is no wrong;In the case of the file system is faultless, using the interface function, external storage equipment described in carry.
- 2. according to the method for claim 1, it is characterised in that methods described also includes:In the case where the file system is not exFAT file system, display format control;In the case where the formatting controls are triggered, using the interface function, the external storage equipment are formatted, is made The file system of the external storage equipment is exFAT file system.
- 3. according to the method for claim 1, it is characterised in that detect external storage equipment file system whether be ExFAT file system includes:Read the type code of subregion corresponding with the external storage equipment in partition table;In the case where the type code is 0x07, the file system type of the external storage equipment is detected.
- 4. according to the method for claim 3, it is characterised in that detect the file system type bag of the external storage equipment Include:Read the external storage equipment and correspond to the first content of subregion to buffering area;By the Content Transformation of the buffering area into exFAT superblocks;Whether the member variable parsed in the exFAT superblocks is exFAT;When the member variable is exFAT, the file system for determining the external storage equipment is exFAT file system.
- 5. according to the method for claim 1, it is characterised in that methods described also includes:Using the interface function, judge Whether operating system supports exFAT file system,Wherein, judge whether operating system supports exFAT file system to include:Judge Formatting Facility and checking tool whether are supported in operating system,Wherein, the Formatting Facility is used to format the external storage equipment, makes the file system of the external storage equipment Unite and be used to check whether the file system is wrong for exFAT file system, the checking tool;Whether exFAT keywords are included in parsing operating system;The Formatting Facility and the checking tool are supported in the operating system, and includes exFAT keywords In the case of, judge that the operating system supports exFAT file system.
- A kind of 6. connection control device of external storage equipment, it is characterised in that including:Load-on module, for loading the interface letter for exFAT file system in the process for managing external storage equipment Number;Detection module, whether the file system for detecting external storage equipment is exFAT file system;Module is checked, in the case of being exFAT file system in the file system, using the interface function, is checked Whether the file system is wrong;Carry module, it is external described in carry to deposit using the interface function in the case of the file system is faultless Store up equipment.
- 7. device according to claim 6, it is characterised in that described device also includes:Display module, in the case of not being exFAT file system in the file system, display format control;Formatting module, in the case of being triggered in the formatting controls, using the interface function, described in formatting External storage equipment, the file system for making the external storage equipment are exFAT file system.
- 8. device according to claim 6, it is characterised in that the detection module includes:First reading submodule, for reading the type code of subregion corresponding with the external storage equipment in partition table;Detection sub-module, in the case of being 0x07 in the type code, detect the file system of the external storage equipment System type.
- 9. device according to claim 8, it is characterised in that the detection sub-module includes:Second reading submodule, the first content of subregion is corresponded to buffering area for reading the external storage equipment;Transform subblock, for by the Content Transformation of the buffering area into exFAT superblocks;First analyzing sub-module, whether the member variable for parsing in the exFAT superblocks is exFAT;Determination sub-module, for when the member variable is exFAT, the file system for determining the external storage equipment to be ExFAT file system.
- 10. device according to claim 6, it is characterised in that described device also includes:Judge module, for utilizing the interface function, judge whether operating system supports exFAT file system,Wherein, the judge module includes:First judging submodule, for judging Formatting Facility and checking tool whether are supported in operating system,Wherein, the Formatting Facility is used to format the external storage equipment, makes the file system of the external storage equipment Unite and be used to check whether the file system is wrong for exFAT file system, the checking tool;Second analyzing sub-module, for parsing in operating system whether include exFAT keywords;Second judging submodule, for supporting the Formatting Facility and the checking tool in the operating system, and And comprising exFAT keywords in the case of, judge that the operating system supports exFAT file system.
- A kind of 11. connection control device of external storage equipment, it is characterised in that including:Processor;For storing the memory of processor-executable instruction;Wherein, the processor is configured as:Perform claim requires the method described in 1-5.
- 12. a kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by computing device, make Processor is able to carry out method according to claim 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710622479.6A CN107463652A (en) | 2017-07-27 | 2017-07-27 | The connection control method and device of external storage equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710622479.6A CN107463652A (en) | 2017-07-27 | 2017-07-27 | The connection control method and device of external storage equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107463652A true CN107463652A (en) | 2017-12-12 |
Family
ID=60547521
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710622479.6A Pending CN107463652A (en) | 2017-07-27 | 2017-07-27 | The connection control method and device of external storage equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107463652A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108920338A (en) * | 2018-06-28 | 2018-11-30 | 青岛海信电器股份有限公司 | A kind of method and terminal indicating file system state |
CN110532032A (en) * | 2019-07-31 | 2019-12-03 | 华为技术有限公司 | A kind of booting file system detection method and relevant device |
CN110941843A (en) * | 2019-11-22 | 2020-03-31 | 北京明略软件系统有限公司 | Encryption implementation method, device, equipment and storage medium |
CN111813748A (en) * | 2020-07-10 | 2020-10-23 | 济南浪潮数据技术有限公司 | File system mounting method and device, electronic equipment and storage medium |
CN112860187A (en) * | 2021-02-09 | 2021-05-28 | 联想(北京)有限公司 | Access method and device of external storage equipment, equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101441634A (en) * | 2007-11-19 | 2009-05-27 | 凤凰微电子(中国)有限公司 | Embedded type file system suitable for smart card application environment |
CN103218227A (en) * | 2013-04-10 | 2013-07-24 | 广东欧珀移动通信有限公司 | Method and device for enabling internal hard disc of Android equipment to be compatible with multiple file systems |
CN103412822A (en) * | 2013-07-26 | 2013-11-27 | 华为技术有限公司 | Operation method of non-volatile RAM, data operation method and relevant device |
CN105207830A (en) * | 2014-06-11 | 2015-12-30 | 腾讯科技(深圳)有限公司 | Detection method and apparatus for terminal information, and terminal |
US20160055082A1 (en) * | 2014-08-20 | 2016-02-25 | Samsung Electronics Co., Ltd. | Memory allocating method and electronic device supporting the same |
-
2017
- 2017-07-27 CN CN201710622479.6A patent/CN107463652A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101441634A (en) * | 2007-11-19 | 2009-05-27 | 凤凰微电子(中国)有限公司 | Embedded type file system suitable for smart card application environment |
CN103218227A (en) * | 2013-04-10 | 2013-07-24 | 广东欧珀移动通信有限公司 | Method and device for enabling internal hard disc of Android equipment to be compatible with multiple file systems |
CN103412822A (en) * | 2013-07-26 | 2013-11-27 | 华为技术有限公司 | Operation method of non-volatile RAM, data operation method and relevant device |
CN105207830A (en) * | 2014-06-11 | 2015-12-30 | 腾讯科技(深圳)有限公司 | Detection method and apparatus for terminal information, and terminal |
US20160055082A1 (en) * | 2014-08-20 | 2016-02-25 | Samsung Electronics Co., Ltd. | Memory allocating method and electronic device supporting the same |
Non-Patent Citations (1)
Title |
---|
噩夢〇☆夜: "exfat文件系统挂载成功了!!!激动ing", 《HTTP://TIEBA.BAIDU.COM/P/2524051316》 * |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108920338A (en) * | 2018-06-28 | 2018-11-30 | 青岛海信电器股份有限公司 | A kind of method and terminal indicating file system state |
WO2020001000A1 (en) * | 2018-06-28 | 2020-01-02 | 青岛海信电器股份有限公司 | File system status indication method and terminal |
CN108920338B (en) * | 2018-06-28 | 2021-09-03 | 海信视像科技股份有限公司 | Method and terminal for indicating state of file system |
CN110532032A (en) * | 2019-07-31 | 2019-12-03 | 华为技术有限公司 | A kind of booting file system detection method and relevant device |
CN110941843A (en) * | 2019-11-22 | 2020-03-31 | 北京明略软件系统有限公司 | Encryption implementation method, device, equipment and storage medium |
CN110941843B (en) * | 2019-11-22 | 2022-03-29 | 北京明略软件系统有限公司 | Encryption implementation method, device, equipment and storage medium |
CN111813748A (en) * | 2020-07-10 | 2020-10-23 | 济南浪潮数据技术有限公司 | File system mounting method and device, electronic equipment and storage medium |
CN111813748B (en) * | 2020-07-10 | 2022-06-07 | 济南浪潮数据技术有限公司 | File system mounting method and device, electronic equipment and storage medium |
CN112860187A (en) * | 2021-02-09 | 2021-05-28 | 联想(北京)有限公司 | Access method and device of external storage equipment, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107463652A (en) | The connection control method and device of external storage equipment | |
CN106528252B (en) | Object starts method and device | |
US20170185988A1 (en) | Mpayment method and apparatus | |
CN104020990B (en) | Date selects control display methods and device | |
CN107066172A (en) | The document transmission method and device of mobile terminal | |
CN104679599A (en) | Application program duplicating method and device | |
CN106202223A (en) | Content collection method, device and for collecting the device of content in application program | |
CN106598392A (en) | Notification message display method and device | |
CN105068976A (en) | Ticket information exhibition method and device | |
CN106919334A (en) | Application program access method and device | |
CN106503131A (en) | Obtain the method and device of interest information | |
CN105376412A (en) | Information processing method and device | |
CN107608714A (en) | Byte-aligned method, apparatus and computer-readable recording medium | |
CN107402767A (en) | The method and apparatus for showing PUSH message | |
CN107450912A (en) | Layout method, device and the terminal of the page | |
CN106708967A (en) | Page display method and device | |
CN106936970A (en) | Call-information remarks method and device | |
CN107544818A (en) | The loading method and device of system software | |
CN108446226A (en) | Using abnormal processing method | |
CN107506496A (en) | Scrap cleaning method, device and computer-readable recording medium | |
CN104951522A (en) | Searching method and device | |
CN107491238A (en) | The display methods and device of pushed information | |
CN107239236A (en) | Method for writing data and device | |
CN107295099A (en) | PUSH message processing method, device and storage medium | |
CN107436937A (en) | Using the method and apparatus of installation |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171212 |