Project

General

Profile

Actions

Story #9591

open

[FUSE] Undelete collections by moving them out of the TrashDirectory

Added by Brett Smith almost 9 years ago. Updated almost 4 years ago.

Status:
New
Priority:
Normal
Assigned To:
Tom Morris
Category:
-
Target version:
-
Start date:
07/13/2016
Due date:
% Done:

0%

Estimated time:
Story points:
-

Description

Basic idea: When FUSE is mounted --read-write, a user can undelete a collection by moving the collection directory from anywhere under the TrashDirectory to a ProjectDirectory outside the TrashDirectory. rename methods see this operation and update the collection to set its expires_at attribute to null, and update the owner_uuid and name if appropriate.

#9590 says that the TrashDirectory and everything under it should be read-only. This story adds some nuance to that rule: only collection directories under the TrashDirectory, and their contents, should be read-only. The TrashDirectory itself and all ProjectDirectories under it should be read-write, to indicate to the user that they can do (some) write operations on the contents, like this move.

Moving the collection directory anywhere else (like somewhere else under TrashDirectory, or to the mount root when it's not a ProjectDirectory) is still an error.

If updating the API record fails, that should be reflected as an I/O error from the rename operation.


Related issues 1 (1 open0 closed)

Related to Arvados - Story #9278: [Crunch2] Document/fix handling of collections with non-nil expires_at fieldIn Progress06/01/2016

Actions
Actions

Also available in: Atom PDF