mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Make g_access() KASSERT() more useful.
Sponsored by: EMC / Isilon Storage Division Obtained from: Isilon OneFS MFC after: 2 weeks
This commit is contained in:
parent
d092e11c6a
commit
87bc328d63
1 changed files with 3 additions and 2 deletions
|
|
@ -912,8 +912,9 @@ g_access(struct g_consumer *cp, int dcr, int dcw, int dce)
|
|||
|
||||
error = pp->geom->access(pp, dcr, dcw, dce);
|
||||
KASSERT(dcr > 0 || dcw > 0 || dce > 0 || error == 0,
|
||||
("Geom provider %s::%s failed closing ->access()",
|
||||
pp->geom->class->name, pp->name));
|
||||
("Geom provider %s::%s dcr=%d dcw=%d dce=%d error=%d failed "
|
||||
"closing ->access()", pp->geom->class->name, pp->name, dcr, dcw,
|
||||
dce, error));
|
||||
if (!error) {
|
||||
/*
|
||||
* If we open first write, spoil any partner consumers.
|
||||
|
|
|
|||
Loading…
Reference in a new issue