diff options
Diffstat (limited to 'src/cephadm/cephadmlib/file_utils.py')
-rw-r--r-- | src/cephadm/cephadmlib/file_utils.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cephadm/cephadmlib/file_utils.py b/src/cephadm/cephadmlib/file_utils.py index 7c9e6f69e43..1b9f11499a4 100644 --- a/src/cephadm/cephadmlib/file_utils.py +++ b/src/cephadm/cephadmlib/file_utils.py @@ -139,3 +139,7 @@ def get_file_timestamp(fn): ).strftime(DATEFMT) except Exception: return None + + +def make_run_dir(fsid: str, uid: int, gid: int) -> None: + makedirs(f'/var/run/ceph/{fsid}', uid, gid, 0o770) |