mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-17 22:58:26 +00:00
committed by
Christian Helmuth
parent
c8e4d2715b
commit
a1b1525ec1
@ -42,8 +42,16 @@ class File_system::Directory : public Node
|
||||
if (create) {
|
||||
mode_t ugo = S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH;
|
||||
ret = mkdir(path, ugo);
|
||||
if (ret == -1)
|
||||
throw No_space();
|
||||
if (ret == -1) {
|
||||
switch (errno) {
|
||||
case ENAMETOOLONG: throw Name_too_long();
|
||||
case EACCES: throw Permission_denied();
|
||||
case ENOENT: throw Lookup_failed();
|
||||
case EEXIST: throw Node_already_exists();
|
||||
case ENOSPC:
|
||||
default: throw No_space();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
struct stat s;
|
||||
|
Reference in New Issue
Block a user