mirror of
https://github.com/rustfs/rustfs.git
synced 2026-07-26 16:28:15 +00:00
32b1094ec3
walkdir defaults to follow_root_links=true precisely so a root that is itself a symlink still descends, but the scanner overrode it with the general follow_symlinks flag (default false). For the common indirection layout (/data/rustfs0 -> /mnt/vol0) the walk yielded a single skipped symlink entry and returned used_bytes=0, file_count=0, is_estimated=false with no error and no log — an exact 0 committed straight into the per-disk baseline (S05). Canonicalize the scan root before walking (also covering nested indirection and keeping the dedicated-mount statvfs check on the real path); resolution failures surface as scan errors instead of a silent zero. Inner-symlink policy is unchanged. Ref: rustfs/backlog#1015 (S05 from audit rustfs/backlog#1010)