Skip to content

Commit

Permalink
storage/reflink: _is_supported(): make src_dir keyword-only
Browse files Browse the repository at this point in the history
Nothing currently uses the optional src_dir argument, but let's make
sure callers can't confuse it with the *preceding* dst_dir argument.
  • Loading branch information
rustybird committed Feb 2, 2022
1 parent 62f2025 commit 6dfa1d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qubes/storage/reflink.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ def _copy_file(src, dst):
raise qubes.storage.StoragePoolException(str(result))
return reflinked

def is_supported(dst_dir, src_dir=None):
def is_supported(dst_dir, *, src_dir=None):
''' Return whether destination directory supports reflink copies
from source directory. (A temporary file is created in each
directory, using O_TMPFILE if possible.)
Expand Down

0 comments on commit 6dfa1d8

Please sign in to comment.