Opened at 2015-06-01T16:24:23Z
Closed at 2020-06-30T13:43:30Z
#2440 closed defect (somebody else's problem)
Magic Folder: garbage-collect old versions of files on seeing a newer version
Reported by: | daira | Owned by: | daira |
---|---|---|---|
Priority: | normal | Milestone: | eventually |
Component: | code-frontend-magic-folder | Version: | 1.10.0 |
Keywords: | magic-folder gc space-efficiency | Cc: | |
Launchpad Bug: |
Description
When a Magic Folder client sees a newer version of a file in another client's DMD, it should unlink the older version from its own DMD. This ensures that old versions are not retained unnecessarily by garbage collection.
Change History (5)
comment:1 Changed at 2015-06-01T16:24:50Z by daira
comment:2 follow-up: ↓ 3 Changed at 2015-07-14T12:05:53Z by dawuud
When a magic-folder client discovers a new version of a file within the DMD... this means within the DMD but not in our own Tahoe upload directory. We must link the DMD file into the client's Tahoe upload dir... after unlinking the old file.
comment:3 in reply to: ↑ 2 Changed at 2015-07-23T15:20:13Z by daira
Replying to dawuud:
When a magic-folder client discovers a new version of a file within the DMD... this means within the DMD but not in our own Tahoe upload directory. We must link the DMD file into the client's Tahoe upload dir... after unlinking the old file.
It's not necessary to link the new version into this client's DMD, because it is already in the other client's DMD, and we don't rely on all the DMDs being eventually the same. What I was intending was that if we are modifying our own DMD anyway, we "garbage collect" links to versions that are known to be old.
It would be possible to link the new version at the same time even though it isn't required, but that is a separate design decision and not what I was intending to refer to by this ticket.
comment:4 Changed at 2016-03-21T15:25:17Z by daira
- Summary changed from Magic Folder: unlink old versions of files on seeing a newer version to Magic Folder: garbage-collect old versions of files on seeing a newer version
comment:5 Changed at 2020-06-30T13:43:30Z by exarkun
- Resolution set to somebody else's problem
- Status changed from new to closed
magic-folder has been split out into a separate project - https://github.com/leastauthority/magic-folder
Note that this is *not* required as part of OTF objective 4.