CN1485842A - Recording and access method of Digital document - Google Patents
Recording and access method of Digital document Download PDFInfo
- Publication number
- CN1485842A CN1485842A CNA031041655A CN03104165A CN1485842A CN 1485842 A CN1485842 A CN 1485842A CN A031041655 A CNA031041655 A CN A031041655A CN 03104165 A CN03104165 A CN 03104165A CN 1485842 A CN1485842 A CN 1485842A
- Authority
- CN
- China
- Prior art keywords
- file
- document cluster
- data
- document
- access
- 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.)
- Granted
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention relates to a digital file recording and access method comprising, the output file generating basic information, determining whether the individual to be produced is a file or a file directory, if the individual to be produced is a file, then recording the data starting file cluster in a field of non-employment, if the individual is a directory list, assigning a file recording data starting file cluster.
Description
Technical field
The present invention relates to digital document record and access method, relate in particular to digital document record and the access method relevant with the medium storage digital document of regeneration of portable type digital document and record.
Background technology
Recently, diversified DAB product such as portable type MP3 player is by a large amount of production and sellings, and wherein major part all uses flash memory cards as medium.
Even above-mentioned flash memory is supply power not, also can preserve the data of having stored, and be easy to store termly and delete.
The file system of the flash memory cards that uses on present most of portable machine, consider less and its interchangeability of volume ratio of itself, all use flexible plastic disc file system--the FAT12 of DOS, just because of what use is such FAT12 file system,, flash do not have the situation of other devices just can contact file system easily so being stuck on PC and the external mechanical.
When the document cluster sum in differentiation memory device stores district is less than 4096, use above-mentioned FAT12 DOS flexible plastic disc file system.The size of each FAT (File Allocation Table bulk-breaking allocation table) project is 12 bits, and the size of each document cluster is 512 bytes.
Each FAT project of FAT16 constitutes with 16 bits respectively, and except that coiling the size of size adjustment with document cluster according to whole, its structure is similar with above-mentioned FAT12 basically.
Above-mentioned FAT12 file system is distributed according to structure as shown in Figure 1 in the whole zone of memory storage.
In addition, as shown in Figure 2, the catalogue factor that accords with each file and catalogue is to be made of 32 bytes, has essential information about the file and the catalogue factor, specify the actual file content to be positioned at which zone of memory storage by initial document cluster, just can become the starting point of the All Files bunch chain store of finding out file.
Above-mentioned initial document cluster becheduled for after the file, also means the numbering of the FAT with document cluster numbering
But; above-mentioned FAT12 file system; exist the ubiquitous shortcoming of allowing low access speed of DOS flexible plastic disc file system; on external mechanical such as PC; do not need other affirmation processes just digital document to be duplicated or deletes; so protecting data not only a little less than, and emphasize that as DAB etc. the product of copyright protection brings the problem of imprecise characteristic.
Summary of the invention
Purpose of the present invention just is to solve above-mentioned these problems, the invention provides a kind of record and access method of digital document, access mode correct to file data, allow the bibliographic structure of reading file system on the machine externally, prevent again simultaneously file data on common DOS file system by access, modification and deletion.
For achieving the above object, digital document recording method of the present invention comprises following process:
The 1st process is that input file generates essential information;
The 2nd process is that the individuality that judgement will generate is file or catalogue;
The 3rd process is, if above-mentioned judged result is a file for the individuality that will generate, that is not regional in not using with the initial file logging of data;
The 4th process is, if the individuality that generates is a catalogue, and the initial document cluster of record data in the file of the initial document cluster of record data then.
For achieving the above object, digital document access method of the present invention comprises following process:
The 1st process is the output file essential information;
The 2nd process is to judge that wanting the individuality of access is file or catalogue;
The 3rd process is, and if access be individual file, then just never use the zone to release the document cluster positional information of regulation number, carry out access;
The 4th process is, if the individuality of access is a catalogue, then releases sub-directory information from the document cluster that is recorded in the initial document cluster posting field of data.
Description of drawings
Fig. 1 is the sketch map of general FAT12 file system structure.
Fig. 2 is on Fig. 1, the sketch map of expression catalogue factor structure;
Fig. 3 is the data area structure sketch map of the general volatile storage of expression.
Fig. 4 is applicable to that for expression digital document of the present invention writes down and the sketch map of the catalogue factor structure of access method.
Fig. 5 is the pre-diagrammatic sketch of expression with conventional digital file access method accessing file situation.
Fig. 6 is the pre-diagrammatic sketch of expression with digital document access method accessing file situation of the present invention.
Consult below digital document of the present invention record and effect and the design sketch of depositing method are elaborated.
Embodiment
Use the present invention's digital document record and access method the flash zone structure as shown in Figure 3, the Region Segmentation mode is the same with common flexible plastic disc or hard disk.The user who promptly stores real data uses the file configuration zone (FAT) of zone, log file configuration information, store the MBR zone of the positional information of the range of distribution of each relevant distribution locations information and storage operating system.
At this moment, in order to keep the interchangeability with the FAT12 file system, each file zone of living in of the structure that do not chdir.
At first, be originally the 1st document cluster that data begin with file, be recorded in the specified file that is predefined for 2 bytes, replace the file generation essential information that utilization is released now from recording process, as shown in Figure 4, after the document cluster of 5 of the beginnings of not using beginning file data zone in the 10 regional bytes writes down successively, when reading fileinfo, guaranteed the position of initial stage data, so can retrieve the document cluster chain store, can reduce the storage number of times of next Data Position that will seek like this.
In the middle of the structure of data area as shown in Figure 4; in can't protection zone with the data appointment; the predetermined document cluster what a meets; for the time being without the document cluster chain store; guarantee the single document cluster of itself earlier; when this document is not catalogue; by initial document cluster in initial document cluster zone; can't with the presents system serve as accessing file on the basic external mechanical that constitutes; when use, modification, deletion; not to specify real data, and protect real data by the error message of passing on the protection zone of guaranteeing in advance by the position of initial document cluster.
At this, be benchmark with file system of the present invention, with example the method that writes down above-mentioned digital audio file is elaborated.
At first, files such as import file name, extension name, generation day generate essential information, judge that again the individuality that will generate is file or catalogue.
If the individuality that will generate is a file; just the zone is not being used in initial file logging; that is,, the document cluster of being appointed as the protection zone is specified in the zone of the initial document cluster of record data; with the initial document cluster of data; be recorded in after 2 byte of not using the zone, in the process of carrying out data recording, when document cluster will be changed; the conversion times of its document cluster reaches 5 times, just these 5 document clusters is recorded in successively and does not use in the zone.
If the individuality that generates is a catalogue, when giving the initial document cluster of the file logging data of the initial document cluster of record data so, just on the initial document cluster of the data of sub-directory, write down the document cluster of directory items.
With the presents system is benchmark, being described in detail as follows of digital audio file access method: at first release the essential information of file, judging the individuality of wanting access is file or catalogue.
If, the individuality of wanting access is a file, just in not using the zone, release the document cluster positional information of regulation number, carry out data access, that is, in not using the zone, release after 10 bytes of document cluster positional information of 5 of record-headers, when in continuing to release the process of data, running into the document cluster conversion, its document cluster conversion times surpasses 5 times, just presses the next document cluster of document cluster chain store access.
If the individuality of access is a catalogue, so just from the document cluster of the posting field that is recorded in the initial document cluster of data, release sub-directory information, and be stored in the document cluster of the initial document cluster posting field of above-mentioned data, then be used for the conversion and the reading of sub-directory.
In the external mechanical of PC that does not use file system of the present invention or FAT12 file system, the access situation of file is as follows:
At first; release after the essential information of file; when wanting the individuality of access to be file; shift to the protected file bunch that is stored in the initial document cluster posting field of data; that is, after the protected file that is stored in the initial document cluster of data zone bunch moves, pass on the information in the data protection that is recorded in the protection zone document cluster (wherein to comprise access according to FAT12; information such as error), confirm the file access failure.
If, when the individuality of access to be catalogue, will pass on information about subdirectory structure, that is, and because of can not the access actual file, so can only read.
At this, consult Fig. 5 and Fig. 6, that more once pass by and access time of the present invention, the FAT12 file system in past, have to accept the low access speed that DOS flexible plastic disc file system has, for example as shown in Figure 5, when file access, for the 6th document cluster of access, the access time of needed document cluster chain store is 6 times of access FAT document cluster initial document cluster time of data.
FAT12 file system of the present invention, as shown in Figure 6, when accessing file,, carry out at 5 document clusters that are recorded in the FAT document cluster adding the required time of accessing file bunch chain store on time of access for the chain store access required time of the 6th document cluster that document cluster is required of access is.
As above describe in detail; the present invention is as digital audio file; head information is included in the part 1 of file; be used to reproduce required; the application region that first operation is required; can improve the file speed to introduce of access medium, though reading catalogue structure on the machine externally, can protect actual file not to be modified or to delete.
Also has interchangeability simultaneously with FAT12, on the external mechanical of PC etc. if minute book invention file structure, in the content that writes down on the PC with utilize content made on the machine of file structure of the present invention, be to repel mutually, on corresponding machine, the content that is write down is though can read mutually on indistinction ground, but be merely able to the file on the corresponding machine is separately operated the effect of performance commonly-used storing device.
Claims (9)
1. digital document recording method comprises following process:
The 1st process is the essential information that input file generates;
The 2nd process is that the individuality that judgement will generate is file or catalogue;
The 3rd process is, in the judged result of above-mentioned the 2nd process, if the individuality file that will generate then is recorded in the initial document cluster of data and does not use the zone; And
The 4th process is, in the judged result of above-mentioned the 2nd process, if the individuality catalogue that will generate, the initial document cluster of record data in the initial document cluster of record data zone.
2. digital document recording method as claimed in claim 1 is characterized in that, file generates essential information and comprises filename, expands name, generates day.
3. digital document recording method as claimed in claim 1 is characterized in that, in described the 3rd process, comprising: in the zone of writing down the initial document cluster of data, determine the document cluster by the protection zone appointment; The initial document cluster of data is recorded in 2 byte of not using the zone; In carrying out data recording process, when running into the document cluster conversion,, time 5 document clusters are recorded in not use zone successively if the conversion of document cluster reaches 5 times.
4. data file method as claimed in claim 1 is characterized in that, in described the 4th process, and the document cluster of record directory items in the initial file of the data of sub-directory.
5. digital document access method comprises following process:
The 1st process is to release the essential information of file;
The 2nd process is to judge that wanting the individuality of access is file or catalogue;
The 3rd process is, in the judged result of above-mentioned the 2nd process, if want the individuality file of access, using the zone, releases the document cluster positional information of regulation number, carries out data access;
The 4th process is in the judged result of above-mentioned the 2nd process, if want the individuality catalogue of access, to release son file bunch information from the document cluster that is recorded in the initial document cluster posting field of data.
6. digital document access method as claimed in claim 5 is characterized in that, comprises in described the 3rd process: never use regional output record that 10 bytes of preceding 5 document cluster positional informations are arranged; When running into the document cluster conversion in releasing the data way, its document cluster conversion times is in case surpass 5 times just with next document cluster of document cluster chain store access.
7. digital document access method as claimed in claim 5 is characterized in that, is stored in the document cluster of the initial document cluster posting field of data, is used for the conversion and the reading of sub-directory.
8. digital document access method comprises following process:
The 1st process is on the PC or external mechanical of FAT12, to finish the essential information of releasing file;
The 2nd process is, if wanting the individuality of access is file, then moving is the protected file bunch of appointment in the initial document cluster posting field of data; With
The 3rd process is if wanting the individuality of access is catalogue, then to transmit the information about subdirectory structure.
9. digital document access method as claimed in claim 8 is characterized in that, described the 2nd process comprised with the next stage:
The 1st stage was, bunch moved by the protected file of FAT12 appointment in the initial document cluster of data zone; With
The 2nd stage was, transmitted to comprise that the data protection that is recorded in above-mentioned protected file bunch and access errors signal of communication are to confirm the file access failure.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB031041655A CN1296930C (en) | 2002-09-29 | 2003-02-14 | Recording and access method of Digital document |
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN02137273.X | 2002-09-29 | ||
CN02137273 | 2002-09-29 | ||
CNB031041655A CN1296930C (en) | 2002-09-29 | 2003-02-14 | Recording and access method of Digital document |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1485842A true CN1485842A (en) | 2004-03-31 |
CN1296930C CN1296930C (en) | 2007-01-24 |
Family
ID=34195451
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB031041655A Expired - Fee Related CN1296930C (en) | 2002-09-29 | 2003-02-14 | Recording and access method of Digital document |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1296930C (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102253985A (en) * | 2011-06-30 | 2011-11-23 | 深圳市江波龙电子有限公司 | File system data management method and system |
CN102354517B (en) * | 2004-08-06 | 2015-09-02 | 联发科技股份有限公司 | The data record method and device of virtual merging |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0756785A (en) * | 1993-08-16 | 1995-03-03 | Matsushita Electric Ind Co Ltd | Digital signal recording/reproducing memory |
JPH10334590A (en) * | 1997-05-27 | 1998-12-18 | Sanyo Electric Co Ltd | Data recorder, data recording method and recording medium recorded with data recording program |
-
2003
- 2003-02-14 CN CNB031041655A patent/CN1296930C/en not_active Expired - Fee Related
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102354517B (en) * | 2004-08-06 | 2015-09-02 | 联发科技股份有限公司 | The data record method and device of virtual merging |
CN102253985A (en) * | 2011-06-30 | 2011-11-23 | 深圳市江波龙电子有限公司 | File system data management method and system |
Also Published As
Publication number | Publication date |
---|---|
CN1296930C (en) | 2007-01-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CA2693691C (en) | Direct mass storage device file indexing | |
US9002795B2 (en) | Object-based data storage device | |
CN101419828B (en) | Hard disc video recording and retrieval method for analog magnetic tape serial schema | |
CA2469402A1 (en) | Disk driver cluster management of time shift buffer with file allocation table structure | |
US20100082537A1 (en) | File system for storage device which uses different cluster sizes | |
Pease et al. | The linear tape file system | |
CN1282195C (en) | Rewritable recording medium and its recording, reproducing method and device | |
CN102136290A (en) | Method for storing embedded real-time video files | |
RU2007115810A (en) | METHOD AND DEVICE FOR PLAYING DATA FROM RECORDING MEDIA USING A LOCAL MEMORY DEVICE | |
CN1144216C (en) | Recording medium recorded with data structure and recording / reproducing method and equipment | |
EP1209680A4 (en) | Method and apparatus for av data recording, and disk recorded by the method and apparatus | |
WO2001073537A3 (en) | System for and method of accessing blocks on a storage medium | |
TW408312B (en) | A method and device for storing audio-centered information by a table-of-contents (TOC) mechanism and also by a file-based access mechanism through a root directory that contains a highest level TOC directory, and a unitary storage medium containing such | |
CN1383563A (en) | Method of implicit partitioning storage space available on storage medium | |
CN100383881C (en) | Method for protecting hardware key information area in embedded device | |
CN100347705C (en) | Method for file merge | |
CN101051318A (en) | Method for cluster linking and track hunting magnetic disc data using file distribution table | |
CN1744090A (en) | File distribution list file system read-write method and device | |
CN101034416A (en) | Method for file seek track using file allocation table and system frame thereof | |
CN1146819C (en) | Computer file title searching system | |
CN1296930C (en) | Recording and access method of Digital document | |
CN1822189A (en) | Content identifying method for digital recorded file | |
CN1716215A (en) | Method for reducing data redundance in storage medium | |
RU2003108840A (en) | METHOD FOR MANAGING TRACK AND DEVICE FOR MANAGING TRACK ON RECORDING MEDIA | |
CN101908049A (en) | File system and switching method thereof |
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 | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20070124 Termination date: 20140214 |