Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide auto argument for BTRFS_DEFRAG_PATHS #54

Open
krichter722 opened this issue Jul 24, 2018 · 1 comment
Open

Provide auto argument for BTRFS_DEFRAG_PATHS #54

krichter722 opened this issue Jul 24, 2018 · 1 comment

Comments

@krichter722
Copy link

Like for other path specifications it'd be nice to have the option to specifcy auto as value for BTRFS_DEFRAG_PATHS and let paths considered for defragment be detected automatically.

@krichter722 krichter722 changed the title Provide auto arugment for BTRFS_DEFRAG_PATHS Provide auto argument for BTRFS_DEFRAG_PATHS Jul 24, 2018
@sten0
Copy link
Contributor

sten0 commented Sep 1, 2018

Hi @krichter722,

I'm not sure about the feasibility of this, because a snapshot could exist anywhere. One would have to: for each btrfs volume, for each directory (find -type d), and then additionally do something like this for each directory https://github.com/sten0/btrfs-borg/blob/devel/btrfs-borg-functions#L175 P.S. the devel branch of that project isn't in a usable or consistent state at the moment. [edit: oh, and additionally rw snapshots need to be checked and excluded, because snapshots should never be defragmented... There's another function for that in that file]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants