mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-25 09:19:31 +00:00
Merge pull request #5831 from Swanand01/allow-files-cache=size
Allow --files-cache=size
This commit is contained in:
commit
1d1bbfc567
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ def ChunkerParams(s):
|
|||
|
||||
def FilesCacheMode(s):
|
||||
ENTRIES_MAP = dict(ctime='c', mtime='m', size='s', inode='i', rechunk='r', disabled='d')
|
||||
VALID_MODES = ('cis', 'ims', 'cs', 'ms', 'cr', 'mr', 'd') # letters in alpha order
|
||||
VALID_MODES = ('cis', 'ims', 'cs', 'ms', 'cr', 'mr', 'd', 's') # letters in alpha order
|
||||
entries = set(s.strip().split(','))
|
||||
if not entries <= set(ENTRIES_MAP):
|
||||
raise ValueError('cache mode must be a comma-separated list of: %s' % ','.join(sorted(ENTRIES_MAP)))
|
||||
|
|
Loading…
Reference in a new issue