You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add live snapshot API with device ID tracking and layer restacking
This commit introduces a live snapshot feature for overlaybd with the following
key capabilities:
- Add HTTP API server (/snapshot endpoint) for creating snapshots on demand
- Implement create_snapshot() to dynamically restack RW layers
- Add device ID tracking system for image file management
- Support config_path;dev_id format in configuration strings
- Extend LSMT layer management with restack(), index manipulation, and file operations
- Add comprehensive tests for restacking, device registration, and snapshot creation
Co-authored-by: Xun Chen <xunchen@hust.edu.cn>
Co-authored-by: Yifan Yuan <tuji.yyf@alibaba-inc.com>
Signed-off-by: Yifan Yuan <tuji.yyf@alibaba-inc.com>
// LOG_ERROR_RETURN(0, -1, "The last lower layer(`) should be the same as old upper layer(`) after restack.", lowers[lowers.size()-1].file(), conf.upper().data());
LOG_ERROR_RETURN(0, -1, "The new upper layer(`, `) should be different from the old upper layer(`, `).", upper.data(), upper.index(), conf.upper().data(), conf.upper().index());
0 commit comments