From ef7b1b95f61fda1be25842d68983980c5d118993 Mon Sep 17 00:00:00 2001 From: Darryl Nixon Date: Sun, 16 Jul 2023 11:01:38 -0700 Subject: [PATCH] Improve FS discovery logging --- melamine/fileops.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/melamine/fileops.py b/melamine/fileops.py index 6b3fc35..51926d3 100644 --- a/melamine/fileops.py +++ b/melamine/fileops.py @@ -30,6 +30,7 @@ def get_all_mounts() -> List: async def mount_to_fs_handler(path: Path) -> str: # TODO: This is a hacky way to get the filesystem type, but it works for now. # Maybe with libblkid Python bindings? + logger.info(f"Getting filesystem for mount: {path}") proc = await asyncio.create_subprocess_exec( "stat", "-f", "-L", "-c", "%T", str(path), stdout=asyncio.subprocess.PIPE, stdin=asyncio.subprocess.PIPE ) @@ -41,6 +42,7 @@ async def mount_to_fs_handler(path: Path) -> str: raise RuntimeError(err) fs = stdout.decode().strip() + logger.info(f"Filesystem for {path}: {fs}") try: return FSHandlers[fs]