Comments (3)
-xdev
will make find
never leave the filesystem it started on. czkawka
should do that too.
Example:
/
is on/dev/sda1
/usr/share/databases
is on/dev/sda2
then a search starting in /usr
would look at all files recursively in /usr/
but at no files in /usr/share/databases
.
Why its useful
In the current czkawka
version when I want to search for duplicate files in /
device then it would search /proc
and /dev
and /sys
too. It doesn't make sense to search in these so /proc
and /dev
and /sys
are in the excluded dirs by default.
But it also searches in /tmp
which is wrong because its tmpfs so I add /tmp
to the excluded dirs too and restart search.
But it also searches in /run
which is wrong because its tmpfs so I add /run
to the excluded dirs too and restart search.
But it also searches in /boot/efi
which is wrong because its the EFI ROM so I add /boot/efi
to the excluded dirs too and restart search.
But it also searches in /mnt/nfs
which is wrong because its a network filesystem so I add /mnt/nfs
to the excluded dirs too and restart search.
And so on .... .
Exclusion lists are like chasing an imperfect solution here. Limiting the search to one filesystem is really useful here to automatically exclude all of /proc
and /dev
and /sys
and /run
and ... and so on without needing to work on a list that will never be perfect.
from czkawka.
I'm not sure if I understand this correctly what this argument do.
By default find
search also places at which points symbolic links, and -xdev
prevents from doing this?
If yes, then this issue can be closed because Czkawka just ignore symbolic links, because they will allow to break tree hierarchy of file system, and will force to remove some directory optimizations and it will require additional step with removing duplicated same files with identical path.
from czkawka.
For anyone - https://doc.rust-lang.org/std/os/unix/fs/trait.MetadataExt.html#tymethod.rdev - this may be helpful
from czkawka.
Related Issues (20)
- Hardlink files found by name
- crash while sorting by selection HOT 1
- AVIF support
- czkawka_gui crashing on "Remove outdated results from cache." HOT 2
- M1 MAC - could not compile - build failed (Unrecognized option: 'diagnostic-width') HOT 2
- The program crashes when processing photos with incomplete filenames (e.g., ".jpeg", ".png", and likely others, untested). HOT 1
- libraw support breaks compilation for me
- krokiet compiles very long on Windows HOT 2
- [Feature request] mark a folder as anti-reference
- Flatpak version is out of date HOT 1
- Hash Size = 40 on Krokiet v7.0.0 (Windows)
- Ignore duplicates unless they're in the same sub-folder
- Finding duplicate Directory Structures HOT 1
- Reference Path Image Preview on Krokiet v7.0.0 (Windows)
- Slow Directory Browsing on Krokiet v7.0.0 (Windows)
- Bulk rename and sort by date
- How to ignore a group in subsequent searches?
- Additional Info Columns for Similar/Duplicate Videos | Resolution, Codec, Bitrate HOT 1
- Delete Only Files and not Groups?
- FInd Not duplicated files HOT 2
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 czkawka.