MCPcopy Create free account
hub / github.com/badvision/jace / deallocate

Method deallocate

src/main/java/jace/hardware/massStorage/DiskNode.java:95–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93 }
94
95 public void deallocate() {
96 if (allocated) {
97 ownerFilesystem.deallocateEntry(this);
98 doDeallocate();
99 allocationTime = -1L;
100 allocated = false;
101 additionalNodes.clear();
102 // NOTE: This is recursive!
103 getChildren().stream().forEach((node) -> {
104 node.deallocate();
105 });
106 }
107 }
108
109 public void refresh() throws IOException {
110 deallocate();

Callers 1

refreshMethod · 0.95

Calls 3

doDeallocateMethod · 0.95
getChildrenMethod · 0.95
deallocateEntryMethod · 0.80

Tested by

no test coverage detected