2023-04-23 10:40:29 +00:00
|
|
|
Bugfix: `mount` should no longer create spurious filesystem loops
|
2023-03-21 16:33:18 +00:00
|
|
|
|
2023-04-23 10:40:29 +00:00
|
|
|
When a backup contains a directory that has the same name as its parent, say
|
|
|
|
`a/b/b`, and the GNU `find` command were run on this backup in a restic mount,
|
|
|
|
`find` would refuse to traverse the lowest `b` directory, instead printing
|
|
|
|
`File system loop detected`. This is due to the way the restic mount command
|
|
|
|
generates inode numbers for directories in the mount point.
|
2023-03-21 16:33:18 +00:00
|
|
|
|
|
|
|
The rule for generating these inode numbers was changed in 0.15.0. It has
|
|
|
|
now been changed again to avoid this issue. A perfect rule does not exist,
|
|
|
|
but the probability of this behavior occurring is now extremely small.
|
|
|
|
When it does occur, the mount point is not broken, and scripts that traverse
|
|
|
|
the mount point should work as long as they don't rely on inode numbers for
|
|
|
|
detecting filesystem loops.
|
|
|
|
|
|
|
|
https://github.com/restic/restic/issues/4253
|
|
|
|
https://github.com/restic/restic/pull/4255
|