Thanks to visit codestin.com
Credit goes to github.com

Skip to content

mount: prevent mounting over repository #5234

Description

@axet

Hello!

Mounting restic repository to same restic folder causing system to be unsable and reboot takes 10 minutes to recover.

1. create restic mount
2. mount it to it self
3. try to 'ls' or unmount
4. system will delay, reboot takes a lot time
restic --insecure-no-password -r  /media/axet/64GB/Archives/ mount /media/axet/64GB/Archives/
repository d8a55f2c opened (version 2, compression level auto)
[0:00] 100.00%  3 / 3 index files loaded
Now serving the repository at /media/axet/64GB/Archives/
Use another terminal or tool to browse the contents of this folder.
When finished, quit with Ctrl-c here or umount the mountpoint.
  signal interrupt received, cleaning up
unable to umount (maybe already umounted or still in use?): exit status 1: fusermount: failed to unmount /media/axet/64GB/Archives: Device or resource busy
  • restic 0.17.3-1

Would be better to have openat implemented and allow self-mount #5230

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions