Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Should Mtree be able to handle .caibx #249

Open
bearrito opened this issue Oct 23, 2023 · 4 comments
Open

[Question] Should Mtree be able to handle .caibx #249

bearrito opened this issue Oct 23, 2023 · 4 comments

Comments

@bearrito
Copy link
Contributor

From the README
mtree - Print the content of an archive or index in mtree-compatible format. However this doesn't seem to work with a blob.

#mtree v1.0
Error: unsupported element desync.FormatIndex in archive
@charles-dyfis-net
Copy link
Collaborator

charles-dyfis-net commented Oct 23, 2023

A caibx file doesn't have any directory entries to build a mtree for. It's not an "archive" in the relevant meaning, just a blob -- think a .gz file instead of a tar.gz or cpio.gz.

@bearrito
Copy link
Contributor Author

I seem to able to replicate this even with an archive

/usr/local/go/bin/desync tar -i -s /tmp/chunkstore/ /tmp/indices/23.1.5.archive.caidx /mnt/new/opt/locusrobotics/
/usr/local/go/bin/desync mtree /tmp/indices/23.1.5.archive.caidx
#mtree v1.0
Error: unsupported element desync.FormatIndex in archive

@folbricht
Copy link
Owner

When using mtree on an archive-index, you need the -i flag and also at least one -s store.

desync mtree -i -s tree.store/ tree.caidx

Whereas if you have a catar you can use mtree directly on it.

desync mtree tree.catar

Btw, make sure to update, I fixed an issue in the mtree command

@bearrito
Copy link
Contributor Author

My mistake. I'll update and try again.

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

No branches or pull requests

3 participants