remove the partial salvage dir when a salvage fails
- a failure between creating the dir and the rename removes that dir only - give the ephemeral-rootfs vm test a 4 GiB disk so the space check passes
This commit is contained in:
parent
836b15a46e
commit
86e80250bb
1 changed files with 115 additions and 13 deletions
|
|
@ -423,9 +423,10 @@ anything, hive-priv sizes the root and compares it with the free space under
|
|||
leave 2 GiB free. One that has to copy data must leave 15 % of the filesystem
|
||||
free. When the free space is short, hive-priv skips the salvage, deletes
|
||||
nothing, logs `salvage skipped: <container> need <size> free <size>`, and the
|
||||
container starts persistent; the next start tries again. hive-priv checks a file that fails to
|
||||
clone against the 2 GiB reserve again before it copies the data. After a
|
||||
salvage, hive-priv logs `salvage: <container> <size> reflinked=<n>/<m> files`.
|
||||
container starts persistent; the next start tries again. hive-priv checks a file
|
||||
that fails to clone against the 2 GiB reserve again before it copies the data. A
|
||||
salvage that fails partway removes the directory it created, and leaves the root
|
||||
and any earlier salvage as they were. After a salvage, hive-priv logs `salvage: <container> <size> reflinked=<n>/<m> files`.
|
||||
|
||||
**Concurrency.** hive-priv holds an `flock` on
|
||||
`/run/hive-priv/salvage-<container>.lock` (the unit's `RuntimeDirectory`, which
|
||||
|
|
|
|||
Loading…
Reference in a new issue