Skip to content

Add the ability to specify the seed data path#230

Merged
folbricht merged 1 commit intofolbricht:masterfrom
RyuzakiKK:seed_and_data
Dec 7, 2022
Merged

Add the ability to specify the seed data path#230
folbricht merged 1 commit intofolbricht:masterfrom
RyuzakiKK:seed_and_data

Conversation

@RyuzakiKK
Copy link
Copy Markdown
Contributor

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

Comment thread cmd/desync/extract.go Outdated
Comment thread cmd/desync/extract.go Outdated
Comment thread cmd/desync/extract.go Outdated
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: folbricht#228

Signed-off-by: Ludovico de Nittis <ludovico.denittis@collabora.com>
Copy link
Copy Markdown
Owner

@folbricht folbricht left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you

@folbricht folbricht merged commit 7562cdd into folbricht:master Dec 7, 2022
JeremieA pushed a commit to InSimo/desync that referenced this pull request Apr 10, 2026
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: folbricht#228

Signed-off-by: Ludovico de Nittis <ludovico.denittis@collabora.com>

Signed-off-by: Ludovico de Nittis <ludovico.denittis@collabora.com>
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.

Add a --seed-and-data option or something similar

2 participants