Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rbd trash: replace cli delay option, add rbd trash purge command
Replaced the delay argument for the trash move command with a string acceptable by /bin/date, e.g.: $ rbd trash move --pool foo --image bar --expires-in "2 weeks" Added a "rbd trash purge" command that deletes any expired image from the trash, has also a command to alter the current expiration date with the "--older-than" argument which accepts again a valid argument for /bin/date, e.g.: $ rbd trash purge mypool --older-than "2017-08-20" There is also the "threshold" argument which tries to remove the oldest trashed images (by deferment end time) until the pool space is freed up to a percentage point, e.g.: $ rbd trash purge mypool --threshold 0.9 If mypool uses 1GB it will try to remove trashed images until the pool usage becomes equal to or lower than 900MB. Signed-off-by: Theofilos Mouratidis <t.mour@cern.ch>
- Loading branch information
Theofilos Mouratidis
committed
Nov 29, 2017
1 parent
df43e41
commit 4caeae1
Showing
6 changed files
with
215 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters