mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-04 17:04:13 +08:00
mdbx: add 9P
(WSL2 DrvFs) to blacklist of remote filesystems.
Related to https://github.com/erthink/libmdbx/issues/97
This commit is contained in:
parent
bcc546bdfa
commit
b0830db25a
@ -1334,7 +1334,8 @@ static int mdbx_check_fs_local(mdbx_filehandle_t handle, int flags) {
|
|||||||
!(flags & MDBX_EXCLUSIVE))
|
!(flags & MDBX_EXCLUSIVE))
|
||||||
return MDBX_EREMOTE;
|
return MDBX_EREMOTE;
|
||||||
if (strcasecmp("ftp", name) == 0 || strcasecmp("http", name) == 0 ||
|
if (strcasecmp("ftp", name) == 0 || strcasecmp("http", name) == 0 ||
|
||||||
strcasecmp("sshfs", name) == 0)
|
strcasecmp("sshfs", name) == 0 ||
|
||||||
|
strcasecmp("9P" /* WSL2 */, name) == 0)
|
||||||
return MDBX_EREMOTE;
|
return MDBX_EREMOTE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user