Add ENOMOUNT.
This commit is contained in:
parent
b2aae6094f
commit
44d4807fc4
|
@ -187,7 +187,7 @@ int Vnode::unmount(ioctx_t* ctx, const char* filename, int flags)
|
||||||
|
|
||||||
size_t mp_index;
|
size_t mp_index;
|
||||||
if ( !LookupMountUnlocked(normal_inode, &mp_index) )
|
if ( !LookupMountUnlocked(normal_inode, &mp_index) )
|
||||||
return errno = EINVAL, -1;
|
return errno = ENOMOUNT, -1;
|
||||||
mountpoint_t* mp = mtable->mounts + mp_index;
|
mountpoint_t* mp = mtable->mounts + mp_index;
|
||||||
|
|
||||||
Ref<Inode> mp_inode = mp->inode;
|
Ref<Inode> mp_inode = mp->inode;
|
||||||
|
|
|
@ -118,6 +118,7 @@ extern "C" {
|
||||||
#define EOWNERDEAD 96
|
#define EOWNERDEAD 96
|
||||||
#define EPROTO 97
|
#define EPROTO 97
|
||||||
#define ETXTBSY 98
|
#define ETXTBSY 98
|
||||||
|
#define ENOMOUNT 99
|
||||||
|
|
||||||
#define EOPNOTSUPP ENOTSUP
|
#define EOPNOTSUPP ENOTSUP
|
||||||
|
|
||||||
|
|
|
@ -117,6 +117,7 @@ extern "C" const char* sortix_strerror(int errnum)
|
||||||
case EOWNERDEAD: return "Previous owner died";
|
case EOWNERDEAD: return "Previous owner died";
|
||||||
case EPROTO: return "Protocol error";
|
case EPROTO: return "Protocol error";
|
||||||
case ETXTBSY: return "Text file busy";
|
case ETXTBSY: return "Text file busy";
|
||||||
|
case ENOMOUNT: return "No such mountpoint";
|
||||||
default: return "Unknown error condition";
|
default: return "Unknown error condition";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue