OstreeRepoFinderMount 3 OSTREE Library
OstreeRepoFinderMount Finds remote repositories from ref names by looking at mounted removable volumes

## Stability Level

Unstable, unless otherwise indicated

## Types and Values

| OstreeRepoFinderMount

## Includes

    #include <libostree/ostree-repo-finder-mount.h>

## Description

OstreeRepoFinderMount is an implementation of OstreeRepoFinder which looks refs up in well-known locations on any mounted removable volumes.

For each mounted removable volume, the directory `.ostree/repos.d` will be enumerated, and all OSTree repositories below it will be searched, in lexical order, for the requested OstreeCollectionRefs. The names of the directories below `.ostree/repos.d` are irrelevant, apart from their lexical ordering. The directories `.ostree/repo`, `ostree/repo` and `var/lib/flatpak/repo` will be searched after the others, if they exist. Non-removable volumes are ignored.

For each repository which is found, a result will be returned for the intersection of the refs being searched for, and the refs in `refs/heads` and `refs/mirrors` in the repository on the removable volume.

Symlinks are followed when listing the repositories, so a volume might contain a single OSTree at some arbitrary path, with a symlink from `.ostree/repos.d`. Any symlink which points outside the volume’s file system will be ignored. Repositories are deduplicated in the results.

The volume monitor used to find mounted volumes can be overridden by setting “monitor”. By default, `g_volume_monitor_get()` is used.

## Functions

## Types and Values

### OstreeRepoFinderMount

    typedef struct _OstreeRepoFinderMount OstreeRepoFinderMount;

OstreeRepoFinderMount