diff options
author | Thomas Orozco <torozco@fb.com> | 2023-02-22 04:04:35 -0800 |
---|---|---|
committer | Thomas Orozco <torozco@fb.com> | 2023-02-22 04:04:35 -0800 |
commit | fe956ca6f244613762bb48de79eac1f6fa399e1b (patch) | |
tree | 8b2e78dc77b5311844505c38302a549f1fc469d9 /src/traverse.rs | |
parent | e6c10c5b311ad25d010f18d51f150d34bf62b815 (diff) |
traverse: don't recurse on cross-device filesystems
Like it says in the title. Right now, if you pass `-x`, dua doesn't
count files on other devices, but it still enumerates them. However, a
good reason to use `-x` is if you have network mounts that are slow, so
this fixes that.
Diffstat (limited to 'src/traverse.rs')
-rw-r--r-- | src/traverse.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/traverse.rs b/src/traverse.rs index 1bbece4..f61ab41 100644 --- a/src/traverse.rs +++ b/src/traverse.rs @@ -103,7 +103,7 @@ impl Traversal { } }; for (eid, entry) in walk_options - .iter_from_path(path.as_ref()) + .iter_from_path(path.as_ref(), device_id) .into_iter() .enumerate() { |