Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fsstorageplugin] Ensure that storage names are unique. JB#53587
Previously when memory cards etc were mounted on fs using directory names derived from disk label, the names visible to buteo-mtp could be assumed to be already unique. Now that mount point directory is volume identifier, buteo-mtp needs to be prepared to handle cases several memory devices have the same label e.g. manufacturer name. An attempt is made to make labels unique by enumerating duplicates. In case few rounds of enumeration does not result in unique labels, the duplicates are ignored and not exported over mtp. Signed-off-by: Simo Piiroinen <simo.piiroinen@jolla.com>
- Loading branch information
Showing
1 changed file
with
63 additions
and
9 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