dissect.target icon indicating copy to clipboard operation
dissect.target copied to clipboard

Make target-mount work with WinFsp

Open DissectBot opened this issue 1 year ago • 0 comments

Currently, target-mount does not function on windows machines. It uses the WinFs for fuse compatibility.

2024-01-11T14:26:31.564535Z [info     ] -> init / (<fuse3.c_fuse.LP_fuse_conn_info object at 0x000001B52F23BEC0>, <fuse3.c_fuse.LP_fuse_config object at 0x000001B52F23BF40>) [fuse]
2024-01-11T14:26:31.564535Z [info     ] <- init None [fuse]
2024-01-11T14:26:34.364883Z [info     ] -> getattr / (None,) [fuse] 
2024-01-11T14:26:34.364883Z [info     ] <- getattr {'st_atime': 0.0, 'st_ctime': 0.0, 'st_ino': 2321472178, 'st_gid': 0, 'st_mode': 16384, 'st_mtime': 0.0, 'st_nlink': 1, 'st_size': 0, 'st_uid': 0} [fuse]
2024-01-11T14:26:34.364883Z [info     ] -> getattr / (None,) [fuse]
2024-01-11T14:26:34.364883Z [info     ] <- getattr {'st_atime': 0.0, 'st_ctime': 0.0, 'st_ino': 2321472178, 'st_gid': 0, 'st_mode': 16384, 'st_mtime': 0.0, 'st_nlink': 1, 'st_size': 0, 'st_uid': 0} [fuse]
2024-01-11T14:26:34.364883Z [info     ] -> releasedir / (0,) [fuse]
2024-01-11T14:26:34.364883Z [info     ] <- releasedir 0 [fuse]
2024-01-11T14:26:34.380398Z [info     ] -> init / (<fuse3.c_fuse.LP_fuse_conn_info object at 0x000001B52F23BEC0>, <fuse3.c_fuse.LP_fuse_config object at 0x000001B52F23BF40>) [fuse]
2024-01-11T14:26:34.380398Z [info     ] <- init None [fuse]
2024-01-11T14:26:34.380398Z [info     ] -> getattr / (None,) [fuse]
2024-01-11T14:26:34.380398Z [info     ] <- getattr {'st_atime': 0.0, 'st_ctime': 0.0, 'st_ino': 2321472178, 'st_gid': 0, 'st_mode': 16384, 'st_mtime': 0.0, 'st_nlink': 1, 'st_size': 0, 'st_uid': 0} [fuse]
2024-01-11T14:26:34.380398Z [info     ] -> getattr / (None,) [fuse]
2024-01-11T14:26:34.380398Z [info     ] <- getattr {'st_atime': 0.0, 'st_ctime': 0.0, 'st_ino': 2321472178, 'st_gid': 0, 'st_mode': 16384, 'st_mtime': 0.0, 'st_nlink': 1, 'st_size': 0, 'st_uid': 0} [fuse]
2024-01-11T14:26:34.380398Z [info     ] -> releasedir / (0,) [fuse]
2024-01-11T14:26:34.380398Z [info     ] <- releasedir 0 [fuse]
2024-01-11T14:26:34.380398Z [info     ] -> init / (<fuse3.c_fuse.LP_fuse_conn_info object at 0x000001B52F23BEC0>, <fuse3.c_fuse.LP_fuse_config object at 0x000001B52F23BF40>) [fuse]
2024-01-11T14:26:34.382655Z [info     ] <- init None [fuse]
2024-01-11T14:26:34.382655Z [info     ] -> getattr / (None,) [fuse]
2024-01-11T14:26:34.382655Z [info     ] <- getattr {'st_atime': 0.0, 'st_ctime': 0.0, 'st_ino': 2321472178, 'st_gid': 0, 'st_mode': 16384, 'st_mtime': 0.0, 'st_nlink': 1, 'st_size': 0, 'st_uid': 0} [fuse]
2024-01-11T14:26:34.383922Z [info     ] -> getattr / (None,) [fuse]
2024-01-11T14:26:34.383922Z [info     ] <- getattr {'st_atime': 0.0, 'st_ctime': 0.0, 'st_ino': 2321472178, 'st_gid': 0, 'st_mode': 16384, 'st_mtime': 0.0, 'st_nlink': 1, 'st_size': 0, 'st_uid': 0} [fuse]
2024-01-11T14:26:34.384962Z [info     ] -> releasedir / (0,) [fuse]
2024-01-11T14:26:34.384962Z [info     ] <- releasedir 0 [fuse]
2024-01-11T14:26:34.384962Z [info     ] -> init / (<fuse3.c_fuse.LP_fuse_conn_info object at 0x000001B52F23BEC0>, <fuse3.c_fuse.LP_fuse_config object at 0x000001B52F23BF40>) [fuse]
2024-01-11T14:26:34.385998Z [info     ] <- init None [fuse]
2024-01-11T14:26:34.385998Z [info     ] -> getattr / (None,) [fuse]
2024-01-11T14:26:34.385998Z [info     ] <- getattr {'st_atime': 0.0, 'st_ctime': 0.0, 'st_ino': 2321472178, 'st_gid': 0, 'st_mode': 16384, 'st_mtime': 0.0, 'st_nlink': 1, 'st_size': 0, 'st_uid': 0} [fuse]
2024-01-11T14:26:34.385998Z [info     ] -> getattr / (None,) [fuse]
2024-01-11T14:26:34.385998Z [info     ] <- getattr {'st_atime': 0.0, 'st_ctime': 0.0, 'st_ino': 2321472178, 'st_gid': 0, 'st_mode': 16384, 'st_mtime': 0.0, 'st_nlink': 1, 'st_size': 0, 'st_uid': 0} [fuse]
2024-01-11T14:26:34.387019Z [info     ] -> releasedir / (0,) [fuse]
2024-01-11T14:26:34.387019Z [info     ] <- releasedir 0 [fuse]
2024-01-11T14:26:34.387019Z [info     ] -> fsyncdir / (284686256, 3570026294458634476) [fuse]
2024-01-11T14:26:34.387019Z [info     ] <- fsyncdir 0 [fuse]
2024-01-11T14:26:34.388096Z [info     ] -> init / (<fuse3.c_fuse.LP_fuse_conn_info object at 0x000001B52F23BEC0>, <fuse3.c_fuse.LP_fuse_config object at 0x000001B52F23BF40>) [fuse]
2024-01-11T14:26:34.388096Z [info     ] <- init None [fuse]
2024-01-11T14:26:34.388096Z [info     ] -> getattr / (None,) [fuse]
2024-01-11T14:26:34.388096Z [info     ] <- getattr {'st_atime': 0.0, 'st_ctime': 0.0, 'st_ino': 2321472178, 'st_gid': 0, 'st_mode': 16384, 'st_mtime': 0.0, 'st_nlink': 1, 'st_size': 0, 'st_uid': 0} [fuse]
2024-01-11T14:26:34.389193Z [info     ] -> getattr / (None,) [fuse]
2024-01-11T14:26:34.389193Z [info     ] <- getattr {'st_atime': 0.0, 'st_ctime': 0.0, 'st_ino': 2321472178, 'st_gid': 0, 'st_mode': 16384, 'st_mtime': 0.0, 'st_nlink': 1, 'st_size': 0, 'st_uid': 0} [fuse]
2024-01-11T14:26:34.389740Z [info     ] -> releasedir / (0,) [fuse]
2024-01-11T14:26:34.389740Z [info     ] <- releasedir 0 [fuse]
2024-01-11T14:26:34.389740Z [info     ] -> fsyncdir / (286716880, 3570026294458634476) [fuse]
2024-01-11T14:26:34.389740Z [info     ] <- fsyncdir 0 [fuse]
2024-01-11T14:26:34.390775Z [info     ] -> init / (<fuse3.c_fuse.LP_fuse_conn_info object at 0x000001B52F23BEC0>, <fuse3.c_fuse.LP_fuse_config object at 0x000001B52F23BF40>) [fuse]
2024-01-11T14:26:34.390775Z [info     ] <- init None [fuse]

It sems that readdir is never called, however you can request info from dirs… which aren’t there.

Note: You need to specify a drive-letter as a mountpoint on windows.

DissectBot avatar Mar 18 '24 14:03 DissectBot