Code Monkey home page Code Monkey logo

Comments (6)

dundee avatar dundee commented on May 18, 2024

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.

mahomedh avatar mahomedh commented on May 18, 2024

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.

dundee avatar dundee commented on May 18, 2024

Do you have some symlinked directories on the path? Maybe gdu is getting different absolute path.

from gdu.

mahomedh avatar mahomedh commented on May 18, 2024

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.

dundee avatar dundee commented on May 18, 2024

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.

mgarort avatar mgarort commented on May 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.