Skip to content

Commit 76e8b37

Browse files
authored
Merge pull request #86 from vchrombie/undo-corrections
Update UndoParOne to add more clarifications
2 parents fb77c9c + 33cbd7e commit 76e8b37

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

EducationalAssignments/UndoPartOne.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ properly in different cases and to test attacks against your monitor.
3333
1. Your defense monitor should incorporate all the standard file operation
3434
methods, with an added method named `undo`.
3535
2. A `writeat` operation will not immediately write its changes to the file. The
36-
changes will only be permanent after either of the following occur:
36+
changes will only be permanent (commit) after either of the following occur:
3737
- A subsequent valid `writeat` operation is executed.
3838
- The file is closed.
3939
3. The `undo` operation will reverse the changes of the last valid `writeat`
@@ -44,7 +44,8 @@ properly in different cases and to test attacks against your monitor.
4444
undone.
4545
4. Aside from the ability to be undone and potentially delayed writes, all
4646
`writeat` operations should behave the same way as they do in the RepyV2 API.
47-
47+
5. The `undo` operation raises `FileClosedError` if the file is already closed.
48+
6. `readat` cannot read data that has not been committed to the file.
4849

4950
Three design paradigms are at work in this assignment: accuracy, efficiency, and
5051
security.

0 commit comments

Comments
 (0)