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)
- macos no detecting tty HOT 5
- [Question] Is it possible to delete files/directories in parallel ? HOT 17
- [Windows] Sort in non-interactive mode are different (and not correct) from interactive
- pi5 aarch64: gcc: error: unrecognized command-line option '-marm' HOT 4
- Add keybinding for ignoring directory under the cursor HOT 3
- Feature request: background deletion HOT 1
- Feature request: compression estimate support HOT 1
- Feature: replace error symbol HOT 1
- Always Scanning HOT 6
- Try using SetMemoryLimit
- external (cgo) linking - failure to build groupcache HOT 1
- ENTER key not working when navigating loaded json file HOT 1
- panic: interface conversion HOT 3
- Feature request: seqential mode for hdd HOT 9
- "--max-depth" support - allow for summary of size per directory
- Add configurable option to show number of items column HOT 3
- Feature Request: Preview inside zip, gzip etc.
- Get top large files HOT 1
- Division by zero in formatFileRow() causes gdu to hang HOT 1
- Add option to set 'use-old-size-bar' via command line HOT 1
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.