-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Refactor and cleanup fs code from internal/restic #5021
Copy link
Copy link
Open
Labels
type: trackingtracks and sums up other issues on a specific topictracks and sums up other issues on a specific topic
Description
The internal/restic package contains a large amount of code that directly interacts with the filesystem in order to fill in information for restic.Node objects. This code should move into the internal/fs package.
Besides that the code should be cleaned up in several regards:
- move code Extract filesystem code from restic.Node #5022
- cleanup and reduce API interface of fs package Cleanup FS package #5024
- limit our custom fs code to backup/restore usage. For other code like the backend or cache, the go standard library should be up to the task with only minor exceptions. Cleanup FS package #5024
- refactor archiver to always use FS interface
- most changes: archiver: use FS interface nearly everywhere and cleanup exports #5023
- NodeFromFileInfo: fs: move NodeFromFileInfo into FS interface #5060
- work with file handles instead of paths to properly handle disappearing files Ignore disappeared source files #3098
- refactor FS interface: fs: rework FS interface to be handle based #5143
- implement File interface using file handles: fs: filehandle-based File #5160
- ignore errors if file disappears between readdir and open: backup: Ignore disappeared files #5145
- refactor restorer to use FSWriter (name TBD) interface
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type: trackingtracks and sums up other issues on a specific topictracks and sums up other issues on a specific topic
Type
Projects
Status
Todo