Files
reims-vgpu/guest/rgfxgate/src
Anees Iqbal a5d3ddf675 🐛 Remove a staged bundle tree whole, files of older builds too
RgfxGate's removeTree removed only the files this build's payload names. A
file an older build staged and this one dropped kept its directories and the
staging root, NAME.bundle.new, from going; the next install then staged into
that root and swapped it in as the live bundle, the old file with it, and it
swapped back and forth at each upgrade after.

The removal now reads the directories (VNOP_READDIR, extended records) and
removes every node under the root, deepest first, then the root, with
lookups that do not follow a final symbolic link. The walk is header-only
(rgfx_tree.h) over the file system it is given, so tree_test runs it over
real directories: a tree with a file the payload does not name goes whole,
links are removed and their targets kept, and a node it cannot remove, a
directory too deep or a path too long for its buffer stops it. A live bundle
that already holds such a file is cleaned at the next upgrade, as the
swapped-out tree is removed this way.
2026-11-05 21:59:32 -08:00
..