CN102567501A - File management system in small storage space - Google Patents

File management system in small storage space Download PDF

Info

Publication number
CN102567501A
CN102567501A CN2011104397473A CN201110439747A CN102567501A CN 102567501 A CN102567501 A CN 102567501A CN 2011104397473 A CN2011104397473 A CN 2011104397473A CN 201110439747 A CN201110439747 A CN 201110439747A CN 102567501 A CN102567501 A CN 102567501A
Authority
CN
China
Prior art keywords
file
storage space
management system
document
unit
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
CN2011104397473A
Other languages
Chinese (zh)
Other versions
CN102567501B (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.)
SHENZHEN ZHENGDONGYUAN TECHNOLOGY CO., LTD.
Original Assignee
GUANGZHOU SYSUR MICROELECTRONICS Inc
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 GUANGZHOU SYSUR MICROELECTRONICS Inc filed Critical GUANGZHOU SYSUR MICROELECTRONICS Inc
Priority to CN201110439747.3A priority Critical patent/CN102567501B/en
Publication of CN102567501A publication Critical patent/CN102567501A/en
Application granted granted Critical
Publication of CN102567501B publication Critical patent/CN102567501B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Storage Device Security (AREA)

Abstract

The invention discloses a file management system in a small storage space. The file management system comprises a file creating unit, a file deleting unit, a file operating unit and a file storage space managing unit, wherein the file creating unit comprises a file creation safety condition judging operation, a file space application operation, a file registration operation and a file control information writing-in operation and is used for realizing the distribution of file space against different file categories and writing-in of file control information; the file deleting unit comprises safety state judgment and file logic deletion and can realize the deletion of a file application and simultaneously retain the continuity of the file system; the file operating unit comprises file selection, data saving, data reading, data modification and a file reading and writing operation and can realize selection, saving, reading and modification of a file and control the access of the file; and the file storage space managing unit comprises file space distribution and file operation boundary management and can realize the file operation boundary control and prevent a cross-border operation during the file operation process.

Description

The file management system of little storage space
Technical field
The present invention relates to a kind of file management system, specifically, relate to a kind of file management system that is directed against the little storage space in smart card operating system field.
Background technology
Smart card (Smart Card) is a kind of common name that is embedded with the plastic clip of IC chip, and by the difference of embedded chip type, IC-card can be divided three classes: storage card, logic encryption card and CPU card, but have only the just real smart card of meaning at last of CPU card.Integrated circuit in the smart card (CPU card) comprises central processing unit (CPU), programmable read only memory EEPROM, random access memory ram and is solidificated in the card internal operating system COS (Chip Operating System) in the read only memory ROM that general the employing is integrated with the overhead control unit of the microcontroller (MCU) of CPU, storer and peripheral hardware as smart card.
The operating system of smart card (Chip Operation System is called for short COS) is the core technology of smart card at software view.It is a monitoring software in the intelligent card chip in essence, is used to receive and handle the various instructions that the external world issues smart card, the information in the control card, and provide corresponding reply data.The status of COS in smart card and effect are analogous to the status and the effect of the various operating systems of using on the PC; Be that the user makes up the operating platform of oneself using in card; It will directly be responsible for the various hardware module management in the smart card and use; Keep apart hardware platform and user's use, and unified standard and restriction have been made in user's operation and use, thereby guaranteed the practicality and the security of smart card.Smart card is divided into contact card and non-contact card according to the difference of communication protocol in addition.
COS is a dedicated system rather than general-purpose system, and COS generally is the characteristics according to certain smart card, and the most of actual function of accomplishing is followed same international standard and developed according to the certain applications standard.Generally to be used for the space of file storage be 8KB, 16KB, 32KB to existing intelligent card chip on the market, and generally before individualized beginning, can file system be made unified planning, and in subsequent process, change less.
The high speed development of smart card techniques is widely used in various fields, but still there is following deficiency in existing smart card operating system file management method:
One, there is not a kind of special file management method to little storage space; The file management method that existing file management method mainly contains FAT, NTFS etc. or simplifies or expand based on these file management methods; These management methods can not well be applied to little storage space, especially are similar to the storage space about the 32KB of field of intelligent cards.
Two, the file management of the little storage space of field of intelligent cards is to the characteristics of field of intelligent cards, from the operation characteristic of smart card; The file system of intelligence jig was generally just created before personalization and is accomplished, and whole life seldom need be extended application, creates file; Operations such as deleted file, from the hardware characteristics of smart card, smart card has requirement to size of code; Generally can not surpass 32KB, this application with expansion day by day produces contradiction.
Summary of the invention
To above deficiency; The invention provides a kind of file management system of little storage space, it can realize the file management of little storage space, satisfies the file management needs of smart card; Simultaneously to the smart card operation characteristics; Simplified-file management, greatly the reduction of degree the required size of code of management method, practical more, efficient.
The file management system of little storage space of the present invention comprises: realizes the file space of different kind of document is distributed, and the document creation unit that writes of document control information; The deletion of realization to using, the successional file delete unit of document retaining system simultaneously; Realization to the selection of file, deposit in, read and revise, and the file operation unit of control documents access; Realization prevents the file storage administrative unit of crossing the border in the file operation process and operating to the boundary Control of file operation.
Said document creation unit comprises document creation safety condition decision operation, file space application operation, file registration operation and the write operation of document control information.
Said kind of document comprises binary file, fixed-length record file, variable-length record file and cycle index file.
Said binary file, variable-length record file, fixed-length record file and cycle index file meet the ISO-7816-4 standard.
Said file delete unit comprises safe condition decision operation and file logic deletion action.
Said file logic deletion action is not meant carries out physics deletion and space reclamation to file, only from logical level deletion and reservation associated documents information.
Said file operation unit comprises that file selection operation, data deposit operation, data read operation, data modification operation and file read-write control operation in.
Said file storage administrative unit comprises file space batch operation and file operation border control operation.
Said file storage administrative unit is followed the mode of linear distribution, and said file storage administrative unit only allows current file operation, the operation of can not crossing the border.
Beneficial effect of the present invention:
1, the present invention provides a kind of special management system that is directed against the little storage space of field of intelligent cards, has merged the smart card operation characteristics, has strengthened file management efficient.
2, the invention provides a kind of file search method, and can keep the search correctness in the random data zone, strengthened the practicality and the reliability of smart card system.
3, the invention provides a kind of logical file delet method, this is on a kind of characteristics that are based upon the smart card file management, has strengthened the security of file delete and the simplicity of mechanism.
4, the present invention is directed to smart card operation characteristics and handling characteristics, optimized file management method, be easy to code and realize that size of code is little simultaneously, is easy to application extension.
Description of drawings
Fig. 1 is the schematic diagram of the function of the file management system of little storage space of the present invention;
Fig. 2 is the file system stored logic structural drawing of document creation of the present invention unit;
Fig. 3 is the file system storage physical arrangement figure of document creation of the present invention;
Fig. 4 is the file system files control information form of document creation of the present invention;
Fig. 5 is a file delete of the present invention unit authentication mechanism process flow diagram.
Embodiment
Below in conjunction with accompanying drawing the present invention is further set forth.
As shown in Figure 1; The file management system of little storage space of the present invention comprises document creation unit 10, file delete unit 20, file operation unit 30 and file storage administrative unit 40; The distribution of the file space that said document creation unit 10 is realized different kind of document are sent out, and the writing of document control information; The deletion to file applications is realized through corresponding authentication mechanism in said file delete unit 20, simultaneously the continuity of document retaining system; Said file operation unit 30 realize to file selection, deposit in, read and revise, and the access of control documents; The boundary Control that said file storage administrative unit 40 realizes file operation prevents the operation of crossing the border in the file operation process.
Document creation unit 10 comprises document creation safety condition decision operation, file space application operation, file registration operation and the write operation of document control information; The kind of document that it is directed against comprises binary file, fixed-length record file, variable-length record file and cycle index file, and these binary files, variable-length record file, fixed-length record file and cycle index file meet the ISO-7816-4 standard.Be according to the file logical structure that designs the document creation unit of accomplishing 10 and be mapped to amount of physical memory like Fig. 2, Fig. 3 and Fig. 4; The logical organization of file space allocation scheme is in same other file of level and in physical space, deposits continuously; Each file comprises document control information and file body; In the document creation stage, the reference position in the file allocation space writes document control information.
File delete unit 20 comprises safe condition decision operation and file logic deletion action, and said file logic deletion action is not meant carries out physics deletion and space reclamation to file, only from logical level deletion and reservation associated documents information.Fig. 5 is the process flow diagram of the double authentication mode of file delete unit 20; Because this delet method is considered from special feature, only support the catalogue file deletion, it is relevant with catalog control authority own that the file of a catalogue is not only; Simultaneously also relevant with higher level's catalog control authority; From this kind consideration, the presents delete cells just can the delete file operation authority through the double authentication mode, does not occupy the space but do not reclaim file.
File operation unit 30 comprises that file selection operation, data deposit operation, data read operation, data modification operation and file read-write control operation in.File operation unit 30 is through selection mode selection step by step, and for example the EF1 file is selected the PSE file earlier, selects the ADF1 file again, selects the EF1 file again.When file is in selection mode, just can carry out other operations, and if only if, and file is selected and have corresponding authority, just can deposit in, read and retouching operation file.
File storage administrative unit 40 comprises file space batch operation and file operation border control operation; File storage administrative unit 40 is through setting up firewall system; In each file operation, all need have only legal operation just can carry out through the control of fire wall.
The above is merely preferred embodiments of the present invention; The present invention is not limited to above-mentioned embodiment; In implementation process, possibly there is local small structural modification; If various changes of the present invention or modification are not broken away from the spirit and scope of the present invention, and belong within claim of the present invention and the equivalent technologies scope, then the present invention also is intended to comprise these changes and modification.

Claims (9)

1. the file management system of a little storage space is characterized in that, it comprises:
Realization distributes the file space of different kind of document, and the document creation unit that writes of document control information;
The deletion of realization to using, the successional file delete unit of document retaining system simultaneously;
Realization to the selection of file, deposit in, read and revise, and the file operation unit of control documents access;
Realization prevents the file storage administrative unit of crossing the border in the file operation process and operating to the boundary Control of file operation.
2. the file management system of little storage space according to claim 1 is characterized in that, said document creation unit comprises document creation safety condition decision operation, file space application operation, file registration operation and the write operation of document control information.
3. the file management system of little storage space according to claim 1 is characterized in that, said kind of document comprises binary file, fixed-length record file, variable-length record file and cycle index file.
4. the file management system of little storage space according to claim 3 is characterized in that, said binary file, variable-length record file, fixed-length record file and cycle index file meet the ISO-7816-4 standard.
5. the file management system of little storage space according to claim 1 is characterized in that, said file delete unit comprises safe condition decision operation and file logic deletion action.
6. the file management system of little storage space according to claim 5 is characterized in that, said file logic deletion action is not meant carries out physics deletion and space reclamation to file, only from logical level deletion and reservation associated documents information.
7. the file management system of little storage space according to claim 1 is characterized in that, said file operation unit comprises that file selection operation, data deposit operation, data read operation, data modification operation and file read-write control operation in.
8. the file management system of little storage space according to claim 1 is characterized in that, said file storage administrative unit comprises file space batch operation and file operation border control operation.
9. the file management system of little storage space according to claim 8 is characterized in that, said file storage administrative unit is followed the mode of linear distribution, and said file storage administrative unit only allows current file operation, the operation of can not crossing the border.
CN201110439747.3A 2011-12-22 2011-12-22 File management system in small storage space Expired - Fee Related CN102567501B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110439747.3A CN102567501B (en) 2011-12-22 2011-12-22 File management system in small storage space

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110439747.3A CN102567501B (en) 2011-12-22 2011-12-22 File management system in small storage space

Publications (2)

Publication Number Publication Date
CN102567501A true CN102567501A (en) 2012-07-11
CN102567501B CN102567501B (en) 2014-12-31

Family

ID=46412902

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110439747.3A Expired - Fee Related CN102567501B (en) 2011-12-22 2011-12-22 File management system in small storage space

Country Status (1)

Country Link
CN (1) CN102567501B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105981013A (en) * 2014-02-20 2016-09-28 华为技术有限公司 System and method for an efficient database storage model based on sparse files
CN107851122A (en) * 2015-08-05 2018-03-27 华为技术有限公司 The data of Mass storage and retrieval with good bounded life
CN109656874A (en) * 2018-11-28 2019-04-19 烟台蓝洋电子科技有限责任公司 Binary file management system implementation method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1466060A (en) * 2002-06-10 2004-01-07 三星电子株式会社 Flash memory file system
CN1632765A (en) * 2004-12-31 2005-06-29 大唐微电子技术有限公司 A flash memory file system management method
CN101441634A (en) * 2007-11-19 2009-05-27 凤凰微电子(中国)有限公司 Embedded type file system suitable for smart card application environment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1466060A (en) * 2002-06-10 2004-01-07 三星电子株式会社 Flash memory file system
CN1632765A (en) * 2004-12-31 2005-06-29 大唐微电子技术有限公司 A flash memory file system management method
CN101441634A (en) * 2007-11-19 2009-05-27 凤凰微电子(中国)有限公司 Embedded type file system suitable for smart card application environment

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105981013A (en) * 2014-02-20 2016-09-28 华为技术有限公司 System and method for an efficient database storage model based on sparse files
CN105981013B (en) * 2014-02-20 2019-06-28 华为技术有限公司 A kind of system and method for the database storage model based on sparse file
CN107851122A (en) * 2015-08-05 2018-03-27 华为技术有限公司 The data of Mass storage and retrieval with good bounded life
CN109656874A (en) * 2018-11-28 2019-04-19 烟台蓝洋电子科技有限责任公司 Binary file management system implementation method
CN109656874B (en) * 2018-11-28 2024-03-08 山东蓝洋智能科技有限公司 Method for implementing file management system in dual system

Also Published As

Publication number Publication date
CN102567501B (en) 2014-12-31

Similar Documents

Publication Publication Date Title
CN106293521B (en) A kind of flash translation layer (FTL) management method that mapping granule is adaptive
CN103150125B (en) Method for prolonging service life of power-down protection date buffer memory and smart card
CN103996412A (en) Power-fail protection method applied to intelligent-card nonvolatile memories
CN101582076A (en) Data de-duplication method based on data base
CN106339258A (en) Management method and device for shared memory of programmable logic device and microprocessor
CN101510332B (en) Method and apparatus for managing memory space of smart card
CN103034592B (en) Data processing method and device
Bolchini et al. Logical and physical design issues for smart card databases
TW201243593A (en) Data writing method, memory controller and memory storage apparatus
CN106155596A (en) Method for writing data and device
CN109656481A (en) A method of it improving smart card document system FLASH and the service life is written
CN102508723A (en) Power-failure protection method orientated to IC (Integrated Circuit) card
CN102567501B (en) File management system in small storage space
CN109597580A (en) Flash operating method suitable for the storage of intelligent electric meter load curve
CN104573571A (en) Method for generating security file system of smart card
CN100543748C (en) A kind of method and system of utilizing file allocation table to carry out the file tracking
CN111031100A (en) Extended block chain storage method, system and medium
CN103218300B (en) Data processing method, Memory Controller and memorizer memory devices
CN102521077B (en) Anti-plug read-in method and system for file
CN103258044B (en) Two-tuple NANDFLASH data file management method oriented to DSP
CN105303208B (en) A kind of IC card management method and system
CN102651079A (en) IC (integrated circuit) card management method occupying memory space for a short time and IC card management system
CN104992212B (en) Tourism smart card system
CN102521146A (en) Data addressing storage method of flash memory block subdivision
CN101751450B (en) Information sharing realizing method for CPU card with multi-application COS

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
C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20160330

Address after: Longgang District of Shenzhen City, Guangdong province 518115 Henggang Street Community Health Dakang Road No. 10

Patentee after: SHENZHEN ZHENGDONGYUAN TECHNOLOGY CO., LTD.

Address before: Bureau of science and technology No. 88 block A, 510000 Guangdong Province, Huadu District of Guangzhou City Road Building 6 days

Patentee before: Guangzhou Sysur Microelectronics, Inc.

PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: File management system in small storage space

Effective date of registration: 20160517

Granted publication date: 20141231

Pledgee: Guangdong Guangdong Bank Shenzhen branch of Limited by Share Ltd

Pledgor: SHENZHEN ZHENGDONGYUAN TECHNOLOGY CO., LTD.

Registration number: 2016990000395

PLDC Enforcement, change and cancellation of contracts on pledge of patent right or utility model
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20141231

Termination date: 20201222

CF01 Termination of patent right due to non-payment of annual fee