]> xenbits.xensource.com Git - people/royger/xen.git/commit
xenstore: set correct error code when violating quota
authorJuergen Gross <jgross@suse.com>
Mon, 20 Mar 2017 08:00:20 +0000 (09:00 +0100)
committerWei Liu <wei.liu2@citrix.com>
Wed, 22 Mar 2017 11:23:10 +0000 (11:23 +0000)
commitec4abec2098ca59b2cb83b45843da21f65da79d7
tree03ce53bcc61498de65a99edcc5f8426e53135f5e
parent5047677108c891f25f362487933699ea6eb5c336
xenstore: set correct error code when violating quota

When the number of permitted xenstore entries for a domain is being
exceeded the operation trying to create a new entry is denied.
Unfortunately errno isn't being set in this case so the error code
returned to the client is undefined.

Set errno to ENOSPC in this case.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/xenstore/xenstored_core.c