Claims (5)
다중처리시스템에서 데이타 화일을 관리하는 방법에 있어서, 사용자 입력오류가 없으면 사용자 화일 정의자와 해당화일의 아이노드를 얻어 화일을 여는 단계와, 열려진 화일의 포인터를 얻어 현프로세서가 트랜잭션상태인지 비트랜잭션 상태인지를 구별하고 상기 현프로세서의 상태에 따라서 화일을 읽거나 원하는 화일에 쓰기를 수행하능 단계와, 트랜잭션 종료 또는 취소를 위한 화일단기 요구에 응하여 화일닫기 처리를 수행하는 단계를 포함하는 것을 특징으로 하는 트랜잭션 처리시스템의 화일관리방법.A method of managing data files in a multiprocessing system, wherein if there is no user input error, obtaining the user file definer and the inode of the file to open the file, and obtaining the pointer of the open file to determine whether the current processor is in a transactional state. Distinguishing whether the file is in a state and reading a file or writing to a desired file according to the state of the current processor, and performing a file closing process in response to a file short-term request for terminating or canceling a transaction. File management method of a transaction processing system.
제1항에 있어서, 상기 화일을 여는 단계는 트랜잭션 처리가 수행될 화일을 통제모드로 열되 화일지연 구조를 형성하여 트랜잭션 테이블의 지연화일리스트에 연결시키는 단계와, 사용자의 요구가 있는 경우 화일의 잠금형태를 잠금관리 유니트로 제공하는 단계와, 화일열기 처리에 오류가 없으면 열려진 아이노드를 해당 화일의 슈퍼블록에 연결하는 단계를 포함하는 것을 특징으로 하는 트랜잭션 처리시스템의 화일관리방법.The method of claim 1, wherein the opening of the file comprises: opening a file in which a transaction processing is to be performed in a controlled mode, forming a file delay structure, and linking the file to a delayed file list of a transaction table; And providing a form to the lock management unit, and connecting the open inode to the superblock of the corresponding file if there is no error in the file opening process.
제1항에 있어서, 상기 화일 읽기 단계는 화일의 모드가 TPIPC모드이면 화일의 원하는 부분을 확인하여 처리하고 해당 TPIPC를 읽는 단계와, 트랜잭션인 경우 읽기를 원하는 화일에 대해 다른 프로세스와의 잠금충돌을 확인한 뒤 화일에 레코드 수준 공유잠금을 얻어서 읽는 단계를 포함하는 것을 특징으로 하는 트랜잭션 처리시스템의 화일관리방법.The method of claim 1, wherein the reading of the file comprises: checking and processing a desired portion of the file when the file is in TPIPC mode, and reading a corresponding TPIPC; The file management method of a transaction processing system comprising the step of obtaining and reading a record-level shared lock on a file after checking.
제1항에 있어서, 상기 화일쓰기 단계는 화일의 모드가 TPIPC모드이면 오프셋을 확인하여 처리하고 해당 TPIPC에 자료를 쓰는 단계와, 쓰려고 하는 화일의 크기가 해당 아이노드 보다 클경우 다른 프로세서가 상기 화일을 쓰지 못하도록 하고 현재의 위치에서 화일의 최대 크기까지 변경된 화일의 크기가 갱신전 이미지를 로그에 기록하고 화일에 변경내용을 기록하는 단계와, 오류발생시 화일모드가 트랜잭션 모드이면 트랜잭션 수행을 중지시키고 정상이면 회복처리를 위한 인텐트 로깅을 수행하는 단계를 포함하는 것을 특징으로 하는 트랜잭션 처리시 스템의 화일관리방법.The method of claim 1, wherein the writing of the file comprises: checking and processing an offset when the file is in TPIPC mode, and writing data to the TPIPC; Log file before the update and record the changes in the file, if the file size changed from the current location to the maximum size of the file is changed, and if the file mode is in transaction mode when an error occurs, stops the transaction and resumes normal operation. And performing intent logging for recovery processing.
제1항에 있어서, 상기 화일닫기 단계는 트랜잭션 처리중의 화일닫기 요구가 있으면 트랜잭션 종료시까지 지연시키는 단계와, 트랜잭션 종료 또는 취소시 지연된 화일닫기 요구를 수용하여 화일닫기를 수행한 후 트랜잭션 모드인 경우 수퍼블록에서 아이노드를 제거하고 화일 테이블을 반납하는 단계를 포함하는 것을 특징으로 하는 트랜잭션 처리시스템의 화일관리방법.The method of claim 1, wherein the closing of the file comprises delaying the closing of the file if there is a closing request during transaction processing, and performing a closing of the file by accepting the delayed closing of the file. Removing the inode from the superblock and returning the file table.
※ 참고사항 : 최초출원 내용에 의하여 공개하는 것임.※ Note: The disclosure is based on the initial application.