-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the ability to specify the seed data path
When using the `--seed foo.caibx` option, Desync expects to find the data in foo, next to the provided .caibx file. While this is a valid assumption for files, it requires additional steps when the data is a block device. For example a common suggestion in those cases is to create a symlink next to the seed index. Instead, now `--seed` gains the ability to explicitly set a path for the data blob. The syntax becomes: `--seed /path/to/index.caibx:/path/to/data`. If the colon is missing, the old behavior of expecting the data next to the index file will still be used by default. Fixes: #228 Signed-off-by: Ludovico de Nittis <[email protected]>
- Loading branch information
Showing
4 changed files
with
45 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
blob1.caibx |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
blob2.caibx |