Bug 221855 - sys/geom: Let g_access() log the actual error number
Summary: sys/geom: Let g_access() log the actual error number
Status: In Progress
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: Konstantin Belousov
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2017-08-27 11:02 UTC by Fabian Keil
Modified: 2017-09-03 09:06 UTC (History)
1 user (show)

See Also:
fk: mfc-stable11?


Attachments
sys/geom: Let g_access() log the actual error number (1.02 KB, patch)
2017-08-27 11:02 UTC, Fabian Keil
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fabian Keil 2017-08-27 11:02:39 UTC
Created attachment 185811 [details]
sys/geom: Let g_access() log the actual error number

The attached patch lets 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
Comment 1 commit-hook freebsd_committer 2017-08-27 12:24:35 UTC
A commit references this bug:

Author: kib
Date: Sun Aug 27 12:24:25 UTC 2017
New revision: 322948
URL: https://svnweb.freebsd.org/changeset/base/322948

Log:
  Let g_access() log the actual error number.

  Submitted by:	 Fabian Keil <fk@fabiankeil.de>
  PR:	221855
  MFC after:	1 week

Changes:
  head/sys/geom/geom_subr.c
Comment 2 commit-hook freebsd_committer 2017-09-03 09:06:52 UTC
A commit references this bug:

Author: kib
Date: Sun Sep  3 09:05:48 UTC 2017
New revision: 323140
URL: https://svnweb.freebsd.org/changeset/base/323140

Log:
  MFC r322948:
  Let g_access() log the actual error number.

  PR:	221855

Changes:
_U  stable/11/
  stable/11/sys/geom/geom_subr.c