mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-09-13 11:15:08 +00:00
Treat ENOTSUP like ENODATA, after failed fgetfilecon.
* src/storage_backend.c (virStorageBackendUpdateVolInfoFD): Treat a failed fgetfilecon with errno == ENOTSUP the same as for ENODATA.
This commit is contained in:
parent
96c795328d
commit
a34bcb7829
@ -1,3 +1,9 @@
|
|||||||
|
Mon Mar 17 17:55:56 CET 2008 Jim Meyering <meyering@redhat.com>
|
||||||
|
|
||||||
|
Treat ENOTSUP like ENODATA, after failed fgetfilecon.
|
||||||
|
* src/storage_backend.c (virStorageBackendUpdateVolInfoFD): Treat a
|
||||||
|
failed fgetfilecon with errno == ENOTSUP the same as for ENODATA.
|
||||||
|
|
||||||
Mon Mar 17 17:40:12 CET 2008 Daniel Veillard <veillard@redhat.com>
|
Mon Mar 17 17:40:12 CET 2008 Daniel Veillard <veillard@redhat.com>
|
||||||
|
|
||||||
* libvirt.c: fixed DefinedDomains function comments c.f. 437216
|
* libvirt.c: fixed DefinedDomains function comments c.f. 437216
|
||||||
|
@ -240,7 +240,7 @@ virStorageBackendUpdateVolInfoFD(virConnectPtr conn,
|
|||||||
|
|
||||||
#if HAVE_SELINUX
|
#if HAVE_SELINUX
|
||||||
if (fgetfilecon(fd, &filecon) == -1) {
|
if (fgetfilecon(fd, &filecon) == -1) {
|
||||||
if (errno != ENODATA) {
|
if (errno != ENODATA && errno != ENOTSUP) {
|
||||||
virStorageReportError(conn, VIR_ERR_INTERNAL_ERROR,
|
virStorageReportError(conn, VIR_ERR_INTERNAL_ERROR,
|
||||||
_("cannot get file context of %s: %s"),
|
_("cannot get file context of %s: %s"),
|
||||||
vol->target.path, strerror(errno));
|
vol->target.path, strerror(errno));
|
||||||
|
Loading…
Reference in New Issue
Block a user