Comments (6)
That is strange. gdu /mnt/backups/minio -i /mnt/backups/minio/dirC
should work properly, just tested similar case locally.
Do you have something not ordinary? Maybe case insensitive file system?
from gdu.
It's a standard Ubuntu 20.04 install. The partition is ext4. The directories inside /mnt/backups/minio/
are actually minio buckets. dirC
is actually the bucket used for storing backup data from urbackup but I can't see anything that would make this directory anymore special than the other directories at that same level.
I can try to provide any other info if you can tell me what you need.
from gdu.
Do you have some symlinked directories on the path? Maybe gdu
is getting different absolute path.
from gdu.
Yes /mnt/backups/minio/urbackup
(or /mnt/backups/minio/dirC
as per my example) has lots of symlinks inside of it. Even du
and ncdu
take absolute ages to process this directory. That's the reason I was trying to exclude it.
Does --ignore-dirs
in gdu do pre or post filtering? It sound like it is probably doing post filtering and that's why I am still seeing it processing that directory and if I wait long enough for it to finish, then it will exclude that directory from the final display (I guess I could test it).
If that's the case, it's looking like my only option is going to be to go through each top-level directory separately to then be able to ignore dirC
.
from gdu.
Gdu does pre filtering. It checks absolute path of the every directory when entering it and checks if it matches some of the ignored dirs paths (exact match). If it matches, it ignores the directory completely.
My guess is that gdu sees different absolute path than /mnt/backups/minio/dirC
.
I could probably add some debug flag to log all directory paths which are processed.
from gdu.
Hello,
I just encountered the same issue. Indeed, the reason why gdu
was still looking at the directory to ignore was that the directory to ignore was reachable through a symbolic link in my home directory. I fixed it by ignoring the path through the symbolic link as well.
To be more specific, what I did was: instead of gdu --ignore-dirs /absolute/path
, I did gdu --ignore-dirs /absolute/path,/absolute/path/through/symbolic/link
.
The way that du
indicates to ignore directories is through relative paths. Perhaps this would make it easier to avoid situations like mine or @mahomedh 's. @dundee perhaps this is worth looking into?
Thanks.
from gdu.
Related Issues (20)
- Feature request: commandline switch to disable file deletion
- Application crash on WSL in the mounted disks screen HOT 5
- tiny enhancement: always (try to) change directory HOT 1
- Add `h` and `l` as left/right keys for `d` (delete) menu confirmation
- Dismissing help menu coming from delete menu makes it impossible to select delete menu options
- [Question] Is there a way to limit the max depth of scanning? HOT 2
- Make key based settings/toggles available through config/command-line
- add parallel-disk-usage to benchmark
- feat: add ctrl+z for job control support HOT 4
- Strange behavior when returning from CTRL-Z - 5.24.0 HOT 14
- How about higher resolution size bar ? HOT 4
- gdu not display location of symlinks ?
- Feature: add a mode for visualizing inodes distribution on the disk HOT 2
- Windows version includes files synced from OneDrive/Sharepoint in space calculations
- gdu with ssh won't close, 100 percent cpu usage HOT 4
- Is possible to add feature to remove all hardlinks?
- Try building with PGO HOT 1
- feature: sort by create/update date HOT 1
- Windows NTFS drive mounted in linux infinitely traverses symlinks without -L flag
- Error When Pressing Right Key in Empty Folder: Panic with Interface Conversion Nil Error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gdu.