mirror of
https://github.com/foo-dogsquared/wiki.git
synced 2025-01-30 22:57:59 +00:00
549f476c4c
The topics I've covered so far for Linux, package managers, archiving, and learning. I also updated some formatting for other notes especially with the command line references.
1.6 KiB
1.6 KiB
swh.fuse
A tool to interact with the Software Heritage Filesystem (SwhFS); you can see The Software Heritage Filesystem (SwhFS): Integrating Source Code Archival with Development paper for an introduction.
Some details about the tool itself…
- It is mainly used with the
swh fs
subcommand. - To mount the filesystem itself, use
swh fs mount DIRECTORY
.
When mounted, the directory should have the following structure:
swhfs
├── archive/
├── cache/
├── origin/
└── README
archive/
is the entry point for the archived repos in the library; the files inside there cannot be listed (e.g.,ls
, file managers) but you can access the files inside of it (e.g., text editors, file openers)cache/
contains on-disk representation of metadataorigin/
is where mounting of origins with an encoded URL
For up-to-date information, you can read the README
file.
With the complete setup, you are now ready to interact with the filesystem.
The point of interest here is the archive/
directory which holds all of the objects in the merkle tree.
You can see the model data from their documentation.
You can interact with it by accessing one of the repo through their SWHID.
ls swhfs/archive/${SWHID}
The tool lazily loads the repo, saving bandwidth and disk space.