shorten snapshot paths to fit 88 char limit in iocage jails #12
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