diff options
Diffstat (limited to 'sys/geom')
-rw-r--r-- | sys/geom/bde/g_bde.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/sys/geom/bde/g_bde.c b/sys/geom/bde/g_bde.c index e882bb8..93d7733 100644 --- a/sys/geom/bde/g_bde.c +++ b/sys/geom/bde/g_bde.c @@ -204,6 +204,23 @@ g_bde_create_geom(struct gctl_req *req, struct g_class *mp, struct g_provider *p if (gp->softc != NULL) g_free(gp->softc); g_destroy_geom(gp); + switch (error) { + case ENOENT: + gctl_error(req, "Lock was destroyed"); + break; + case ESRCH: + gctl_error(req, "Lock was nuked"); + break; + case EINVAL: + gctl_error(req, "Could not open lock"); + break; + case ENOTDIR: + gctl_error(req, "Lock not found"); + break; + default: + gctl_error(req, "Could not open lock (%d)", error); + break; + } return; } |