CN104572681A - Intelligent card file management system and method based on registry - Google Patents

Intelligent card file management system and method based on registry Download PDF

Info

Publication number
CN104572681A
CN104572681A CN201310486712.4A CN201310486712A CN104572681A CN 104572681 A CN104572681 A CN 104572681A CN 201310486712 A CN201310486712 A CN 201310486712A CN 104572681 A CN104572681 A CN 104572681A
Authority
CN
China
Prior art keywords
file
catalogue
registry
registration table
directory
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
Application number
CN201310486712.4A
Other languages
Chinese (zh)
Other versions
CN104572681B (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.)
Ziguang Tongxin Microelectronics Co Ltd
Original Assignee
Beijing Tongfang Microelectronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Tongfang Microelectronics Co Ltd filed Critical Beijing Tongfang Microelectronics Co Ltd
Priority to CN201310486712.4A priority Critical patent/CN104572681B/en
Publication of CN104572681A publication Critical patent/CN104572681A/en
Application granted granted Critical
Publication of CN104572681B publication Critical patent/CN104572681B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/148File search processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices
    • G06F16/134Distributed indices

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses an intelligent card file management system and method based on a registry and relates to the technical field of intelligent cards. The intelligent card file management system comprises a directory registry unit, a file registry unit and a file body unit. The intelligent card file management system is characterized in that the directory registry unit stores catalog index information of all directories including root directories and sub-directories, and file header information of each directory stored by the directory registry unit includes a logic address of the file registry unit of the corresponding directory; the file registry unit is responsible for storing file index information of all files under a specified directory, and the index information stored by the file registry unit includes a logic address of the file body unit; the file body unit stores file information of specific files and data. Compared with the prior art, the intelligent card file management system and method has the advantages that the directories and the file information are placed in different registries for management, so that time needed for file searching is reduced effectively.

Description

A kind of smartcard file management system based on registration table and management method thereof
Technical field
The present invention relates to technical field of intelligent card, particularly based on smartcard file management system and the management method thereof of registration table.
Background technology
In prior art, the management method of smartcard file is: select blank out memory block directory information, fileinfo and file body all to be stored together.Profit in this way, can realize smartcard file and create, the operation such as to search.But because full detail is put together by this method, and the length of often kind of information is different, causes reducing compared with the search efficiency of deep layer file.Owing to requiring in application of IC cards occasion that the time of locating file is short as far as possible, so prior art has obviously been not suitable for the demand applied.
Summary of the invention
For above-mentioned the deficiencies in the prior art, the object of this invention is to provide a kind of smartcard file management system based on registration table and management method thereof.Catalogue and fileinfo are placed in different registration tablies and manage by it, effectively reduce the locating file time used.
In order to reach foregoing invention object, technical scheme of the present invention realizes as follows:
Based on a smartcard file management system for registration table, it comprises catalogue registry hive, file registration table unit and file body unit.It is characterized in that; Described catalogue registry hive stores the bibliography information that all catalogues comprise root directory and sub-directory, and each catalogue file header that catalogue registry hive stores comprises the logical address of the file registration table unit of described catalogue.Described file registration table unit is responsible for the file index information storing All Files under assigned catalogue, and the index information that file registration table unit stores comprises the logical address of file body unit.Described file body unit stores fileinfo and the data of concrete file.
In above-mentioned smartcard file management system, the system registry cellular logic address that the described File header information of catalogue registry hive storage directory, the set membership of catalogue and each catalogue are corresponding.Bibliography information each catalogue in catalogue registry hive occupies fixing size.
In above-mentioned smartcard file management system, the set membership of described catalogue adopts in bibliography information, to store call number in catalogue registry hive of the call number of parent directory in catalogue registry hive, first sub-directory and the call number of fraternal catalogue in catalogue registry hive realizes.
In above-mentioned smartcard file management system, described file index information comprises the logical address of the short file identifier of information, file name and file body unit required for file to be found.File index information each file in file registration table unit occupies fixing size.
As mentioned above based on the management method of the smartcard file management system of registration table, it uses and comprises catalogue registry hive, file registration table unit and file body unit, and its method step is:
1) file search method:
When 1. receiving selection catalogue instruction, in catalogue registry hive, carry out directory name comparison search, file finds its system registry cellular logic address of rear preservation.
When 2. receiving file read-write instruction, according to current file registry hive logical address, documents index information in file registration table unit, obtains the file body logical address of match index information, carries out the access of file data according to file body logical address.
2) the file erase management method of catalogue:
1. the system registry cellular logic address of catalogue is obtained.
2. according to the system registry cellular logic address of catalogue, the logical address and the logical space that obtain All Files body under this catalogue take, and carry out space reclamation one by one.
3. delete the file registration table unit of this catalogue, reclaim registration table space.
The present invention adopts said structure and method, catalogue and fileinfo is managed in the mode of registration table.Wherein, catalogue registry hive is responsible for the bibliography information storing all catalogues, and file registration table unit is responsible for the file index information storing All Files under assigned catalogue, and file body unit stores fileinfo and the data of concrete file.The length of each file index information in registration table is fixed, and can directly use file index number to find the offset address of respective file information.The present invention effectively can reduce the locating file time used, and search efficiency is high.
Below in conjunction with the drawings and specific embodiments, the invention will be further described.
Accompanying drawing explanation
Fig. 1 is management system structural representation of the present invention;
Fig. 2 is the smart card indices structural representation in the embodiment of the present invention;
Fig. 3 is the smart card indices storage organization schematic diagram in the embodiment of the present invention.
Embodiment
Referring to Fig. 1, smartcard file management system of the present invention, it comprises catalogue registry hive A, system registry unit B and file body unit C.Catalogue registry hive A stores the bibliography information that all catalogues comprise root directory and sub-directory, and each catalogue file header that catalogue registry hive A stores comprises the logical address of the system registry unit B of described catalogue.System registry unit B is responsible for the file index information storing All Files under assigned catalogue, and the index information that system registry unit B stores comprises the logical address of file body unit C.File body unit C stores fileinfo and the data of concrete file.The system registry cellular logic address that the File header information of catalogue registry hive A storage directory, the set membership of catalogue and each catalogue are corresponding; Bibliography information each catalogue in catalogue registry hive A occupies fixing size.The set membership of catalogue adopts in bibliography information, to store call number in catalogue registry hive A of the call number of parent directory in catalogue registry hive A, first sub-directory and the call number of fraternal catalogue in catalogue registry hive A realizes.File index information comprises the logical address of the short file identifier of information, file name and file body unit C required for file to be found, and file index information each file in system registry unit B occupies fixing size.
The management method of smartcard file management system of the present invention, its method step is:
1) file search method:
When 1. receiving selection catalogue instruction, in catalogue registry hive A, carry out directory name comparison search, file finds its system registry unit B logical address of rear preservation.
When 2. receiving file read-write instruction, according to current file registry hive logical address, documents index information in system registry unit B, obtains the file body logical address of match index information, carries out the access of file data according to file body logical address.
2) the file erase management method of catalogue:
1. the system registry cellular logic address of catalogue is obtained.
2. according to the system registry cellular logic address of catalogue, the logical address and the logical space that obtain All Files body under this catalogue take, and carry out space reclamation one by one.
3. delete the system registry unit B of this catalogue, reclaim registration table space.
In the present invention, a corresponding multiple system registry unit B of catalogue registry hive A, a corresponding multiple file body unit C of system registry unit B.The information that in system registry unit B, each file is corresponding comprises file type, file name, the short file identifier of file and file body cellular logic position.Each file needs at least to comprise in above-mentioned three index informations.The information that each file body unit C is corresponding comprises the data content of file operation authority, file body size and file.
Catalogue registry hive A in the present invention or system registry unit B can be multiple, and each catalogue registry hive A or system registry unit B are got up by logical address link.Now for a catalogue registry hive A or system registry unit B, implementing procedure is described:
Create first catalogue (root directory) front, need the registry hive A that first creaties directory, content is set to sky.When creating first catalogue (root directory), directory information is inserted the reference position of catalogue registry hive A, his father, son, number equal set of fraternal directory index are invalid.When creating other catalogue, the parent directory call number in this directory information is set, revises the fraternal directory index number of sub-directory call number in its parent directory or its adjacent brother.
See Fig. 2, for four catalogue process of establishing, catalogue 0 is root directory, and catalogue 1 and 2 is sub-directories of catalogue 0, and catalogue 3 is sub-directories of catalogue 1.
See Fig. 3, when setting up, the sub-directory call number of catalogue 0 is set to 1, and father and fraternal directory index number are invalid; The parent directory call number of catalogue 1 is set to 0, and sub-directory call number is set to 3, and fraternal directory index number is set to 2; The parent directory call number of catalogue 2 is set to 0, and brother and sub-directory call number are invalid; The parent directory call number of catalogue 3 is set to 1, and brother and sub-directory call number are invalid.
Before creating first file of each catalogue, need first to create system registry unit B, content is set to sky.When often creating a file, file index information is inserted the corresponding blank position of system registry unit B, and distribute its file body unit C, file out of Memory and file data content are inserted file body unit C.
When searching or operate the file content under catalogue, first in catalogue registry hive A, coupling is identical with the information of searching and meet the catalogue of current path, judge whether the authority of this catalogue meets according to the information in catalogue registry hive A, if met, by system registry unit B logical address, find respective file registry hive B.The file that coupling is identical with the information of searching from system registry unit B, by file body unit C logical address, finds respective file body unit C.Judge whether the authority of this file meets according to the information in file body unit C, if met, read or writing in files body content.

Claims (5)

1., based on a smartcard file management system for registration table, it comprises catalogue registry hive (A), file registration table unit (B) and file body unit (C), it is characterized in that; Described catalogue registry hive (A) stores the bibliography information that all catalogues comprise root directory and sub-directory, and each catalogue file header that catalogue registry hive (A) stores comprises the logical address of the file registration table unit (B) of described catalogue; The file index information of All Files under described file registration table unit (B) responsible storage assigned catalogue, the index information that file registration table unit (B) stores comprises the logical address of file body unit (C); Described file body unit (C) stores fileinfo and the data of concrete file.
2. smartcard file management system according to claim 1, is characterized in that; The system registry logical address that the described File header information of catalogue registry hive (A) storage directory, the set membership of catalogue and each catalogue are corresponding; Described bibliography information each catalogue in catalogue registry hive (A) occupies fixing size.
3. smartcard file management system according to claim 1 and 2, is characterized in that; The set membership of described catalogue adopts in bibliography information, to store call number in catalogue registry hive (A) of the call number of parent directory in catalogue registry hive (A), first sub-directory and the call number of fraternal catalogue in catalogue registry hive (A) realizes.
4. smartcard file management system according to claim 3, is characterized in that; Described file index information comprises the logical address of the short file identifier of information, file name and file body unit (C) required for file to be found; Described file index information each file in file registration table unit (B) occupies fixing size.
5., as claimed in claim 1 based on the management method of the smartcard file management system of registration table, it uses and comprises catalogue registry hive (A), file registration table unit (B) and file body unit (C), and its method step is:
1) file search method:
When 1. receiving selection catalogue instruction, in catalogue registry hive (A), carry out directory name comparison search, file finds its file registration table unit (B) logical address of rear preservation;
When 2. receiving file read-write instruction, according to current file registration table logical address, documents index information in file registration table unit (B), obtains the file body logical address of match index information, carries out the access of file data according to file body logical address;
2) the file erase management method of catalogue:
1. the system registry logical address of catalogue is obtained;
2. according to the system registry logical address of catalogue, the logical address and the logical space that obtain All Files body under this catalogue take, and carry out space reclamation one by one;
3. delete the file registration table unit (B) of this catalogue, reclaim registration table space.
CN201310486712.4A 2013-10-17 2013-10-17 A kind of smartcard file management system and its management method based on registration table Active CN104572681B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310486712.4A CN104572681B (en) 2013-10-17 2013-10-17 A kind of smartcard file management system and its management method based on registration table

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310486712.4A CN104572681B (en) 2013-10-17 2013-10-17 A kind of smartcard file management system and its management method based on registration table

Publications (2)

Publication Number Publication Date
CN104572681A true CN104572681A (en) 2015-04-29
CN104572681B CN104572681B (en) 2018-06-22

Family

ID=53088774

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310486712.4A Active CN104572681B (en) 2013-10-17 2013-10-17 A kind of smartcard file management system and its management method based on registration table

Country Status (1)

Country Link
CN (1) CN104572681B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107451239A (en) * 2017-07-26 2017-12-08 深圳Tcl新技术有限公司 Linux terminal and its file index method, computer-readable recording medium
CN107479834A (en) * 2017-08-28 2017-12-15 北京智芯微电子科技有限公司 A kind of file memory method and device based on COS
CN108880792A (en) * 2018-05-31 2018-11-23 北京智芯微电子科技有限公司 The close intelligent code key application interface implementation method of state and device
CN109656481A (en) * 2018-12-14 2019-04-19 成都三零嘉微电子有限公司 A method of it improving smart card document system FLASH and the service life is written
CN113127075A (en) * 2021-03-10 2021-07-16 东信和平科技股份有限公司 Method and device for managing registration table of smart card and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060184719A1 (en) * 2005-02-16 2006-08-17 Sinclair Alan W Direct data file storage implementation techniques in flash memories
CN101446984A (en) * 2009-01-09 2009-06-03 成都市华为赛门铁克科技有限公司 Method and device for storing files and method and device for deleting files
CN100545845C (en) * 2007-01-05 2009-09-30 北京握奇数据系统有限公司 A kind of method that realizes any directory application management at telecom intelligent card
US20130185508A1 (en) * 2012-01-12 2013-07-18 Fusion-Io, Inc. Systems and methods for managing cache admission

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060184719A1 (en) * 2005-02-16 2006-08-17 Sinclair Alan W Direct data file storage implementation techniques in flash memories
CN101147119A (en) * 2005-02-16 2008-03-19 桑迪士克股份有限公司 Direct data file storage implementation techniques in flash memories
CN100545845C (en) * 2007-01-05 2009-09-30 北京握奇数据系统有限公司 A kind of method that realizes any directory application management at telecom intelligent card
CN101446984A (en) * 2009-01-09 2009-06-03 成都市华为赛门铁克科技有限公司 Method and device for storing files and method and device for deleting files
US20130185508A1 (en) * 2012-01-12 2013-07-18 Fusion-Io, Inc. Systems and methods for managing cache admission

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107451239A (en) * 2017-07-26 2017-12-08 深圳Tcl新技术有限公司 Linux terminal and its file index method, computer-readable recording medium
CN107479834A (en) * 2017-08-28 2017-12-15 北京智芯微电子科技有限公司 A kind of file memory method and device based on COS
CN108880792A (en) * 2018-05-31 2018-11-23 北京智芯微电子科技有限公司 The close intelligent code key application interface implementation method of state and device
CN109656481A (en) * 2018-12-14 2019-04-19 成都三零嘉微电子有限公司 A method of it improving smart card document system FLASH and the service life is written
CN113127075A (en) * 2021-03-10 2021-07-16 东信和平科技股份有限公司 Method and device for managing registration table of smart card and storage medium
CN113127075B (en) * 2021-03-10 2022-07-12 东信和平科技股份有限公司 Method and device for managing registration table of smart card and storage medium

Also Published As

Publication number Publication date
CN104572681B (en) 2018-06-22

Similar Documents

Publication Publication Date Title
US9817588B2 (en) Memory device and operating method of same
CN104572681A (en) Intelligent card file management system and method based on registry
CN105824572B (en) A kind of disk storage space management method, device and storage equipment
CN103646063B (en) A kind of spaceborne high speed document management system
CN107220348B (en) Data collection method based on Flume and Alluxio
CN103838830A (en) Data management method and system of HBase database
US20150169570A1 (en) Method and device for managing data
CN108664577B (en) File management method and system based on FLASH idle area
CN103778120A (en) Global file identification generation method, generation device and corresponding distributed file system
CN104461917A (en) Nor Flash-based regional cycle storage method
CN108647278B (en) File management method and system
CN103870511A (en) Shared memory-based information inquiring equipment and method
CN102045427B (en) Method and device for managing calling cards with mobile terminal
CN104484619A (en) Method for accessing file system of smart card through application module
CN102915324B (en) Data storage and retrieval device and data storage and retrieval method
CN105303208B (en) A kind of IC card management method and system
US20140108721A1 (en) Data storage device and operating method thereof
CN101702180B (en) Method and system for searching associated field value
CN104572730A (en) Method and device for importing and exporting digital resources
CN106970964B (en) GPS data information query method and system based on shared memory
CN102902748A (en) Establishing method and managing method for file systems and random access memory (RAM) and communication chip of file systems
CN102521077A (en) Anti-plug read-in method and system for file
CN101777077A (en) Method for implementing file system of embedded device
CN108664578B (en) File circulating storage method and system
CN107454953B (en) EMV (empirical mode decomposition) implementation 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
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 100083 Beijing City, Haidian District Wudaokou Wangzhuang Road No. 1 Tongfang Technology Plaza D floor 18 West

Applicant after: BEIJING TONGFANG MICROELECTRONICS Co.,Ltd.

Address before: 100083 Haidian District Tsinghua Tongfang Technology Plaza, block A, floor 29, Beijing

Applicant before: BEIJING TONGFANG MICROELECTRONICS Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 100000 106A, Floor 1, B-1, Zhongguancun Dongsheng Science Park, 66 Xixiaokou Road, Haidian District, Northern Territory, Beijing

Patentee after: ZIGUANG TONGXIN MICROELECTRONICS CO.,LTD.

Country or region after: China

Address before: 100083 18 floor, West Tower, block D, Tongfang science and Technology Plaza, 1 Wang Zhuang Road, Wudaokou, Haidian District, Beijing.

Patentee before: BEIJING TONGFANG MICROELECTRONICS Co.,Ltd.

Country or region before: China