From 4552200b36b92f6795b0c1808249531d09e61c06 Mon Sep 17 00:00:00 2001 From: Arthur-Aillet Date: Fri, 6 Jun 2025 18:16:53 +0900 Subject: [PATCH] example: Edited 'simple.rs' as mknod incomplete implementation error didn't comply with linux standard In the man 2 for mknod: EPERM [...] also returned if the filesystem containing pathname does not support the type of node requested. --- examples/simple.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/simple.rs b/examples/simple.rs index 0c092855..6f7c0f3a 100644 --- a/examples/simple.rs +++ b/examples/simple.rs @@ -757,7 +757,7 @@ impl Filesystem for SimpleFS { { // TODO warn!("mknod() implementation is incomplete. Only supports regular files, symlinks, and directories. Got {:o}", mode); - reply.error(libc::ENOSYS); + reply.error(libc::EPERM); return; }