Skip to content

Windows cannonical paths error #195

@brian6932

Description

@brian6932

I can reproduce this error with case sensitive, insensitive, and casefolded normalized mounts.
https://docs.python.org/3/library/os.path.html#os.path.realpath

❯ securefs version
securefs v1.0.0
Crypto++ 8.9
WinFsp 2.1

Hardware features available:
SSE2: true
SSE3: true
SSE4.1: true
SSE4.2: true
AVX: true
AVX2: true
AES-NI: true
CLMUL: true
SHA: true

❯ securefs c --uninorm insensitive --case insensitive .
Enter password:

Again:

❯ securefs m $pwd F:
Enter password:

[Info] [000000000000A120] [2025-03-24 17:30:02.966051100 UTC] [auto __cdecl securefs::FuseHighLevelOpsBase::build_ops(const FuseHighLevelOpsBase *, bool)::(anonymous class)::operator()(fuse_conn_info *) const:354]    Fuse operations initialized
The service securefs has been started.
The service securefs has been stopped.
[Info] [000000000000A120] [2025-03-24 17:31:41.020590200 UTC] [auto __cdecl securefs::FuseHighLevelOpsBase::build_ops(const FuseHighLevelOpsBase *, bool)::(anonymous class)::operator()(void *) const:358]    Fuse operations destroyed
python
Python 3.13.2 (tags/v3.13.2:4f8bb39, Feb  4 2025, 15:23:48) [MSC v.1942 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> open('foo', 'w').close()
>>> import os
>>> os.path.realpath('foo')
Traceback (most recent call last):
  File "<frozen ntpath>", line 726, in realpath
OSError: [WinError 1005] The volume does not contain a recognized file system.
Please make sure that all required file system drivers are loaded and that the volume is not corrupted: 'F:\\foo'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<python-input-2>", line 1, in <module>
    os.path.realpath('foo')
    ~~~~~~~~~~~~~~~~^^^^^^^
  File "<frozen ntpath>", line 740, in realpath
  File "<frozen ntpath>", line 673, in _getfinalpathname_nonstrict
OSError: [WinError 1005] The volume does not contain a recognized file system.
Please make sure that all required file system drivers are loaded and that the volume is not corrupted: 'F:\\foo'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions