add posixfs index command#3068
Conversation
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Duplication | 0 |
🟢 Coverage 0.00% diff coverage · -0.02% coverage variation
Metric Results Coverage variation ✅ -0.02% coverage variation (-1.00%) Diff coverage ✅ 0.00% diff coverage Coverage variation details
Coverable lines Covered lines Coverage Common ancestor commit (0fd05d3) 82472 19096 23.15% Head commit (3937c6d) 82584 (+112) 19108 (+12) 23.14% (-0.02%) Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch:
<coverage of head commit> - <coverage of common ancestor commit>Diff coverage details
Coverable lines Covered lines Diff coverage Pull request (#3068) 112 0 0.00% Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified:
<covered lines added or modified>/<coverable lines added or modified> * 100%
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
| } | ||
| cmd.Flags().StringP("root", "r", "", "Path to the root directory of the posixfs storage") | ||
| cmd.Flags().StringSliceP("dirs", "d", []string{"users", "projects"}, "Subdirectories to scan for spaces") | ||
| cmd.Flags().StringP("space", "s", "", "Only index a specific space by ID") |
There was a problem hiding this comment.
Is there a reason why we're filtering by ID instead of directory name? They don't have to match and considering the backup-restore case I would think the directory name is what you have on hand anyway.
The
opencloud posix indexcommand allows adding spaces on disk to the posixfs spaceby-type,by-user-idandby-group-idindexes. It needs to be run when restoring a space from a backup.