[go: up one dir, main page]

TWI550423B - File access device, method and computer program for software version control - Google Patents

File access device, method and computer program for software version control Download PDF

Info

Publication number
TWI550423B
TWI550423B TW104117303A TW104117303A TWI550423B TW I550423 B TWI550423 B TW I550423B TW 104117303 A TW104117303 A TW 104117303A TW 104117303 A TW104117303 A TW 104117303A TW I550423 B TWI550423 B TW I550423B
Authority
TW
Taiwan
Prior art keywords
file
archive
software version
version control
inventory
Prior art date
Application number
TW104117303A
Other languages
Chinese (zh)
Other versions
TW201642155A (en
Inventor
Qi-Yang Guo
Bei-Fen Ji
hui-qin He
xiao-zhen Liu
li-zhong Chen
Original Assignee
Chunghwa Telecom 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 Chunghwa Telecom Co Ltd filed Critical Chunghwa Telecom Co Ltd
Priority to TW104117303A priority Critical patent/TWI550423B/en
Application granted granted Critical
Publication of TWI550423B publication Critical patent/TWI550423B/en
Publication of TW201642155A publication Critical patent/TW201642155A/en

Links

Landscapes

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

Description

用於軟體版本控管之檔案庫存取裝置、方法及其電腦程式產品 File inventory device, method and computer program product for software version control

本發明係一種檔案庫存取裝置、方法及其電腦程式產品,尤指一種用於軟體版本控管之檔案庫存取裝置、方法及其電腦程式產品。 The invention relates to a file inventory taking device, a method and a computer program product thereof, in particular to a file inventory taking device, a method and a computer program product thereof for software version control.

現行之檔案管理系統為有效的利用儲存空間,在儲存版本檔案時(例如多個相依版本之原始碼檔案),會比對各個版本之間的差異,並在儲存下一版本時,僅會儲存與上一版本差異部分,以節省儲存之空間。 The current file management system uses the storage space effectively. When the version file is stored (for example, the source files of multiple dependent versions), the difference between the versions is compared, and only the next version is stored. Differences from the previous version to save storage space.

而當檔案庫儲存二進位檔案時(例如:執行檔、圖檔、影像檔),即便二個檔案間在內容上僅有些微差異,然而系統在二進位檔案比對時,並無法確切的比對出二者之差異。因此在儲存二進位檔案時,並無法做到上述之功能。 When the archive stores the binary file (for example: executable file, image file, image file), even if there is only slight difference in the content between the two files, the system does not compare exactly when the binary file is compared. The difference between the two. Therefore, when storing the binary file, the above functions cannot be achieved.

而當檔案之資料量大時,檔案庫之資料量容易超過單機磁碟所能承載的資料量。且因考量版本間相依需求,檔案庫並不允許隨意刪除部分版本內容,以避免遺失檔案之相依性。因此,若單機檔案庫空間溢滿時,會無法再儲存新版資料。 When the amount of data in a file is large, the amount of data in the archive is likely to exceed the amount of data that can be carried by a single disk. And because of the interdependence requirements of the versions, the archive does not allow arbitrary deletion of some versions of the content to avoid the dependency of the lost files. Therefore, if the stand-alone archive space is full, the new version of the data will no longer be stored.

綜上所述,如何提供一種可在檔案庫空間額滿時,釋出影響版本相關需求較低之檔案庫之技術乃本領域亟需解決之技術問題。 In summary, how to provide a technology that can release an archive that affects the version-related requirements when the archive space is full is a technical problem that needs to be solved in the field.

為解決前揭之問題,本發明之目的係提供一種用於軟體版本 控管之檔案庫存取裝置、方法及其電腦程式產品。 In order to solve the problems disclosed above, the object of the present invention is to provide a software version. The control file storage device, method and computer program product.

為達上述目的,本發明提出一種用於軟體版本控管之檔案庫存取裝置,包含:自外部接收軟體版本檔案,並將該軟體版本檔案簽入至外部複數個檔案庫其中之一,並於作用中之該檔案庫之儲存容量超過允許儲存量下,依據各該檔案庫之存取記錄時間資訊,以選取出接續作用之該檔案庫。 In order to achieve the above objective, the present invention provides a file inventory taking device for software version control, which comprises: receiving a software version file from the outside, and checking the software version file into one of the external plurality of archives, and When the storage capacity of the archive in the active state exceeds the allowable storage amount, the archived time information according to the access records of the archives is selected to select the archive file for the connection.

為達上述目的,本發明提出一種用於軟體版本控管之檔案庫存取方法,應用於一電腦裝置,包含下列步驟:自外部接收軟體版本檔案。以及將該軟體版本檔案簽入至外部複數個檔案庫其中之一,並於作用中之該檔案庫其儲存容量超過允許儲存量下,依據各該檔案庫之存取記錄時間資訊,以選取出接續作用之該檔案庫。 To achieve the above objective, the present invention provides a file inventory taking method for software version control, which is applied to a computer device and includes the following steps: receiving a software version file from the outside. And the software version file is checked into one of the external plurality of archives, and in the active storage of the archive, the storage capacity exceeds the allowable storage amount, and the time information of each of the archives is used to select the time information to select The archive of the continuation role.

為達上述目的,本發明提出一種用於軟體版本控管之檔案庫存取之電腦程式產品,當電腦裝置載入並執行該電腦程式產品,可完成方法所述之步驟。 To achieve the above object, the present invention provides a computer program product for software file control of a software version control. When the computer device loads and executes the computer program product, the steps described in the method can be completed.

綜上所述,本發明之檔案庫存取裝置、方法及其電腦程式產品可在檔案庫儲存空間不足下,選取並釋放特定之儲存空間,以儲放之後續之軟體版本檔案。 In summary, the file inventory taking device, method and computer program product of the present invention can select and release a specific storage space to store the subsequent software version file in the archive storage space.

10‧‧‧檔案庫存取裝置 10‧‧‧Archive stock picking device

11‧‧‧使用端 11‧‧‧Use side

12‧‧‧軟體版本檔案 12‧‧‧Software version file

13‧‧‧檔案庫 13‧‧‧Archive

S101~S108‧‧‧步驟 S101~S108‧‧‧Steps

S201~210‧‧‧步驟 S201~210‧‧‧Steps

第1圖係為本發明一實施例之用於軟體版本控管之檔案庫存取系統示意圖。 FIG. 1 is a schematic diagram of a file inventory taking system for software version control according to an embodiment of the present invention.

第2~3圖係為本發明另一實施例之用於軟體版本控管之檔案庫存取方法之流程圖。 2 to 3 are flowcharts of a method for taking a file inventory for software version control according to another embodiment of the present invention.

以下將描述具體之實施例以說明本發明之實施態樣,惟其並非用以限制本發明所欲保護之範疇。 The specific embodiments are described below to illustrate the embodiments of the invention, but are not intended to limit the scope of the invention.

請參閱第1圖,其為本發明一實施例之用於軟體版本控管之檔案庫存取系統示意圖。該系統包含檔案庫存取裝置10、使用端11以及一個或複數個之版本控制檔案庫13。檔案庫存取裝置10係分別通訊連接使用端11裝置以及複數個版本控制檔案庫13(repository,以下簡稱檔案庫13)。當外部之使用端11提交軟體版本檔案12至檔案庫存取裝置10,以觸發檔案庫存取裝置10將軟體版本檔案12簽入(commit)至預定之檔案庫13內,而當預定簽入之檔案庫13其儲存容量超過允許儲存量下,會分析其他檔案庫13之存取記錄時間資訊,以選取出接續簽入軟體版本檔案12之檔案庫13。舉例說明之,檔案庫存取裝置10可依據存取記錄時間資訊之新舊順序作為選取條件(例如分析各個檔案庫13之為最後異動時間,並選取時間最早之檔案庫13作為接續簽入之檔案庫13)。在選取出接續簽入之檔案庫13後,會對該檔案庫13進行重置作業,由於部分檔案庫13不具有刪除指令,因此檔案庫存取裝置10在此情況下會切換至作業系統層來刪除檔案庫13以釋放空間,並再重置一檔案庫13,以完成重置作業。待完成重置作業後,檔案庫存取裝置10便可將後續之軟體版本檔案12簽入至重置後之檔案庫13中。 Please refer to FIG. 1 , which is a schematic diagram of a file inventory taking system for software version control according to an embodiment of the invention. The system includes a file inventory retrieval device 10, a usage terminal 11 and one or more version control archives 13. The file inventory taking device 10 is a communication connection terminal 11 device and a plurality of version control archives 13 (hereinafter referred to as archives 13). When the external user terminal 11 submits the software version file 12 to the file inventory retrieval device 10, the file inventory retrieval device 10 is triggered to commit the software version file 12 to the predetermined archive library 13 when the file is scheduled to be checked in. When the storage capacity of the library 13 exceeds the allowable storage amount, the access record time information of the other archives 13 is analyzed to select the archive 13 of the software version file 12 that is successively checked in. For example, the file inventory taking device 10 can select the new and old order of the access time information as the selection condition (for example, analyzing the last transaction time of each archive 13 and selecting the archive database 13 with the earliest time as the file to be checked in again). Library 13). After the selected archive 13 is selected, the archive 13 is reset. Since the partial archive 13 does not have a delete command, the archive inventory take-up device 10 switches to the operating system layer in this case. The archive 13 is deleted to free up space, and an archive 13 is reset to complete the reset operation. After the reset operation is completed, the file inventory taking device 10 can check the subsequent software version file 12 into the reset archive 13.

前述之使用端11以及檔案庫存取裝置10係為電腦裝置,或可具有運算能力之電子裝置。本案之軟體版本控制係可採用阿帕契版本控制協定(Apache Subversion)。而軟體版本檔案12包含二進位檔案(例如執行檔、影像檔、圖檔)。 The aforementioned use terminal 11 and the file inventory taking device 10 are computer devices or electronic devices capable of computing power. The software version control of this case can use Apache Subversion. The software version file 12 contains binary files (such as executable files, image files, and image files).

請接著參閱第2、3圖,其為本發明另一實施例之用於軟體版本控管之檔案庫存取方法,該方法可應用於一電腦裝置,於另一實施中該方法可應用於前述之檔案庫存取裝置10,其方法之流程圖如下所述。 Please refer to FIG. 2 and FIG. 3 , which are a file inventory taking method for software version control according to another embodiment of the present invention. The method can be applied to a computer device. In another implementation, the method can be applied to the foregoing. The file inventory taking device 10, the flow chart of which is as follows.

S101:確定目前作用中檔案庫。由於電腦裝置內有註冊多個可使用的檔案庫,因此在實際簽入檔案時,必須先確定那一個檔案庫為作用中。在第一次執行時,可任意選取一個檔案庫為作用中檔案庫,在後續執行檔案簽入作業中,將會以最後寫入時間做為判斷之依據。 S101: Determine the currently active archive. Since there are many archives available for registration in the computer device, it is necessary to first determine which archive is active when actually checking in the file. In the first execution, an archive can be arbitrarily selected as the active archive. In the subsequent execution of the file check-in, the final write time will be used as the basis for judgment.

S102:確定作用中檔案庫空間是否足夠?若是,則執行S107;若否,則執行S103。 S102: Is it determined that the archive space in the active space is sufficient? If yes, execute S107; if no, execute S103.

S103:決定回收空間。其細部流程請參閱第3圖。若內部空間足夠則執行S104;若否,則執行S108。 S103: Determine the recycling space. See Figure 3 for the details of the process. If the internal space is sufficient, S104 is performed; if not, S108 is performed.

S104:重建檔案庫。考量部分之檔案庫系統本身未提供刪除指令,此時可從作業系統層刪除檔案庫,以及重新產生該檔案庫,以釋放該檔案庫之空間,並記錄異動之時間。 S104: Rebuild the archive. The file system of the consideration part does not provide a delete instruction itself. At this time, the archive can be deleted from the operating system layer, and the archive can be regenerated to release the space of the archive and record the time of the transaction.

S105:指定作用中檔案庫。經由S104重建之檔案庫此時會被指定成作用中檔案庫。若在前述步驟中(S103細部流程)有執行預留作業,則會將原本設定為預留空間之檔案庫改設定為作用中,而該檔案庫即為預留空間。 S105: Specify an active archive. The archive reconstructed via S104 will now be designated as the active archive. If the reserved operation is executed in the foregoing step (S103 detailed process), the archive that was originally set as the reserved space is changed to be active, and the archive is reserved.

S106:儲存需保留檔案。若在S103時有檔案需被保留,此時會將其存入作用中之檔案庫,並記錄儲存之檔案庫、相對路徑、版本、以及最後異動時間。 S106: The file needs to be kept in storage. If there is a file to be retained at S103, it will be stored in the active archive and the stored archive, relative path, version, and final transaction time will be recorded.

S107:存入提交檔案集合於作用中檔案庫。於此步驟會將軟體版本檔案之相對路徑及其版本,以及最後異動時間存入作用中檔案庫。 S107: Deposit the submitted file collection in the active archive. In this step, the relative path of the software version file and its version, and the final transaction time are stored in the active archive.

S108:回報空間不足。 S108: The return space is insufficient.

前述之預留作業係考量檔案庫的重建配置需要花費較多的時間,因此當應用情境對於回應時間要求較高時則可執行預留作業。進一步說明之,預留作業係指每次切換的檔案庫因清空而產生的新空間,作為下一次切換時使用。換言之,此次使用來設為作用中檔案庫的空間,則是在前一次切換時產生的。由於空間已在前一次的切換中整理出來。故此次僅執行切換的動作下其執行速度將有所提升。而整理檔案庫空間的動作,則在切換時同步執行。前述預留作業的執行,將多占去一個檔案庫的空間,即原本若有n個檔案庫,則可使用的空間將會僅有n-1個。 The foregoing reserved operation takes more time to reconstruct the configuration of the archive, so when the application context requires a higher response time, the reserved operation can be performed. Further, the reserved operation refers to a new space generated by the emptying of each switched archive, which is used as the next handover. In other words, the space used to set the active archive this time is generated at the previous switch. Since the space has been sorted out in the previous switch. Therefore, the execution speed will be improved only when the switching operation is performed. The actions of arranging the archive space are executed synchronously at the time of switching. The execution of the aforementioned reserved jobs will take up more space in one archive. That is, if there are n archives, there will be only n-1 spaces available.

第3圖之流程為第2圖S103中,計算檔案空間之細部流程圖,其說明如下: The flow of Fig. 3 is a detailed flow chart for calculating the file space in Fig. 2, S103, which is explained as follows:

S201:判斷是否執行預留空間作業。若是,則執行S203;若否,則執行S202。 S201: Determine whether to execute a reserved space job. If yes, execute S203; if no, execute S202.

S202:取得所有檔案庫清單,由最後異動時間之新舊時間排序。將所有註冊在本系統中的檔案庫,藉由S107中,所記錄的最後異動時間,由舊至新進行排序,以優先處置內容較舊的檔案庫空間。 S202: Obtain all archive lists, sorted by the old and new time of the last transaction time. All the archives registered in the system are sorted from old to new by the last transaction time recorded in S107, so as to preferentially handle the archive space with the older content.

S203:判斷預留空間是否足夠儲存提交之軟體版本檔案。若是,則執行S210以及S205,前述步驟一方面選出下一次將使用的預空間,一方面繼續進行檔案庫的轉換。而當空間不夠時,代表需 要重新計算決定合適的空間來做為作用中檔案庫,並接著執行S202。 S203: Determine whether the reserved space is sufficient to store the submitted software version file. If yes, then S210 and S205 are executed. The foregoing steps select the pre-space to be used next on the one hand, and continue the conversion of the archive on the other hand. When the space is not enough, the representative needs To recalculate the appropriate space to be used as the active archive, and then execute S202.

S204:依序讀取下一個檔案庫。電腦裝置逐一讀出檔案庫集合,以供執行步驟S206~S208執行。 S204: Read the next archive sequentially. The computer device reads the archive set one by one for execution of steps S206 to S208.

S205:取得檔案庫清單,由舊至新排序(排除了目前是預留空間的檔案庫)。 S205: Obtain a list of archives, sorted from old to new (excluding the archive that is currently reserved).

S206:整理重建此檔案庫的需保留檔案清單,接著執行S208。因為接下來的S104會清空選出來的檔案庫,因此在計算「是否有足夠空間儲存檔案」時的比較基準,除了S102的「這次提交的檔案集合大小」外,還需要確認目前這個被比較的檔案庫,若其上儲存著其它檔案庫都沒有的檔案,當它被清空,將對使用者造成檔案遺漏不完整的情況。此現象在原本使用單一檔案。而為了確認存在該檔案庫中的某支檔案,是否為最新n代內的檔案,本案在儲存檔案時,包含下列三種記錄: S206: Organize and rebuild the archive list of the archive to be retained, and then execute S208. Because the next S104 will clear the selected archive, the comparison benchmark when calculating "whether there is enough space to save the file", in addition to S102's "this file collection size", you need to confirm the current comparison. The archive, if it stores files that are not available in other archives, when it is emptied, it will cause the file to be incomplete. This phenomenon was originally used in a single file. In order to confirm whether there is a file in the archive, whether it is the latest n generation file, the case contains the following three records when storing the file:

(a)檔案庫的URL(repository url):指儲存在那個實體創建的檔案庫url。 (a) The URL of the archive (repository url): refers to the archive url stored in that entity.

(b)節點(檔案或資料夾)路徑(node path):代表檔案或資料夾,在第一點下的相對路徑。 (b) Node (file or folder): A relative path representing the file or folder under the first point.

(c)版號(revision):在該實體檔案庫的版號。 (c) Revision: The version number in the physical archive.

本案先利用S104中所記錄的最後異動時間,先過濾出在所有檔案儲存記錄中,目前那些檔案已因先前的重建而不存在;反之,亦可得知那些記錄是仍然有效的。接著在其它(相對於S204 中,所處理的當前檔案庫)檔案庫中,能否找到相同的(b),若有,代表是相同的檔案,接著便比對(c),若為最新n代內的檔案,則代表必須被保留。亦可搭配黑名單來做進一步過濾,排除不需保留的檔案集合。 In this case, the last transaction time recorded in S104 is firstly filtered out in all file storage records. Currently, those files have not existed due to the previous reconstruction; conversely, those records are still valid. Then in the other (relative to S204 In the archive of the current archive), can you find the same (b), if it is, the representative is the same file, and then compare (c), if it is the latest n generation file, it represents Must be retained. It can also be combined with the blacklist for further filtering to exclude collections of files that do not need to be retained.

此三部份的檔案記錄,亦用來處理檔案提取時的問題。當使用者需要取得某檔案時,只用提供(b)與(c),本案便能至相對應的檔案庫取得,此種提取方式與一般檔案庫相同。除了暨有檔案庫應用中,[檔案不存在]與[取得檔案]兩種情況外,本案更提供一種[檔案已清除]的狀態,來供分辨檔案的狀態。 These three parts of the file record are also used to deal with problems in file extraction. When the user needs to obtain a file, only by providing (b) and (c), the case can be obtained in the corresponding archive, and the extraction method is the same as the general archive. In addition to the Archives application, [File does not exist] and [Acquire files], the case also provides a status of [File Cleared] to distinguish the status of the file.

S207:判斷是否仍有檔案庫可供判斷。若是,則執行S204;若否,則執行S209。該步驟係對S202與S205所整理出來的檔案庫集合,一個接一個的進行比對,若發現已沒有可以比對的,代表空間不足,流程轉至S209。 S207: Determine whether there is still an archive available for judgment. If yes, execute S204; if no, execute S209. This step is to compare the archive collections sorted by S202 and S205 one by one. If it is found that there is no comparison, the representative space is insufficient, and the flow goes to S209.

S208:判斷空間是否足夠儲存保留軟體版本檔案以及提交檔案。該步驟係比對目前審核的這個檔案庫,其空間是否足夠儲存由S206來的保留檔案清單及使用者這次所提交的檔案集合。若此檔案庫清單是由S205所產生,則不用考慮提交檔案集合。 S208: Determine whether the space is sufficient to store the reserved software version file and submit the file. This step compares the currently reviewed archive with enough space to store the list of retained files from S206 and the set of files submitted by the user this time. If this archive list is generated by S205, then it is not necessary to consider submitting a file collection.

S209:回報無任何檔案庫具足夠實體空間儲存。該步驟係回報目前即有的檔案庫,皆無足夠的空間,在滿足保留最新n代檔案的限制下,同時儲存所提交的檔案集合 S209: The return does not have any archives with sufficient physical space to store. This step is to return the archives that are currently available. There is not enough space to store the submitted file collections while keeping the latest n-generation files.

S210:回傳比對結果。保留檔案集合先暫存至任一暫存空間。若有進行預留作業,將有兩個回傳集合(a,b)。a是回傳下一次的預留空 間之檔案庫ID與其上需保留的檔案,供主流程S106使用。b是回傳這次將作為作用中檔案庫的ID,供S105使用。若無進行預留作業,則回傳將作為作用中檔案庫的ID與其上需保留的檔案,供S105以及S106使用。 S210: The result of the comparison is returned. The reserved file collection is temporarily stored in any scratch space. If there are reservations, there will be two return collections (a, b). a is the next time to return the reserved space The archive ID and the file to be retained are used by the main process S106. b is the return ID that will be used as the active archive for S105. If no reservation is performed, the return will be used as the ID of the active archive and the file to be retained for S105 and S106.

本發明又提供一種用於軟體版本控管之檔案庫存取之電腦程式產品,當電腦裝置載入並執行該電腦程式產品,可完成前述方法所述之步驟。 The invention further provides a computer program product for the file inventory control of the software version control. When the computer device loads and executes the computer program product, the steps described in the foregoing method can be completed.

以下將以本案之檔案庫存取方法進行說明,惟前述之檔案庫存取裝置10以及用於檔案庫存取之電腦程式產品亦可達下列之功效。 The following will be described in the file inventory method of the present case, but the above-mentioned file inventory taking device 10 and the computer program product for file inventory can also achieve the following effects.

設定需保留之版本代數為N代,其總儲存空間為300GB,並規畫出3個檔案庫A、B以及C。各個檔案庫之鏈結(URL)如表1所示: Set the version algebra to be retained to N generation, the total storage space is 300GB, and draw three archives A, B and C. The links (URLs) of each archive are shown in Table 1:

當有一軟體版本之封裝檔(devMBR.ear)等待存入檔案庫13時,而現行之作用中檔案庫13為檔案庫A。接著檔案庫存取裝置10查詢檔案庫A內部剩餘空間為200MB,而封裝檔之檔案為800MB,因此必需選取其他之檔案庫13來儲存封裝檔。 When there is a software version of the package file (devMBR.ear) waiting to be stored in the archive 13, the current active archive 13 is the archive A. Then, the file inventory taking device 10 queries the internal space of the archive A to be 200 MB, and the file of the package file is 800 MB. Therefore, it is necessary to select another archive 13 to store the package file.

接著,依三個檔案庫13之最後異動時間進行排序(由舊至新),並產生一集合[C,B,A]。接著選取檔案庫C來產生檔案庫C保留的檔案 集合。並分析過往的執行記錄,比對每個以http://10.144.97.99/repoA/與http://10.144.97.99/repoB/為始的節點異動記錄,找尋最新的3個版本,作為儲存在檔案庫13C的節點。 Then, sorting is performed according to the last transaction time of the three archives 13 (from old to new), and a set [C, B, A] is generated. Then select the archive C to generate the archives retained by the archive C. set. And analyze the past execution records, compare each node record with http://10.144.97.99/repoA/ and http://10.144.97.99/repoB/, and find the latest 3 versions as stored in The node of archive 13C.

接著,透過S104中所記錄的最後異動時間過濾出在所有檔案儲存記錄中,目前那些檔案已因先前的重建而不存在;又或者,得知那些記錄仍然有效。假設得知有530筆記錄是仍然有效時,便從530筆中,再過濾出其代表那些不同節點。假設得出28個節點,而這28節點指的就是S206中之節點路徑。 Then, through the last transaction time recorded in S104, in all the file storage records, those files have not existed due to the previous reconstruction; or, it is known that those records are still valid. Assuming that 530 records are still valid, they are filtered from 530 and filtered to represent those different nodes. Assume that 28 nodes are obtained, and these 28 nodes refer to the node paths in S206.

接著將這28個節點,去比較檔案庫13A及檔案庫13B的有效儲存記錄,以判斷檔案庫13A與檔案庫13B中是否有儲存同樣的節點。 Then, the 28 nodes are compared to the valid storage records of the archive 13A and the archive 13B to determine whether the same node is stored in the archive 13A and the archive 13B.

假設,比較這28個節點的儲存記錄,發現有25個節點都能在檔案庫A、B中找到共計3個版本以上的檔案,代表這25個節點中已符合最少需保留的最新檔案代數(3個版本)之要求。 Suppose that comparing the storage records of these 28 nodes, it is found that 25 nodes can find a total of three or more files in the archives A and B, representing the latest archive algebra that has met the minimum of the 25 nodes. 3 versions) requirements.

而當software/fo/batch/encap.jar僅儲存在檔案庫A中一個版本,但檔案庫B並未儲存時,而software/fo/batch/report.jar在檔案庫A及檔案庫B中,各儲存了一個版本,同時皆無發現A,B中有儲存software/fo/batch/cypher.jar When software/fo/batch/encap.jar is only stored in a version of archive A, but archive B is not stored, and software/fo/batch/report.jar is in archive A and archive B, Each version is stored, and no A is found at the same time. The software/fo/batch/cypher.jar is stored in B.

因此得出以下三個檔案需要被保留 So the following three files need to be retained

(1)software/fo/batch/cypher.jar(最新的3個版本) (1) software/fo/batch/cypher.jar (the latest 3 versions)

(2)software/fo/batch/encap.jar(最新的2,3版) (2) software/fo/batch/encap.jar (latest 2, 3 version)

(3)software/fo/batch/report.jar(最新的3版) (3) software/fo/batch/report.jar (latest version 3)

此三件檔案,共計6個檔案需被保留(cypher.jar *3+ encap.jar*2+report.jar*1) These three files, a total of 6 files need to be retained (cypher.jar *3+ Encap.jar*2+report.jar*1)

於S208中,此6個檔案假設30MB,加上devMBR.ear的800MB,因此檔案庫C的全部空間大於830MB方可使用。假設檔案庫C有20GB。接著於S210中將這6個檔案及其版號回傳至檔案庫C。 In S208, the six files assume 30MB, plus 800MB of devMBR.ear, so the total space of the archive C is greater than 830MB. Suppose the archive C has 20GB. Then, the six files and their version numbers are returned to the archive C in S210.

接著於S104中,將檔案庫13C從作業系統層刪除,再重新產生該檔案庫13、配置權限、以及記錄異動時間。並於S105中指定作用中檔案庫13,並設定檔案庫C為作用中的檔案庫13。於S106中儲存需保留檔案集合。並將前述之3件檔案,6個版本的內容,簽入至檔案庫13C中,記錄最後異動時間,及相對應版號。於S107中存入提交檔案集合於作用中檔案庫13。 Next, in S104, the archive 13C is deleted from the operating system layer, and the archive 13, the configuration authority, and the recording transaction time are regenerated. The active archive 13 is specified in S105, and the archive C is set as the active archive 13. The file collection to be retained is stored in S106. The above three files and six versions of the contents are checked into the archive 13C, and the last change time and the corresponding version number are recorded. The submitted file set is stored in the active archive 13 in S107.

最後,存入這次提交的devMBR.ear至檔案庫13C中,同時記錄最後異動日時間,及相對應版號。 Finally, save the submitted devMBR.ear to the archive 13C, and record the last transaction date and the corresponding version number.

上列詳細說明係針對本發明之一可行實施例之具體說明,惟該實施例並非用以限制本發明之專利範圍,凡未脫離本發明技藝精神所為之等效實施或變更,均應包含於本案之專利範圍中。 The detailed description of the preferred embodiments of the present invention is intended to be limited to the scope of the invention, and is not intended to limit the scope of the invention. The patent scope of this case.

S101~S108‧‧‧步驟 S101~S108‧‧‧Steps

Claims (8)

一種用於軟體版本控管之檔案庫存取裝置,包含:自外部接收軟體版本檔案,並將該軟體版本檔案簽入至外部複數個檔案庫其中之一,並於作用中之該檔案庫之儲存容量超過允許儲存量下,依據各該檔案庫之存取記錄時間資訊為最後異動時間,以選取出接續簽入之該檔案庫。 A file inventory taking device for software version control includes: receiving a software version file from an external file, and checking the software version file into one of the external plurality of archives, and storing the file in the active file library When the capacity exceeds the allowable storage amount, the access record time information according to each archive is the last transaction time, so as to select the archive that is successively checked in. 如請求項1所述之檔案庫存取裝置,其中該軟體版本控制係採用阿帕契版本控制協定(Apache Subversion)。 The file inventory fetching device of claim 1, wherein the software version control is an Apache Subversion. 如請求項1所述之檔案庫存取系統,其中該軟體版本檔案包含二進位檔案。 The file inventory retrieval system of claim 1, wherein the software version file includes a binary file. 如請求項1所述之檔案庫存取系統,其中該存取記錄時間資訊係為最後異動時間。 The file inventory taking system of claim 1, wherein the access record time information is the last transaction time. 一種用於軟體版本控管之檔案庫存取方法,應用於一電腦裝置,包含下列步驟:自外部接收軟體版本檔案;以及將該軟體版本檔案簽入至外部複數個檔案庫其中之一,並於作用中之該檔案庫其儲存容量超過允許儲存量下,依據各該檔案庫之存取記錄時間資訊為最後異動時間,以選取出接續簽入之該檔案庫。 A file inventory taking method for software version control, applied to a computer device, comprising the steps of: receiving a software version file from the outside; and checking the software version file into one of the external plurality of archives, and When the storage capacity of the archive exceeds the allowable storage amount, the access record time information of each archive is the last transaction time, so as to select the archive that is successively checked in. 如請求項5所述之檔案庫存取方法,其中該軟體版本控制係採用阿帕契版本控制協定(Apache Subversion)。 The file inventory taking method of claim 5, wherein the software version control adopts an Apache Subversion. 如請求項5所述之檔案庫存取方法,其中該軟體版本檔案包含二進位檔案。 The file inventory taking method of claim 5, wherein the software version file comprises a binary file. 一種用於軟體版本控管之檔案庫存取之電腦程式產品,當電腦裝置載入 並執行該電腦程式產品,可完成如請求項5至7任一項所述之方法。 A file program for software version control to take computer program products, when the computer device is loaded And executing the computer program product, the method of any one of claims 5 to 7 can be completed.
TW104117303A 2015-05-29 2015-05-29 File access device, method and computer program for software version control TWI550423B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW104117303A TWI550423B (en) 2015-05-29 2015-05-29 File access device, method and computer program for software version control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW104117303A TWI550423B (en) 2015-05-29 2015-05-29 File access device, method and computer program for software version control

Publications (2)

Publication Number Publication Date
TWI550423B true TWI550423B (en) 2016-09-21
TW201642155A TW201642155A (en) 2016-12-01

Family

ID=57445143

Family Applications (1)

Application Number Title Priority Date Filing Date
TW104117303A TWI550423B (en) 2015-05-29 2015-05-29 File access device, method and computer program for software version control

Country Status (1)

Country Link
TW (1) TWI550423B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040246921A1 (en) * 2003-06-04 2004-12-09 Sony Computer Entertainment Inc. Method and system for persisting content in decentralized network
TW200601087A (en) * 2004-06-18 2006-01-01 Yi-Jie Wu Computer data classification management system and method
US20060230086A1 (en) * 2005-04-06 2006-10-12 International Business Machines Corporation QoS-enabled lifecycle management for file systems
TW200901025A (en) * 2007-03-08 2009-01-01 Nec Lab America Inc Method and system for a self managing and scalable grid storage

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040246921A1 (en) * 2003-06-04 2004-12-09 Sony Computer Entertainment Inc. Method and system for persisting content in decentralized network
TW200601087A (en) * 2004-06-18 2006-01-01 Yi-Jie Wu Computer data classification management system and method
US20060230086A1 (en) * 2005-04-06 2006-10-12 International Business Machines Corporation QoS-enabled lifecycle management for file systems
TW200901025A (en) * 2007-03-08 2009-01-01 Nec Lab America Inc Method and system for a self managing and scalable grid storage

Also Published As

Publication number Publication date
TW201642155A (en) 2016-12-01

Similar Documents

Publication Publication Date Title
CN104424351B (en) Across the method and system of the daily record data thesaurus of multiple storage device data storages
US9727522B1 (en) Multi-tenant storage service object lifecycle management using transition job objects
US9646030B2 (en) Computer-readable medium storing program and version control method
US9355060B1 (en) Storage service lifecycle policy transition management
US7117294B1 (en) Method and system for archiving and compacting data in a data storage array
JP6118515B2 (en) System for associative memory update
US8392423B2 (en) Data set index record preservation
US20170255589A1 (en) Lifecycle support for storage objects
US9176805B2 (en) Memory dump optimization in a system
US8396833B2 (en) Inode management in redirect-on-write file system
CN112269781A (en) Data life cycle management method, device, medium and electronic equipment
US9274876B2 (en) Diagnostic data set component
CN112783436B (en) Synchronous object placement for information lifecycle management
US20110029520A1 (en) Data curation
CN107220248A (en) A kind of method and apparatus for data storage
JP6245700B2 (en) Computer system, data inspection method and computer
CN112433888A (en) Data processing method and device, storage medium and electronic equipment
JP2013148938A (en) Information processor and information processing system
CN105659214B (en) Checkpoint settings for data unit collections
CN115408340A (en) File recovery method, system, device and electronic equipment
TWI550423B (en) File access device, method and computer program for software version control
CN112685334B (en) A method, device and storage medium for caching data in blocks
US11842308B2 (en) Computer system and method for managing data of an executed workflow
CN118885449B (en) Checkpoint file storage method, device, electronic device and storage medium
Ren et al. Application massive data processing platform for smart manufacturing based on optimization of data storage

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees