CN103106049B - A kind of movable storage device and access method thereof - Google Patents

A kind of movable storage device and access method thereof Download PDF

Info

Publication number
CN103106049B
CN103106049B CN201310048513.5A CN201310048513A CN103106049B CN 103106049 B CN103106049 B CN 103106049B CN 201310048513 A CN201310048513 A CN 201310048513A CN 103106049 B CN103106049 B CN 103106049B
Authority
CN
China
Prior art keywords
storage device
address
data
movable storage
cluster
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.)
Active
Application number
CN201310048513.5A
Other languages
Chinese (zh)
Other versions
CN103106049A (en
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.)
Tsinghua University
Original Assignee
Tsinghua University
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 Tsinghua University filed Critical Tsinghua University
Priority to CN201310048513.5A priority Critical patent/CN103106049B/en
Publication of CN103106049A publication Critical patent/CN103106049A/en
Application granted granted Critical
Publication of CN103106049B publication Critical patent/CN103106049B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention proposes a kind of movable storage device and access method thereof.Wherein, method comprises the following steps: main frame passes through interface accessing movable storage device;Judge that data address that main frame accesses is whether in the physical cluster address realm of boot sector;If beyond the physical cluster address realm of boot sector, then it is judged as that main frame accesses the data in the network storage;By reference address virtual address of data from virtual cluster Network Search stores;And access corresponding data in the network storage by the virtual address of network stored data.Method according to embodiments of the present invention, by the FAT area of movable storage device is expanded to physical cluster and virtual cluster, and distinguished the most corresponding and movable storage device and the address of the network storage by physical cluster with virtual cluster, and then access the data in movable storage device or the network storage, it is user-friendly to, extend the storage size of movable storage device simultaneously, improve the safety of network stored data.

Description

A kind of movable storage device and access method thereof
Technical field
The present invention relates to mobile technical field of memory, particularly to a kind of movable storage device and access method thereof.
Background technology
Along with the development of embedded technology, wireless connections can be incorporated in movable storage device, thus creates the newest application.Automatically transmission user data is to the Internet, such as Eye-Fi or wireless SD storage card etc..Storage device is transparent synchronization with cloud storage, such as, and ImationProWX, Wireless USB hard disk drive etc..
Movable storage device is typically formatted as FAT subregion at present, and can only be conducted interviews by the FAT file system that main process equipment is traditional.Traditional FAT file limits the memory block that main frame can access, and these addressable blocks are only physically present at the data in movable storage device.Such FAT limits the use greatly constraining the movable storage device with wireless connections.
Summary of the invention
The purpose of the present invention is intended at least solve one of above-mentioned technological deficiency.
For reaching above-mentioned purpose, the embodiment of one aspect of the present invention proposes a kind of movable storage device, described movable storage device is formatted as having boot sector, reserve sector, FAT area, root directory area and data field, wherein, described FAT area has physical cluster region and virtual cluster region, and a part for described boot sector is used for storing described physical cluster area domain addresses.
Movable storage device according to embodiments of the present invention, by the FAT area of movable storage device is expanded to physical cluster and virtual cluster, and distinguished the most corresponding and movable storage device and the address of the network storage by physical cluster with virtual cluster, and then access the data in movable storage device or the network storage, it is user-friendly to, extend the storage size of movable storage device simultaneously, improve the safety of network stored data.
In one embodiment of the invention, described movable storage device also includes: wireless sending module, for carrying out data communication with the network storage.
For reaching above-mentioned purpose, on the other hand embodiments of the invention propose the access method of a kind of movable storage device, including step once: S1: main frame by movable storage device described in interface accessing;S2: judge that data address that described main frame accesses is whether in the physical cluster address realm of described boot sector;S3: if beyond the physical cluster address realm of described boot sector, be then judged as that described main frame accesses the data in the network storage;S4: by described reference address virtual address of data from described virtual cluster Network Search stores;And S5: access corresponding data in the described network storage by the virtual address of described network stored data.
Method according to embodiments of the present invention, by the FAT area of movable storage device is expanded to physical cluster and virtual cluster, and distinguished the most corresponding and movable storage device and the address of the network storage by physical cluster with virtual cluster, and then access the data in movable storage device or the network storage, it is user-friendly to, extend the storage size of movable storage device simultaneously, improve the safety of network stored data.
In one embodiment of the invention, described method also includes: when physical cluster address realm at described boot sector of the reference address of described main frame, access the data on described movable storage device by the address of physical cluster in described boot sector.
In one embodiment of the invention, main frame accesses the corresponding data of the described network storage by the wireless sending module of described movable storage device.
Aspect and advantage that the present invention adds will part be given in the following description, and part will become apparent from the description below, or is recognized by the practice of the present invention.
Accompanying drawing explanation
The present invention above-mentioned and/or that add aspect and advantage will be apparent from easy to understand, wherein from the following description of the accompanying drawings of embodiments:
Fig. 1 is the schematic diagram of the FAT subregion of the movable storage device according to one embodiment of the invention;And
Fig. 2 is the flow chart of the access method of the movable storage device according to one embodiment of the invention.
Detailed description of the invention
Embodiments of the invention are described below in detail, and the example of embodiment is shown in the drawings, and the most same or similar label represents same or similar element or has the element of same or like function.The embodiment described below with reference to accompanying drawing is exemplary, is only used for explaining the present invention, and is not construed as limiting the claims.
Fig. 1 is the schematic diagram of the FAT subregion of the movable storage device according to one embodiment of the invention.As shown in Figure 1, movable storage device according to embodiments of the present invention is formatted as having boot sector, reserve sector, FAT area, root directory area and data field, wherein, FAT area has physical cluster region and virtual cluster region, and a part for boot sector is used for storing physical cluster area domain addresses.And accessing the network storage by the sending module of movable storage device, this network storage is cloud storage etc..
In one embodiment of the invention, virtual cluster is only recorded only in bunch index of FAT area, does not the most represent any physical storage block.Fig. 1 shows the zoning of FAT-x.In FAT-x, FAT area is divided into two parts: FAT physical cluster and FAT virtual cluster.FAT physical cluster still manages all of physical cluster of data field, and FAT virtual cluster is to be not present in the configuration of virtual cluster in movable storage device physically.Such as, FAT-x counts virtual cluster after physical cluster position, if i.e. one movable storage device has 1000 physical cluster, then the index of virtual cluster is from the beginning of 1001.
In one embodiment of the invention, the movable storage device of formatting has two storage sizes, is i.e. exposed to the virtual memory size of main process equipment and the actual physics size of movable storage device.According to FAT specification, instrument size (physical cluster of sector and the number of addresses of virtual cluster), it is recorded in boot sector.It is to access physical store or virtual memory by the request of number of addresses identification main frame.Owing to all FAT are not finished the boot sector of 512 bytes, the physics size that therefore the word record of 32 near selection boot sector end is actual, i.e. physical address number.
Movable storage device according to embodiments of the present invention, by the FAT area of movable storage device is expanded to physical cluster and virtual cluster, and distinguished the most corresponding and movable storage device and the address of the network storage by physical cluster with virtual cluster, and then access the data in movable storage device or the network storage, it is user-friendly to, extend the storage size of movable storage device simultaneously, improve the safety of network stored data.
Fig. 2 is the flow chart of the access method of the movable storage device according to one embodiment of the invention.As in figure 2 it is shown, the access method of movable storage device according to embodiments of the present invention, comprise the following steps:
Step S101, main frame passes through interface accessing movable storage device.Interface can be connected by USB interface etc. to be connected with movable storage device, thus access movable storage device.
Step S102, it is judged that whether the data address that main frame accesses is in the physical cluster address realm of boot sector.
In one embodiment of the invention, virtual cluster is only recorded only in bunch index of FAT area, does not the most represent any physical storage block.Fig. 1 shows the zoning of FAT-x.In FAT-x, FAT area is divided into two parts: FAT physical cluster and FAT virtual cluster.FAT physical cluster still manages all of physical cluster of data field, and FAT virtual cluster is to be not present in the configuration of virtual cluster in movable storage device physically.Such as, FAT-x counts virtual cluster after physical cluster position, if i.e. one movable storage device has 1000 physical cluster, then the index of virtual cluster is from the beginning of 1001.When the address that main frame accesses exceedes physical cluster address 1000, then it is judged as that main frame accesses the data of the network storage.
Step S103, if beyond the physical cluster address realm of boot sector, is then judged as that main frame accesses the data in the network storage.
In one embodiment of the invention, when the address that main frame accesses exceedes physical cluster address 1000, then it is judged as that main frame accesses the data of the network storage.If the reference address of main frame is when the physical cluster address realm of boot sector, then be judged as main frame access with the data of that storage device.
Step S104, by reference address virtual address of data from virtual cluster Network Search stores.
In one embodiment of the invention, the maximum address of physical cluster is 1000, when the address that main frame accesses is 1500, finds address 1500 in the address of virtual cluster.
Step S105, accesses corresponding data in the network storage by the virtual address of network stored data.
In one embodiment of the invention, although FAT-x allows any tradition application of movable storage device, but traditional FAT file system that virtual cluster itself can not be run on main process equipment distributes or reclaims.In order to avoid this problem, all of virtual cluster of FAT-x predistribution is to one or more virtual files.These virtual files are regular files, visible in legacy hosts, but it should be the special handling at movable storage device from the file operation of traditional main frame.General reading file and change file attribute (including Rename file) typically allow;Write file depends on the engine from equipment (SD from equipment/USB from equipment) of equipment;Alternative document operates, and especially creates new file and deletes file, it is necessary to being refused from engine.
The simple block I/O that generally processes from engine in movable storage device operates, such as: only processing from engine of SD is read and write request from the sector of main process equipment.In order to support that main process equipment accesses virtual file, the virtual cluster of the storage block I/O request of main frame should be identified from engine.Because FAT-x counts virtual cluster behind physical cluster position, so being capable of identify that virtual cluster from engine.
Method according to embodiments of the present invention, by the FAT area of movable storage device is expanded to physical cluster and virtual cluster, and distinguished the most corresponding and movable storage device and the address of the network storage by physical cluster with virtual cluster, and then access the data in movable storage device or the network storage, it is user-friendly to, extend the storage size of movable storage device simultaneously, improve the safety of network stored data.
Although above it has been shown and described that embodiments of the invention, it is understandable that, above-described embodiment is exemplary, being not considered as limiting the invention, above-described embodiment can be changed in the case of without departing from the principle of the present invention and objective, revises, replace and modification by those of ordinary skill in the art within the scope of the invention.

Claims (2)

1. the access method of a movable storage device, described movable storage device is formatted as having boot sector, reserve sector, FAT area, root directory area and data field, wherein, described FAT area has physical cluster region and virtual cluster region, and a part for described boot sector is used for storing described physical cluster area domain addresses, it is characterized in that, comprise the following steps:
S1: main frame is by movable storage device described in interface accessing;
S2: judge that data address that described main frame accesses is whether in the physical cluster address realm of described boot sector;
S3: if beyond the physical cluster address realm of described boot sector, be then judged as that described main frame accesses the data in the network storage;
S4: by described reference address virtual address of data from described virtual cluster Network Search stores;And
S5: access corresponding data in the described network storage by the virtual address of described network stored data,
Described movable storage device has and carries out the wireless sending module of data communication with the network storage, and described main frame accesses the corresponding data of the described network storage by described wireless sending module.
2. the access method of movable storage device as claimed in claim 1, it is characterized in that, also include: when physical cluster address realm at described boot sector of the reference address of described main frame, access the data on described movable storage device by the address of physical cluster in described boot sector.
CN201310048513.5A 2013-02-06 2013-02-06 A kind of movable storage device and access method thereof Active CN103106049B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310048513.5A CN103106049B (en) 2013-02-06 2013-02-06 A kind of movable storage device and access method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310048513.5A CN103106049B (en) 2013-02-06 2013-02-06 A kind of movable storage device and access method thereof

Publications (2)

Publication Number Publication Date
CN103106049A CN103106049A (en) 2013-05-15
CN103106049B true CN103106049B (en) 2016-08-03

Family

ID=48313945

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310048513.5A Active CN103106049B (en) 2013-02-06 2013-02-06 A kind of movable storage device and access method thereof

Country Status (1)

Country Link
CN (1) CN103106049B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107257364A (en) * 2017-05-27 2017-10-17 上海斐讯数据通信技术有限公司 Wireless mobile hard disk, wireless mobile hard disk collocation method and access method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101303667A (en) * 2008-06-25 2008-11-12 炬力集成电路设计有限公司 Method and device for establishing magnetic disk null cluster table and seeking magnetic disk null cluster
CN101882132A (en) * 2009-04-27 2010-11-10 深圳市闪联信息技术有限公司 Creating and reading method and device for virtual FAT file system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101303667A (en) * 2008-06-25 2008-11-12 炬力集成电路设计有限公司 Method and device for establishing magnetic disk null cluster table and seeking magnetic disk null cluster
CN101882132A (en) * 2009-04-27 2010-11-10 深圳市闪联信息技术有限公司 Creating and reading method and device for virtual FAT file system

Also Published As

Publication number Publication date
CN103106049A (en) 2013-05-15

Similar Documents

Publication Publication Date Title
US11068455B2 (en) Mapper tree with super leaf nodes
US10402092B2 (en) Resizing namespaces for storage devices
US7761648B2 (en) Caching method for NAND flash translation layer
JP5129156B2 (en) Access device and write-once recording system
WO2016086819A1 (en) Method and apparatus for writing data into shingled magnetic record smr hard disk
US10423339B2 (en) Logical block address mapping for hard disk drives
CN105183839A (en) Hadoop-based storage optimizing method for small file hierachical indexing
CN102779180A (en) Operation processing method of data storage system and data storage system
CN101645043B (en) Methods for reading and writing data and memory device
JP5746230B2 (en) Endless memory
CN109804359A (en) For the system and method by write back data to storage equipment
TW201214270A (en) Preserving an existing volume map in re-initializing a data storage volume
CN105095113B (en) A kind of buffer memory management method and system
CN108399050B (en) Data processing method and device
JP2018116329A (en) Storage control apparatus and storage control program
CN103473258A (en) Cloud storage file system
KR101618998B1 (en) Network booting system
US20200394304A1 (en) Optimizing storage system performance using storage device topology
CN107430546B (en) File updating method and storage device
US8595426B2 (en) Handling commands within a write-once read-many storage device configuration
US8880471B2 (en) Virtual storage device
CN103257928B (en) Flash memory device data managing method and system
CN104133640B (en) From the fast quick-recovery of dormancy
CN103106049B (en) A kind of movable storage device and access method thereof
US20170177220A1 (en) Disk area isolation method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant