FreeBSD Bugzilla – Attachment 185811 Details for
Bug 221855
sys/geom: Let g_access() log the actual error number
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
sys/geom: Let g_access() log the actual error number
sys-geom-Let-g_access-log-the-actual-error-number.diff (text/plain), 1.02 KB, created by
Fabian Keil
on 2017-08-27 11:02:39 UTC
(
hide
)
Description:
sys/geom: Let g_access() log the actual error number
Filename:
MIME Type:
Creator:
Fabian Keil
Created:
2017-08-27 11:02:39 UTC
Size:
1.02 KB
patch
obsolete
>From 64c65965a60d6f70247e7fd63114ac1afa126842 Mon Sep 17 00:00:00 2001 >From: Fabian Keil <fk@fabiankeil.de> >Date: Sun, 26 Mar 2017 19:21:38 +0200 >Subject: [PATCH] sys/geom: Let g_access() log the actual error number > >... before exiting prematurely because of it. > >"g_access(918): provider da0 has error" is not particularly helpful. > >Obtained from: ElectroBSD >--- > sys/geom/geom_subr.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/sys/geom/geom_subr.c b/sys/geom/geom_subr.c >index 7d19a6fbee15..a0253013d435 100644 >--- a/sys/geom/geom_subr.c >+++ b/sys/geom/geom_subr.c >@@ -914,8 +914,8 @@ g_access(struct g_consumer *cp, int dcr, int dcw, int dce) > return (EPERM); > /* If we try to open more but provider is error'ed: fail */ > else if ((dcr > 0 || dcw > 0 || dce > 0) && pp->error != 0) { >- printf("%s(%d): provider %s has error\n", >- __func__, __LINE__, pp->name); >+ printf("%s(%d): provider %s has error %d set\n", >+ __func__, __LINE__, pp->name, pp->error); > return (pp->error); > } > >-- >2.14.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 221855
: 185811