Details
-
Task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Mesosphere Sprint 27
-
2
Description
Since du --exclude uses pattern matching. A relative path might accidentally matches an irrelevant directory/file. For instance,
/tmp/testpath $ tree . ├── aaa │ └── exc │ └── file └── exc └── file 3 directories, 2 files /tmp/testpath $ du --exclude /tmp/testpath/exc /tmp/testpath/ 8 /tmp/testpath/aaa/exc 12 /tmp/testpath/aaa 16 /tmp/testpath/ /tmp/testpath $ du --exclude exc /tmp/testpath/ 4 /tmp/testpath/aaa 8 /tmp/testpath/ /tmp/testpath $