Commit 7e4c37c
Remove dirs and files across mounts in containers
When running in a container, the root filesystem uses OverlayFS. Due to
a quirk of the OverlayFS implementation, nftw() will not include certain
files in the walk since their device number differs from the parent
directory. We remove the FTW_MOUNT flag to ensure that all child file and
directories are deleted before deleting the parent.
Bug: 4658041221 parent de717b4 commit 7e4c37c
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
333 | | - | |
| 333 | + | |
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
| |||
0 commit comments