Closed qi0523 closed 1 year ago
@qi0523 dev_xx would not directly impact the logic of the snapshot. dev_xx was associated with a snapshot, and wound delete with that snapshot. If default config was used, that dev_xx was associated with the snapshot of the top image layer.
ctr snapshot --snapshotter=overlaybd tree
sudo ctr snapshot --snapshotter=overlaybd rm sha256:3682baf14f4112551b51547171ab9e6bafd831de5bea21200f7eafebd274222a
error msg:
ctr: failed to remove "sha256:3682baf14f4112551b51547171ab9e6bafd831de5bea21200f7eafebd274222a": cannot remove snapshot with child: failed precondition
Is it because /sys/kernel/config/tartget/core/user_999999999/dev_xx was not deleted?
When using
ctr image rm xxx
, the overlaybd snapshots and /sys/kernel/config/tartget/core/user_999999999/dev_xx are all removed.