Skip to content

partial filename too long fix and resumable rebalances#77

Open
r0b0tb4c0n wants to merge 2 commits intomarkusressel:masterfrom
r0b0tb4c0n:master
Open

partial filename too long fix and resumable rebalances#77
r0b0tb4c0n wants to merge 2 commits intomarkusressel:masterfrom
r0b0tb4c0n:master

Conversation

@r0b0tb4c0n
Copy link
Copy Markdown

as a low-hanging fruit solution for the filename too long error, the filename suffix was changed from .balance to .ZIR -- (Z)fs (I)nplace (R)ebalance. a possible long-term solution would be to use something like LC_ALL=C tr -cd 'A-Za-z0-9' < /dev/urandom | head -c 32 to generate a random name as a uuid

enable resumable rebalances by adding a --resume flag that does the following:

  1. gets the last file listed in rebalance_db.txt
  2. filters everything up to and including the last file out of grouped_inodes.txt and writes the difference to resume_grouped_inodes.txt
  3. sets the variable inode_file to be either grouped_inodes.txt if not resuming or resume_grouped_inodes.txt if resuming for later use in the script

@Baenwort
Copy link
Copy Markdown

I like the idea of using a shorter .ZIR instead of .balance!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants