Skip to content

Commit c9652c2

Browse files
committed
osctld: remount datasets on container stop
This is a partial workaround for openzfs/zfs#16817. Unmounting datasets will sync dirtied pages to disk.
1 parent d3b91b4 commit c9652c2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

osctld/lib/osctld/console/console.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ def handle_ct_stop(ctrc)
9898

9999
if ctrc.destroy_dataset_on_stop?
100100
GarbageCollector.free_container_run_dataset(ctrc, ctrc.dataset)
101+
elsif !ct.ephemeral?
102+
# Force write-out of dirtied pages
103+
ct.unmount
104+
ct.mount
101105
end
102106

103107
ctrc.fulfil_exit

0 commit comments

Comments
 (0)