shorten snapshot paths to fit 88 char limit in iocage jails#12
Open
rpepr wants to merge 1 commit intoadlibre:masterfrom
Open
shorten snapshot paths to fit 88 char limit in iocage jails#12rpepr wants to merge 1 commit intoadlibre:masterfrom
rpepr wants to merge 1 commit intoadlibre:masterfrom
Conversation
Contributor
|
Thanks for this. I don't think we're going to merge this right now. But I'll leave it open in case someone else finds it useful. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
FreeBSD has a long standing limitation that mount paths be 88 characters or less. With adlbre-backup running inside an iocage jail this limit makes the zfs snapshots unmountable since the mount path for the jail adds at least 27 characters to the path. I got around this by giving snapshots 2 digit numeric names and renaming hosts to h. The original snapshot name is stored in l/snap_data.
A side benefit of this change is that the zfs mountpoint can differ from the dataset name. My data set has a longish name to fit my convention for jailed data. It gets mounted on /b.
The changes are activated by HACK88=1 in backup.conf.
RP