Skip to content
Commit 0444a3b7 authored by Aleksandar Markovic's avatar Aleksandar Markovic Committed by Leon Alrae
Browse files

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: default avatarAleksandar Markovic <aleksandar.markovic@imgtec.com>
Reviewed-by: default avatarLaurent Vivier <laurent@vivier.eu>
Acked-by: default avatarRiku Voipio <riku.voipio@linaro.org>
Signed-off-by: default avatarLeon Alrae <leon.alrae@imgtec.com>
parent d7779acb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment