vfs: Allow 'filesystems' that are partition mappers to not return a node

This commit is contained in:
K. Lange 2021-08-31 16:56:18 +09:00
parent d7b0faa9f9
commit afdf9671a6

View File

@ -728,6 +728,9 @@ int vfs_mount_type(const char * type, const char * arg, const char * mountpoint)
fs_node_t * n = t(arg, mountpoint);
/* Quick hack to let partition mappers not return a node to mount at 'mountpoint'... */
if ((uintptr_t)n == (uintptr_t)1) return 0;
if (!n) return -EINVAL;
tree_node_t * node = vfs_mount(mountpoint, n);