Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[antlir2][prebuilt] fix subvol_symlink on fbpkg layers and userspace …
…sendstreams Summary: This was being set to `None` which prevented incremental sendstreams based on `fbpkg` layers from actually being incremental. Also add a test that `incremental_parent` is never lost if its set. Test Plan: ``` ❯ buck2 build --show-output fbcode//metalos/metald:metalos.metald--incremental-sendstream Buck UI: https://www.internalfb.com/buck2/418e74a3-a60b-4e2e-8dec-43910ebbab7a Network: Up: 0B Down: 0B (reSessionID-9b256f52-376a-48f1-a343-3afa06db84c1) Jobs completed: 16486. Time elapsed: 28.9s. Cache hits: 0%. Commands: 1 (cached: 0, remote: 0, local: 1) BUILD SUCCEEDED fbcode//metalos/metald:metalos.metald--incremental-sendstream buck-out/v2/gen/fbcode/18038f740d6221a4/metalos/metald/__metalos.metald--incremental-sendstream__/image.sendstream ``` ```name="first command is incremental snapshot" ❯ btrfs receive --dump -f buck-out/v2/gen/fbcode/18038f740d6221a4/metalos/metald/__metalos.metald--incremental-sendstream__/image.sendstream | he ad -1 snapshot ./volume uuid=818ec2c7-d084-4d4d-a4d1-cdc2da132847 transid=1172566 parent_uuid=1e0ec63d-c5de-0e40-a7a0-a7dd520af4ad parent_transid=1172552 ``` ```name="delta is small" ❯ ls -lh buck-out/v2/gen/fbcode/18038f740d6221a4/metalos/metald/__metalos.metald--incremental-sendstream__/image.sendstream -rw-r--r-- 1 vmagro users 6.7M Sep 23 11:07 buck-out/v2/gen/fbcode/18038f740d6221a4/metalos/metald/__metalos.metald--incremental-sendstream__/image.sendstream ``` Reviewed By: aijayadams Differential Revision: D63270880 fbshipit-source-id: 2501979c2e2fd7f885d7e9471aed0e30f2abfbc9
- Loading branch information