mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 14:53:54 -06:00
linux-user: Add missing TARGET_EDQUOT error code for Mips
EDQUOT is defined for Mips platform in Linux kernel in such a way that it has different value than on most other platforms. However, correspondent TARGET_EDQUOT for Mips is missing in Qemu code. Moreover, TARGET_EDQUOT is missing from the table for conversion of error codes from host to target. This patch fixes these problems. Without this patch, syscalls add_key(), keyctl(), link(), mkdir(), mknod(), open(), rename(), request_key(), setxattr(), symlink(), and write() will not be able to return the right error code in some scenarios on Mips platform. (Some of these syscalls are not yet supported in Qemu, but once they are supported, they will need correct EDQUOT handling.) Signed-off-by: Aleksandar Markovic <aleksandar.markovic@imgtec.com> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Acked-by: Riku Voipio <riku.voipio@linaro.org> Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
This commit is contained in:
parent
d7779acb30
commit
0444a3b793
3 changed files with 5 additions and 0 deletions
|
@ -757,6 +757,7 @@ static uint16_t host_to_target_errno_table[ERRNO_TABLE_SIZE] = {
|
|||
[ENAVAIL] = TARGET_ENAVAIL,
|
||||
[EISNAM] = TARGET_EISNAM,
|
||||
[EREMOTEIO] = TARGET_EREMOTEIO,
|
||||
[EDQUOT] = TARGET_EDQUOT,
|
||||
[ESHUTDOWN] = TARGET_ESHUTDOWN,
|
||||
[ETOOMANYREFS] = TARGET_ETOOMANYREFS,
|
||||
[ETIMEDOUT] = TARGET_ETIMEDOUT,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue