CN105488153A - Method and device for appending mirror image based on binary stream - Google Patents

Method and device for appending mirror image based on binary stream Download PDF

Info

Publication number
CN105488153A
CN105488153A CN201510850191.5A CN201510850191A CN105488153A CN 105488153 A CN105488153 A CN 105488153A CN 201510850191 A CN201510850191 A CN 201510850191A CN 105488153 A CN105488153 A CN 105488153A
Authority
CN
China
Prior art keywords
file
original image
binary stream
mirror image
added
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.)
Pending
Application number
CN201510850191.5A
Other languages
Chinese (zh)
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.)
Beijing VRV Software Corp Ltd
Original Assignee
Beijing VRV Software Corp 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 VRV Software Corp Ltd filed Critical Beijing VRV Software Corp Ltd
Priority to CN201510850191.5A priority Critical patent/CN105488153A/en
Publication of CN105488153A publication Critical patent/CN105488153A/en
Pending legal-status Critical Current

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/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/164File meta data generation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

The invention discloses a method and device for appending a mirror image based on binary stream. The method comprises: S101, using an image mastering applications programming interface IMAPI or small computer system interface SCSI by an optical disk engine to read the file information of an optical disk, setting first marking information in a first original mirror image; S102, obtaining a file and/or a folder to be appended, and writing the file and/or the folder to be appended to the first original mirror image according to the first marking information and the ISO9660 protocol in binary stream mode. Through the invention, the file and the folder can be appended in high efficiency; especially, a small file is appended to a large mirror image file; therefore, the recording time is saved, and the recording efficiency of the optical disk is improved.

Description

The method and apparatus of mirror image is added based on binary stream
Technical field
The present invention relates to computer documents area information storage, be specifically related to a kind of method and apparatus adding mirror image based on binary stream.
Background technology
Along with the development of computer documents imprinting technology, make mirror image and carry out the favor that imprinting is more and more subject to user, but still there is a lot of problem in current mirror image imprinting technology, traditional mirror image append file or file divide following flow process: file or folder-> that original image 1-> will add extracts fileinfo in mirror image 1 and data and the fileinfo that will add and combines and generate mirror image 2 – > and delete mirror image 1, be mirror image 1 by the name nominating of mirror image 2, above flow process can in the fileinfo reading mirror image 1 and data procedures, lose time in a large number.
With the WinISO of main flow, CD burning great master, Nero and UltraISO is example, append file mechanism length consuming time inside the existing CD mirroring produced, additional mirror image imprinting can not be made, CD is not carved by additional mirror image this continuing, mirror image iso file can arbitrarily can be opened by winisoultralISO and other tools of compression, affect data content safety, data are not encrypted in mirror image manufacturing process, data message is easy to be replicated leakage, user can not add the information of oneself needs from mirror image inside and check, and multiple section CD disc many parts of imprinting flow processs are slow, efficiency is low.
Summary of the invention
The compact disc image files capacity produced due to prior art is little, and efficiency is low, can not make the problems such as additional mirror image, and the present invention proposes a kind of method and apparatus adding mirror image based on binary stream.
First aspect, the present invention proposes a kind of method adding mirror image based on binary stream, comprising:
S101, use CD burning development interface (ImageMasteringApplicationsProgrammingInterface, be called for short IMAPI) or small computer system interface (SmallComputerSystemInterface, be called for short SCSI) engine reading optical file information, and the first label information is set in the first original image;
S102, obtain file to be added and/or file, and according to described first label information and ISO9660 agreement in the mode of binary stream by file to be added and/or described first original image of file write.
Preferably, comprise before step S101:
S100, according to ISO9660 agreement, file to be written and/or file are write the second original image in the mode of binary stream, and by described second original image imprinting to CD.
Preferably, step S100 comprises:
Second label information is set in the second original image, and in described second original image, writes file to be added and/or file in the mode of binary stream according to described second label information and ISO9660 agreement.
Preferably, step S102 comprises:
By described first original image of file encryption to be added write.
Preferably, step S102 comprises:
Add disc management information in file to be added and/or file, and in the mode of binary stream, described disc management information is write described first original image according to described first label information and ISO9660 agreement.
Second aspect, the present invention also proposes a kind of device adding mirror image based on binary stream, comprising:
Original image read module, for using CD burning development interface IMAPI or small computer system interface SCSI engine to read optical file information, and arranges the first label information in the first original image;
Original image adds module, for obtaining file to be added and/or file, and in the mode of binary stream, file to be added is write described first original image according to described first label information and ISO9660 agreement.
Preferably, also comprise:
Original image writing module, for writing second original image by file to be written and/or file in the mode of binary stream according to ISO9660 agreement, and by described second original image imprinting to CD.
Preferably, described original image writing module also for:
Second label information is set in described second original image, and in described second original image, writes file to be added and/or file in the mode of binary stream according to described second label information and ISO9660 agreement.
Preferably, described original image add module also for:
By described first original image of file encryption to be added write.
Preferably, described original image add module also for:
Add disc management information in file to be added and/or file, and in the mode of binary stream, described disc management information is write described first original image according to described first label information and ISO9660 agreement.
As shown from the above technical solution, the present invention can append file and file efficiently, especially in a large image file, removes an additional small documents, thus saves writing time, improve CD burning efficiency.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these figure.
A kind of schematic flow sheet adding the method for mirror image based on binary stream that Fig. 1 provides for one embodiment of the invention;
A kind of structural representation adding the device of mirror image based on binary stream that Fig. 2 provides for one embodiment of the invention;
The mirror image that a kind of device adding mirror image based on binary stream that Fig. 3 provides for one embodiment of the invention produces;
A kind of device adding mirror image based on binary stream that Fig. 4 provides for one embodiment of the invention adds file on the basis of original image;
Fig. 5 for a kind of device adding mirror image based on binary stream that one embodiment of the invention provides on the basis of original image, add file after design sketch;
A kind of device adding mirror image based on binary stream that Fig. 6 provides for one embodiment of the invention adds file on the basis of original image;
Fig. 7 for a kind of device adding mirror image based on binary stream that one embodiment of the invention provides on the basis of original image, add file after design sketch;
A kind of device adding mirror image based on binary stream that Fig. 8 provides for one embodiment of the invention adds the mirror image after file and file;
A kind of device additional mirror image in original image adding mirror image based on binary stream that Fig. 9 provides for one embodiment of the invention;
Figure 10 to add after mirror image imprinting to the design sketch of CD for a kind of device adding mirror image based on binary stream that one embodiment of the invention provides;
The design sketch that Figure 11 opens same mirror image encryption front and back decompression tool for a kind of device adding mirror image based on binary stream that one embodiment of the invention provides.
Embodiment
Below in conjunction with accompanying drawing, the embodiment of invention is further described.Following examples only for technical scheme of the present invention is clearly described, and can not limit the scope of the invention with this.
Fig. 1 shows a kind of schematic flow sheet adding the method for mirror image based on binary stream that one embodiment of the invention provides, and comprising:
S101, use IMAPI or SCSI engine read optical file information, and arrange the first label information in the first original image;
S102, obtain file to be added and/or file, and according to described first label information and ISO9660 agreement in the mode of binary stream by file to be added and/or described first original image of file write.
Traditional mirror image append file and/or file divide following flow process: the file that original image 1-> will add and/or file-> extract fileinfo in mirror image 1 and data and the fileinfo that will add and combine and generate mirror image 2 – > and delete mirror image 1, be mirror image 1 by the name nominating of mirror image 2, above flow process in the fileinfo reading mirror image 1 and data procedures, can be lost time in a large number.And the flow process of the present embodiment append file and/or file is: the file that original image 1-> will add and/or file-> directly add file and/or file clips to mirror image 1 thus improves formation efficiency.
The present embodiment can efficiently append file and/or file, especially in a large image file, removes an additional small documents, thus saves writing time, improve CD burning efficiency.
As the preferred version of the present embodiment, comprise before step S101:
S100, according to ISO9660 agreement, file to be written and/or file are write the second original image in the mode of binary stream, and by described second original image imprinting to CD.
The present embodiment provides the generation of original image, and directly utilizes original image append file and/or file.The disc of not closing for non-NULL can make additional mirror image, and directly adds file at mirror image.
Particularly, step S100 comprises:
Second label information is set in the second original image, and in described second original image, writes file to be added and/or file in the mode of binary stream according to described second label information and ISO9660 agreement.
Further, step S102 comprises:
By described first original image of file encryption to be added write.
Traditional mirror image generates and just utilizes agreement directly file generated iso file; do not consider the security of file content; the easy like this information that causes is revealed; and the present invention can directly in generative process; to file or mirror image encryption, mirror image can not be opened, need decipher could be viewed; image file content is not illegally browsed, protects the security of information.
Further, step S102 comprises:
Add disc management information in file to be added and/or file, and in the mode of binary stream, described disc management information is write described first original image according to described first label information and ISO9660 agreement.
Traditional mirror image generates, founder can not increase some specific informations to mirror image, when CD or mirror image are too much difficult to management, the management information of oneself can be added, such as when by whom created, what the object created is, these information of the CD produced like this or mirror image Portable belt, facilitate supvr to manage.
Fig. 2 shows a kind of structural representation adding the device of mirror image based on binary stream that one embodiment of the invention provides, and comprising:
Original image read module 11, for using CD burning development interface IMAPI or small computer system interface SCSI engine to read optical file information, and arranges the first label information in the first original image;
Original image adds module 12, for obtaining file to be added and/or file, and in the mode of binary stream, file to be added is write described first original image according to described first label information and ISO9660 agreement.
The present embodiment can append file and file in batches efficiently, especially in a large image file, removes an additional small documents, thus saves writing time, improve CD burning efficiency.
As the preferred version of the present embodiment, also comprise:
Original image writing module, for writing second original image by file to be written and/or file in the mode of binary stream according to ISO9660 agreement, and by described second original image imprinting to CD.
Particularly, described original image writing module also for:
Second label information is set in described second original image, and in described second original image, writes file to be added and/or file in the mode of binary stream according to described second label information and ISO9660 agreement.
Further, described original image add module also for:
By described first original image of file encryption to be added write.
From the information security angle of user, just the data in mirror image are encrypted in this step of mirror image as much as possible, thus effective guarantee user information safety.
Further, described original image add module also for:
Add disc management information in file to be added and/or file, and in the mode of binary stream, described disc management information is write described first original image according to described first label information and ISO9660 agreement.
Directly from the angle of user management CD, just can add information from this step of making mirror image, so that by information burning on CD, be convenient to the management of CD.
Meanwhile, when imprinting mirror image, as long as imprinting mirror image in order, just can copy, and do not need to extract CD content or make CD mirroring to copy, improve optical media replication efficiency.Utilize once by the mirror image of imprinting in disc, additional mirror image can on new building copy data content.Can copy information quickly, thus save time cost.
The present embodiment for core, by being bridge to the process of additional mirror image, thus the protection of the convenient management that stores file and fileinfo, and ensures practicality with iso9660 agreement as much as possible.
In order to a kind of device adding mirror image based on binary stream that the present embodiment provides is described better, below the using method of this device is further described:
As a kind of mirror image adding the device generation of mirror image based on binary stream that Fig. 3 provides for the present embodiment; Fig. 4 is that the present embodiment adds file on the basis of original image; Fig. 5 is the design sketch after the present embodiment adds file on the basis of original image; Fig. 6 is that the present embodiment adds file on the basis of original image; Fig. 7 is the design sketch after the present embodiment adds file on the basis of original image; Fig. 8 is the mirror image after the present embodiment adds file and file; Fig. 9 is that the present embodiment adds mirror image in original image; Figure 10 is that the present embodiment to add after mirror image imprinting to the design sketch of CD; Figure 11 is the design sketch that the present embodiment is opened same mirror image encryption front and back decompression tool.
In instructions of the present invention, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.

Claims (10)

1. add a method for mirror image based on binary stream, it is characterized in that, comprising:
S101, use CD burning development interface IMAPI or small computer system interface SCSI engine read optical file information, and arrange the first label information in the first original image;
S102, obtain file to be added and/or file, and according to described first label information and ISO9660 agreement in the mode of binary stream by file to be added and/or described first original image of file write.
2. method according to claim 1, is characterized in that, comprises before step S101:
S100, according to ISO9660 agreement, file to be written and/or file are write the second original image in the mode of binary stream, and by described second original image imprinting to CD.
3. method according to claim 2, is characterized in that, step S100 comprises:
Second label information is set in the second original image, and in described second original image, writes file to be added and/or file in the mode of binary stream according to described second label information and ISO9660 agreement.
4. method according to claim 3, is characterized in that, step S102 comprises: by described first original image of file encryption to be added write.
5. method according to claim 4, is characterized in that, step S102 comprises:
Add disc management information in file to be added and/or file, and in the mode of binary stream, described disc management information is write described first original image according to described first label information and ISO9660 agreement.
6. add a device for mirror image based on binary stream, it is characterized in that, comprising:
Original image read module, for using CD burning development interface IMAPI or small computer system interface SCSI engine to read optical file information, and arranges the first label information in the first original image;
Original image adds module, for obtaining file to be added and/or file, and in the mode of binary stream, file to be added is write described first original image according to described first label information and ISO9660 agreement.
7. device according to claim 6, is characterized in that, also comprises:
Original image writing module, for writing second original image by file to be written and/or file in the mode of binary stream according to ISO9660 agreement, and by described second original image imprinting to CD.
8. device according to claim 7, is characterized in that, described original image writing module also for:
Second label information is set in described second original image, and in described second original image, writes file to be added and/or file in the mode of binary stream according to described second label information and ISO9660 agreement.
9. device according to claim 8, is characterized in that, described original image add module also for:
By described first original image of file encryption to be added write.
10. device according to claim 9, is characterized in that, described original image add module also for:
Add disc management information in file to be added and/or file, and in the mode of binary stream, described disc management information is write described first original image according to described first label information and ISO9660 agreement.
CN201510850191.5A 2015-11-27 2015-11-27 Method and device for appending mirror image based on binary stream Pending CN105488153A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510850191.5A CN105488153A (en) 2015-11-27 2015-11-27 Method and device for appending mirror image based on binary stream

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510850191.5A CN105488153A (en) 2015-11-27 2015-11-27 Method and device for appending mirror image based on binary stream

Publications (1)

Publication Number Publication Date
CN105488153A true CN105488153A (en) 2016-04-13

Family

ID=55675127

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510850191.5A Pending CN105488153A (en) 2015-11-27 2015-11-27 Method and device for appending mirror image based on binary stream

Country Status (1)

Country Link
CN (1) CN105488153A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113823331A (en) * 2021-10-12 2021-12-21 成都统信软件技术有限公司 Optical disc additional recording method and device and computing equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1710546A (en) * 2004-06-18 2005-12-21 惠普开发有限公司 Systems and methods for building a disk image
US20060282653A1 (en) * 2005-06-08 2006-12-14 Ping-Ying Chu Method for updating frimware of memory card
CN1991777A (en) * 2005-12-27 2007-07-04 英业达股份有限公司 Data prepackage system and method for mirror document
CN101059791A (en) * 2006-04-21 2007-10-24 英业达股份有限公司 Dummy general serial bus apparatus system and its data transmission method
CN103309709A (en) * 2013-06-08 2013-09-18 华为终端有限公司 Firmware upgrading method, device and communication equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1710546A (en) * 2004-06-18 2005-12-21 惠普开发有限公司 Systems and methods for building a disk image
US20060282653A1 (en) * 2005-06-08 2006-12-14 Ping-Ying Chu Method for updating frimware of memory card
CN1991777A (en) * 2005-12-27 2007-07-04 英业达股份有限公司 Data prepackage system and method for mirror document
CN101059791A (en) * 2006-04-21 2007-10-24 英业达股份有限公司 Dummy general serial bus apparatus system and its data transmission method
CN103309709A (en) * 2013-06-08 2013-09-18 华为终端有限公司 Firmware upgrading method, device and communication equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
余军 等: "《一种光盘数据加密的方法》", 《微计算机信息》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113823331A (en) * 2021-10-12 2021-12-21 成都统信软件技术有限公司 Optical disc additional recording method and device and computing equipment
CN113823331B (en) * 2021-10-12 2023-02-28 成都统信软件技术有限公司 Optical disc additional recording method and device and computing equipment

Similar Documents

Publication Publication Date Title
CN102096644B (en) system and method for permanently deleting file data
CN103955530B (en) Data reconstruction and optimization method of on-line repeating data deletion system
CN101169795B (en) Information processing apparatus, information processing method, program and program recording medium
CN109522328B (en) Data processing method and device, medium and terminal thereof
US20080232593A1 (en) System and method for logical shredding of data stored on worm media
WO2017206754A1 (en) Storage method and storage device for distributed file system
CN104360914A (en) Incremental snapshot method and device
US20170235493A1 (en) Low-Cost Backup and Edge Caching Using Unused Disk Blocks
WO2009012613A1 (en) Construction and method for encrypting digital information memory card
CN105302665B (en) A kind of improved Copy on write Snapshot Method and system
CN106844597A (en) The method and its device of a kind of quick deletion dependent snapshot target volume
CN103955440A (en) Nonvolatile storage equipment and method of carrying out data manipulation therethrough
CN103838645B (en) Remote difference synthesis backup method based on Hash
CN101945156B (en) Method and device for backuping data information of mobile terminal
KR101472405B1 (en) Method and device for associating media files
CN105488153A (en) Method and device for appending mirror image based on binary stream
JP2000298974A (en) Information recording method capable of moving information made peculiar to medium
CN105700830A (en) Solid-state disk master control supporting WORM storage, solid-state disk and WORM storage method
CN110659162B (en) Data recovery method, device and system of TPSFS file system and storage medium
CN103077187A (en) Log management method and log management system
CN115268797B (en) Method for realizing system and object storage communication through WebDav
CN109582646A (en) A kind of redundancy and restoration methods and system for file declustering
US8219830B2 (en) Apparatus and method for management for file aggregates and file directories
CN104268036A (en) Snapshot volume reading method based on zero copy
CN109901783A (en) A kind of information technology for eliminating of storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160413

RJ01 Rejection of invention patent application after publication