It contains 2 main tests: TestOpenClose & TestCreateClose
The current rules are a bit weird...... Files have 2 states: OPEN and CLOSE. Once a file is created, its initial state is CLOSE. When a file is opened, its state will change to OPEN. A file whose status is OPEN cannot be opened or created. A close request will not change the state to CLOSE but will release the file from the file data cache.
The question is, if we want to change a file to CLOSE, but not release it, what should we do? (May need to make some changes in status)
It contains 2 main tests: TestOpenClose & TestCreateClose
The current rules are a bit weird...... Files have 2 states: OPEN and CLOSE. Once a file is created, its initial state is CLOSE. When a file is opened, its state will change to OPEN. A file whose status is OPEN cannot be opened or created. A close request will not change the state to CLOSE but will release the file from the file data cache. The question is, if we want to change a file to CLOSE, but not release it, what should we do? (May need to make some changes in status)