CN101256575B - Method and apparatus for improving veneer disk space utilization ratio - Google Patents

Method and apparatus for improving veneer disk space utilization ratio Download PDF

Info

Publication number
CN101256575B
CN101256575B CN2008100661850A CN200810066185A CN101256575B CN 101256575 B CN101256575 B CN 101256575B CN 2008100661850 A CN2008100661850 A CN 2008100661850A CN 200810066185 A CN200810066185 A CN 200810066185A CN 101256575 B CN101256575 B CN 101256575B
Authority
CN
China
Prior art keywords
file
disk
information
veneer
garbage files
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
CN2008100661850A
Other languages
Chinese (zh)
Other versions
CN101256575A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN2008100661850A priority Critical patent/CN101256575B/en
Publication of CN101256575A publication Critical patent/CN101256575A/en
Application granted granted Critical
Publication of CN101256575B publication Critical patent/CN101256575B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

The embodiment of the invention discloses a method and a device for improving veneer disc space utilization rate. The method for improving veneer disc space utilization rate comprises obtaining file information of a veneer valid file; scanning a veneer disc file and identifying a garbage document according to the file information of the veneer valid file; deleting the garbage document to increase residual disc space of the veneer. The method and the device provided by the embodiment of the invention can effectively increase disc residual space, improve disc space utilization rate, reduce the influence for software upgrade because of deficient space, improve success rate of the device software upgrade and more conveniently manage the veneer disc file.

Description

Improve the method and the device of veneer disk space utilization factor
Technical field
The present invention relates to the communication technology, particularly improve the method and the device of veneer disk space utilization factor.
Background technology
In the prior art, in the base station or the veneer disk space of other communication facilitiess when not enough, generally by manually-operated deletion veneer redundant file.
In process of the present invention, the inventor finds, because quantity of documents is more on the veneer, judgement to garbage files relies on operating personnel fully, need certain professional knowledge, the deletion garbage files inconvenience that operates, mistake is deleted file easily, and operate difficulty and workload of the many words of base station number is very big.
Summary of the invention
In view of this, the embodiment of the invention provides the method that improves the disk space utilization factor.
A kind of method that improves veneer disk space utilization factor is characterized in that, comprises
Obtain the fileinfo of veneer legitimate files;
Scanning veneer disk file, and carry out the identification of garbage files according to the fileinfo of described veneer legitimate files;
With described garbage files deletion, increase the remanence disk space of described veneer.
The embodiment of the invention also provides the device that improves the disk space utilization factor.
A kind of device that improves veneer disk space utilization factor is characterized in that, comprises version management module, file registration interface, disk file unit and garbage files processing module, wherein
Version management module is used for the log-on message and the configuration file that obtain board software bag of each functional module of receiving software by the file of file registration interface transmission;
The file registration interface is used for each functional module of software the fileinfo of each module is registered to version management module;
The disk file unit, required file, garbage files when being used for storing the file of file, the registration of each functional module of board software bag or operation;
The garbage files processing module, be used for the disk file that the scanning disk file unit is stored, and the fileinfo in the configuration file of the file registration information that information and version management module obtained of the disk file that scanned, board software bag compared, identify garbage files; And when needed with the garbage files deletion that identifies.
The method and apparatus of the raising disk space utilization factor that provides according to the embodiment of the invention, can increase the disk remaining space effectively, improve the disk space utilization factor, reduce the influence of insufficient space software upgrading, improve the success ratio of equipment software upgrading, more easily the management single board disk file.
Description of drawings
Fig. 1 is the process flow diagram that improves the method for disk space utilization factor in the embodiment of the invention one;
Fig. 2 is the process flow diagram that improves the method for disk space utilization factor in the embodiment of the invention two;
Fig. 3 is the classification chart of veneer disk file in the embodiment of the invention two;
Fig. 4 is the schematic representation of apparatus that improves the disk space utilization factor in the embodiment of the invention three.
Embodiment
In the equipment veneer operational process, can produce various redundant files on the veneer, and the disk that has expended veneer can utilize the space, and then cause the veneer operation some problems to occur, in the operational process of base station, be example with the actual several situations that run into:
(1) the production line employee generally adopts and manually uploads the upgrade operation at space base station of base station software bag, after finishing, upgrading do not delete the software package on the veneer, the back software package that causes delivering still remains on the veneer, takies disk space and makes upgrading for the first time because of the insufficient space failure.
(2) once ran on the net because Array Bound in the code causes the base station alarm daily record super large that generates, and nibbled disk space gradually and cause the base station travelling speed to be crossed slowly until producing unusual problem.
(3) be upgraded to redaction after, originally some file of legacy version no longer needs, but these files still can be present in the disk.
(4) exploitation or tester position, when testing, manually upload to temporary file on the veneer and be used to complete not deletion in time of back veneer.
As seen, on the veneer disk generation reason of redundant file can be summed up as following some:
The temporary file that produces when (1) artificially debugging veneer;
(2) code BUG (debugging) causes the spanned file super large;
(3) behind the edition upgrading rollback, existing version no longer needs the partial document of original version.
During each board software upgrading, the veneer file need be downloaded on the veneer from master control borad, in this process, if there is redundant file to take disk space on the veneer, can make the remaining space deficiency of veneer disk, and then can cause writing the dish failure, make the upgrading base station failure.
And concerning embedded system, disk space is the unusual resource of finite sum preciousness, is example with the distributed base station, and the Flash disk has only 32M.Too much garbage files exist can not get on the veneer cleaning, will inevitably influence the stable operation of system.
The embodiment of the invention one provides a kind of method that improves veneer disk space utilization factor, and flow process comprises as shown in Figure 1:
S101 obtains the fileinfo of veneer legitimate files;
The veneer legitimate files specifically can comprise file that file, the operation of each functional module of software registration is required and the file in the board software bag; Fileinfo can comprise file attribute sign, the file name of identification document or file, can also comprise the maximum occupation space amount of file.
S102 scans the veneer disk file, and carries out the identification of garbage files according to the fileinfo of the veneer legitimate files of obtaining among the S101;
The identification of garbage files can comprise that the fileinfo of the information of the disk file that will scan and the veneer legitimate files among the S101 compares, when the fileinfo of the information of the disk file that scans and all veneer legitimate files not simultaneously, judge that this disk file is a garbage files.
S103 with the garbage files deletion that identifies, increases the remanence disk space of veneer;
The scanning of veneer disk file, the identification of garbage files, the deletion of garbage files can start according to configuring condition; Configuring condition can comprise regularly startup or start before the board software upgrading.
By the method that the embodiment of the invention one provides, can increase the disk space of veneer effectively, reduce the various influences that insufficient space produces veneer work.
The embodiment of the invention two provides a kind of method that improves veneer disk space utilization factor, and flow process comprises as shown in Figure 2:
S201, each functional module of software by the file registration interface will be separately the required file A of module be registered to version management module.
Need the fileinfo of registration to comprise file attribute sign such as file, file, file name, maximum occupation space amount specifically can be as shown in Table 1.Wherein file attribute is masked as file or folder, in the present embodiment, and with 0 expression file, 1 identification document folder; File name is the veneer file name of band absolute path; Maximum occupation space amount is that current file allows the maximum empty area of a room that takies, and this information is meaningless to file.
The file attribute sign File name Maximum occupation space amount
0: file 1: file The veneer file name of band absolute path The maximum empty area of a room that this document allows to take (file this meaningless)
Table one
S202 is recorded in the information of the file B in the board software bag in the configuration file of software package.Fileinfo can obtain by reading this configuration file, and fileinfo is similar with table one.
File B in the board software bag is meant the file in the board software bag that current single board moving herein.
S203, scanning veneer disk file is carried out the identification of garbage files according to the information of the file B in the board software bag that is disposed among the information of the file A that is registered among the S201, the S202.This identification comprises that the information of the file B in the board software bag that is disposed in the information, S202 of the file A that is registered among the information of the disk file that will scan and the S201 compares, file name in the disk file information that is scanned both had been different from A, when also being different from B, judge that this disk file is a garbage files; Further, file name in the disk file information that is scanned is same as A or B, but when the file size in this disk file information has surpassed its registration or the fileinfo item in the configuration file---during the maximum occupying space amount, judge that also this disk file is a garbage files.Wherein, the classification of veneer disk file as shown in Figure 3, comprise the file of garbage files, the registration of each functional module and move required file and the board software bag in file.
The operation of this identification garbage files can regularly start, and also can carry out before each single board software edition upgrading, specifically decides on the actual disposition situation.
S204, the garbage files deletion with identifying among the S203 increases veneer remanence disk space.
The work of deletion garbage files can regularly start, and also can carry out before each single board software edition upgrading, specifically decides on the actual disposition situation.
The user can also start the cleaning of the redundant file on the base station at any time by the order of automatic cleaning garbage files.Automatically the order of cleaning garbage files can comprise the identification number of the veneer of garbage files for clearance, and this identification number can unique veneer of determining garbage files for clearance, and disk number (having a plurality of disk partition on some veneer).
The method that provides by the embodiment of the invention two, after the disk garbage files is cleared up, activate the operation that file is downloaded between the board software plate, carry out the upgrading of single board software edition, can reduce the influence of insufficient space effectively, improve the success ratio of board software upgrading software upgrading.
And in the embodiment of the invention two, the file name of the file name by fileinfo in the board software bag of configuration record and the fileinfo of the required registration of each software module, make identification that foundation arranged to garbage files, can be soon and temporary file that accurate recognition produces when going out artificial debugging veneer, code BUG (debugging) causes the spanned file super large, and behind the edition upgrading rollback, existing version no longer needs the redundant files such as partial document of original version, and in the fileinfo to the configuration of the required maximum empty area of a room that takies of file, make owing to Array Bound in the code, cause the alarm log super large that generates, nibble disk space gradually and cause the base station travelling speed to be crossed slowly can being well solved until producing unusual problem.
The embodiment of the invention three provides a kind of device that improves veneer disk space utilization factor, as shown in Figure 4, comprise that version management module 401, file registration interface 402, disk file unit 403, garbage files processing module 404 and garbage files processing start module 405, wherein
Version management module 401 is used for the log-on message and the configuration file that obtain board software bag of each functional module of receiving software by the file of file registration interface 402 transmissions;
File registration interface 402, be used for each functional module of software separately the fileinfo of module register to version management module 401;
Disk file unit 403, required file, garbage files when being used for storing the file of file, the registration of each module of board software bag or operation;
Garbage files processing module 404, be used for the disk file that scanning disk file unit 403 is stored, and the fileinfo Y in the configuration file of the information of the disk file that scanned and file registration information X that version management module 401 is obtained, board software bag is compared; File name in the disk file information that is scanned both had been different from X, when also being different from Y, judged that this disk file is a garbage files; Further, file name in the disk file information that is scanned is same as X or Y, but when the file size in this disk file information has surpassed its registration or the fileinfo item in the configuration file---during the maximum occupying space amount, judge that also this disk file is a garbage files; And when needed with the garbage files deletion that identifies;
Garbage files is handled and is started module 405, is used for according to concrete configuration, starts garbage files processing module 404 and carries out partly or entirely cleaning work such as the scanning of garbage files, identification, deletion.Wherein concrete configuration comprises regularly startup, or before the board software upgrading.Also can under the order of clearing up garbage files automatically, start.The identification number that can comprise the veneer of garbage files for clearance, this identification number can be unique be determined the veneer of garbage files for clearance, and disk number (having a plurality of disk partition on some veneer).
Concrete, garbage files processing module 404 comprises the disk file scanning element, file attribute sign comparing unit, file name comparing unit and garbage files identifying unit; Wherein
The disk file scanning element is used to scan and obtain the fileinfo of veneer disk file, and fileinfo comprises the file attribute sign and the file name of identification document or file;
File attribute sign comparing unit, the file attribute sign that is used for the information of the required file of the file of the file attribute sign of the veneer disk file that comparison disk file scanning element obtains and each functional module registration of described software and operation, and the file attribute sign in the information of file in the board software bag;
The file name comparing unit, the file name that is used for the information of the required file of the file of the file name of the veneer disk file that comparison disk file scanning element obtains and each functional module registration of described software and operation, and the file name in the information of file in the board software bag;
The garbage files identifying unit, be used to obtain the result of file attribute sign comparing unit and file name comparing unit, the information of file judges that this disk file is a garbage files not simultaneously in the information of the required file of the file of each functional module registration of the disk file information that scans and software and operation and board software bag.
Further, the disk file scanning element also is used to scan and obtain the disk space amount that takies of veneer disk file; The garbage files processing module also comprises and takies disk space amount comparing unit;
Take disk space amount comparing unit, be used for the required maximum empty area of a room that takies of file in the information of file in the required maximum empty area of a room that takies of this document of information of the required file of the file of the disk space amount that takies of the veneer disk file that comparison disk file scanning element obtains and each functional module registration of software and operation and the board software bag;
The garbage files identifying unit, also be used to obtain the result who takies disk space amount comparing unit, when the file attribute sign of the disk file that scans and file name are same as file attribute sign and file name in the required fileinfo of the file of each functional module registration of software and operation, or when being same as file attribute sign in the information of file in the board software bag and file name, if the disk space amount that takies of the disk file that scans judges that greater than the required maximum empty area of a room that takies of this document in the information of file in the information of the required file of the file of each functional module registration of software and operation or the board software bag this disk file that scans is a garbage files.
Device by the embodiment of the invention three provides can reduce the influence of insufficient space to software upgrading effectively, improve the success ratio of board software upgrading, and the file registration interface can make the management of veneer file more convenient.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of programmed instruction, aforementioned program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
More than disclosed only be several specific embodiment of the present invention, obviously, those skilled in the art can carry out various changes and modification and not break away from the spirit and scope of the present invention the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (7)

1. a method that improves veneer disk space utilization factor is characterized in that, comprises
Obtain the fileinfo of veneer legitimate files;
Scanning veneer disk file, and carry out the identification of garbage files according to the fileinfo of described veneer legitimate files;
With described garbage files deletion, increase the remanence disk space of described veneer;
The described fileinfo that obtains the veneer legitimate files specifically comprises:
Obtain the information of file in the information of the required file of the file of each functional module of software registration and operation and the board software bag; The information of described file comprises file attribute sign and file name;
The identification of described garbage files specifically comprises:
The information of file compares in the information of the file that the file of the information of the disk file that scans and each functional module registration of described software and operation is required and the board software bag, the information of file judges that described disk file is a garbage files not simultaneously in the information of the required file of the file of each functional module registration of the described disk file information that scans and described software and operation and described board software bag.
2. the method for raising veneer disk space utilization factor as claimed in claim 1 is characterized in that, the information of described file also comprises the required maximum empty area of a room that takies of file;
The identification of described garbage files also comprises: when the file attribute sign of the described disk file that scans and file name are same as file attribute sign and file name in the required fileinfo of the file of each functional module registration of described software and operation, or when being same as file attribute sign in the information of file in the described board software bag and file name, if the disk space amount that takies of the described disk file that scans judges that greater than the required maximum empty area of a room that takies of this document in the information of file in the information of the required file of the file of each functional module registration of described software and operation or the described board software bag the described disk file that scans is a garbage files.
3. the method for raising veneer disk space utilization factor as claimed in claim 1 is characterized in that, the scanning of described veneer disk file, and the identification of garbage files, the deletion of garbage files starts according to configuring condition; Described configuring condition comprise regularly start, before the board software upgrading or when receiving the order of clearing up garbage files.
4. the method for raising veneer disk space utilization factor as claimed in claim 3 is characterized in that the order of described cleaning garbage files comprises the identification number and the disk number of the veneer of garbage files for clearance.
5. a device that improves veneer disk space utilization factor is characterized in that, comprises version management module, file registration interface, disk file unit and garbage files processing module, wherein
Version management module is used for the log-on message and the configuration file that obtain board software bag of each functional module of receiving software by the file of file registration interface transmission;
The file registration interface is used for each functional module of software the fileinfo of each module is registered to version management module;
The disk file unit, required file, garbage files when being used for storing the file of file, the registration of each functional module of board software bag or operation;
The garbage files processing module, be used for the disk file that the scanning disk file unit is stored, and the fileinfo in the configuration file of the file registration information that information and version management module obtained of the disk file that scanned, board software bag compared, identify garbage files; And when needed with the garbage files deletion that identifies;
Described garbage files processing module comprises the disk file scanning element, file attribute sign comparing unit, file name comparing unit and garbage files identifying unit; Wherein
Described disk file scanning element is used to scan and obtain the fileinfo of veneer disk file, and described fileinfo comprises the file attribute sign and the file name of identification document or file;
Described file attribute sign comparing unit, the file attribute sign that is used for the information of the required file of the file of the file attribute sign of the veneer disk file that more described disk file scanning element obtains and each functional module registration of described software and operation, and the file attribute sign in the information of file in the described board software bag;
Described file name comparing unit, the file name that is used for the information of the required file of the file of the file name of the veneer disk file that more described disk file scanning element obtains and each functional module registration of described software and operation, and the file name in the information of file in the described board software bag;
Described garbage files identifying unit, be used to obtain the result of described file attribute sign comparing unit and described file name comparing unit, the information of file judges that described disk file is a garbage files not simultaneously in the information of the required file of the file of each functional module registration of the described disk file information that scans and described software and operation and described board software bag.
6. the device of raising veneer disk space utilization factor as claimed in claim 5, it is characterized in that, comprise that also the garbage files processing starts module, be used for, start the garbage files processing module and carry out partly or entirely cleaning work such as the scanning of garbage files, identification, deletion according to concrete configuration.
7. as the device of claim 5 or 6 described raising veneer disk space utilization factors, it is characterized in that described disk file scanning element also is used to scan and obtain the disk space amount that takies of veneer disk file; Described garbage files processing module also comprises and takies disk space amount comparing unit;
The described disk space amount comparing unit that takies, the required maximum empty area of a room that takies of this document that is used for the information of the required file of the file of the disk space amount that takies of the veneer disk file that more described disk file scanning element obtains and each functional module registration of described software and operation, and the required maximum empty area of a room that takies of this document in the information of file in the described board software bag;
Described garbage files identifying unit, also be used to obtain the described result who takies disk space amount comparing unit, when the file attribute sign of the described disk file that scans and file name are same as file attribute sign and file name in the required fileinfo of the file of each functional module registration of described software and operation, or when being same as file attribute sign in the information of file in the described board software bag and file name, if the disk space amount that takies of the described disk file that scans judges that greater than the required maximum empty area of a room that takies of this document in the information of file in the information of the required file of the file of each functional module registration of described software and operation or the described board software bag the described disk file that scans is a garbage files.
CN2008100661850A 2008-03-25 2008-03-25 Method and apparatus for improving veneer disk space utilization ratio Active CN101256575B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008100661850A CN101256575B (en) 2008-03-25 2008-03-25 Method and apparatus for improving veneer disk space utilization ratio

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008100661850A CN101256575B (en) 2008-03-25 2008-03-25 Method and apparatus for improving veneer disk space utilization ratio

Publications (2)

Publication Number Publication Date
CN101256575A CN101256575A (en) 2008-09-03
CN101256575B true CN101256575B (en) 2010-06-23

Family

ID=39891402

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008100661850A Active CN101256575B (en) 2008-03-25 2008-03-25 Method and apparatus for improving veneer disk space utilization ratio

Country Status (1)

Country Link
CN (1) CN101256575B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103188325A (en) * 2011-12-31 2013-07-03 上海百事通信息技术有限公司 Operator file transfer protocol (FTP) document processing system
CN103324639A (en) * 2012-03-23 2013-09-25 腾讯科技(深圳)有限公司 Useless item clearing method and device
CN102880713B (en) * 2012-09-29 2016-08-03 北京奇虎科技有限公司 File clean-up method and device
CN105446987B (en) * 2014-06-30 2019-03-26 北京金山安全软件有限公司 Picture garbage file identification method and device and electronic equipment

Also Published As

Publication number Publication date
CN101256575A (en) 2008-09-03

Similar Documents

Publication Publication Date Title
CN1313923C (en) A software distribution method and system
CN101311911B (en) Staging memory system and data migration method thereof
CN100541489C (en) External metadata is handled
CN101826029B (en) Methods and systems for merging virtualization sublayers
CN103984641B (en) A kind of memory space recovery method and its device based on simplify configuration technology
CN100426291C (en) System and method to realize database upgrading in background management system
CN101443761A (en) QOS-enabled lifecycle management for file systems
CN104360892B (en) Create the system and method for virtual machine
CN101256575B (en) Method and apparatus for improving veneer disk space utilization ratio
CN101739310A (en) Method and device for cycling backup
CN103677880A (en) Information processing method and electronic equipment
CN101790257A (en) Method for memorizing data and network management system
CN108628542A (en) A kind of Piece file mergence method and controller
US20090234843A1 (en) Relative document representing system, relative document representing method, and computer readable medium
CN100594480C (en) Copying method, copying method and block identification data acquisition method
CN100419680C (en) Method and apparatus for loading compatibly equipment software in distributed control system
US20050144615A1 (en) Modularized custom-developed software package producing method and system
CN107807791A (en) A kind of hard disc of computer sequence binding method and system
JP4854973B2 (en) Storage control program, storage control method, storage control device, and storage control system
CN103631831A (en) Data backup method and device
US20020133683A1 (en) Method and system for reducing fragmentation
CN107220146A (en) A kind of file scan restoration methods and device
US20040194062A1 (en) Data storage system and method for testing the same
CN1312550C (en) Method for dumping data to mobile storage medium and extracting data therefrom
US20220365677A1 (en) Storage management device, storage management method, and program

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