mdbx: add 9P (WSL2 DrvFs) to blacklist of remote filesystems.

Related to https://github.com/erthink/libmdbx/issues/97
This commit is contained in:
Leonid Yuriev 2021-05-26 19:57:32 +03:00
parent bcc546bdfa
commit b0830db25a

View File

@ -1334,7 +1334,8 @@ static int mdbx_check_fs_local(mdbx_filehandle_t handle, int flags) {
!(flags & MDBX_EXCLUSIVE))
return MDBX_EREMOTE;
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;
}