Skip to content

Commit 4eb2a3d

Browse files
committed
osctld: always unmount datasets on ct stop or send
1 parent 1fee769 commit 4eb2a3d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

osctld/lib/osctld/commands/container/send_state.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def execute
2727
call_cmd(Commands::Container::Stop, id: ct.id, pool: ct.pool.name)
2828

2929
# Force write-out of dirtied pages
30-
ct.unmount
30+
ct.unmount(force: true)
3131
end
3232

3333
snap = "osctl-send-incr-#{Time.now.to_i}"

osctld/lib/osctld/console/console.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def handle_ct_stop(ctrc)
102102

103103
unless ct.ephemeral?
104104
# Force write-out of dirtied pages
105-
ct.unmount
105+
ct.unmount(force: true)
106106
ct.mount
107107
end
108108

0 commit comments

Comments
 (0)