qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [COMMIT 6f932f9] Return EOPNOTSUPP instead of ENOSYS for


From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT 6f932f9] Return EOPNOTSUPP instead of ENOSYS for *xattr*syscalls
Date: Tue, 16 Jun 2009 19:36:00 -0000

From: Arnaud Patard <address@hidden>

In current code, we're sending ENOSYS to target when a syscall for the
xattrs is done. This makes applications like ls complain loudly about
that and breaks scripts parsing the output. Moreover, iirc, implemented
features of filesystems are are sending EOPNOTSUPP (I've not checked so
I may be a little bit wrong on that...).
So, I'm proposing to return -EOPNOTSUPP and make ls happy

Signed-off-by: Arnaud Patard <address@hidden>
Signed-off-by: Riku Voipio <address@hidden>

diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 8a95349..d1febff 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -6579,7 +6579,8 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
     case TARGET_NR_removexattr:
     case TARGET_NR_lremovexattr:
     case TARGET_NR_fremovexattr:
-        goto unimplemented_nowarn;
+        ret = -TARGET_EOPNOTSUPP;
+        break;
 #endif
 #ifdef TARGET_NR_set_thread_area
     case TARGET_NR_set_thread_area:




reply via email to

[Prev in Thread] Current Thread [Next in Thread]