diff options
author | pjd <pjd@FreeBSD.org> | 2015-07-10 19:27:19 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2015-07-10 19:27:19 +0000 |
commit | 1f882f57d36621ba7af20f583018f019a47f9733 (patch) | |
tree | 4a4b9044fdfc203583f8b46b78a2679e7ed92750 /sys/geom/eli | |
parent | c112159436c2daa548f46c23dc5c17e99fc99814 (diff) | |
download | FreeBSD-src-1f882f57d36621ba7af20f583018f019a47f9733.zip FreeBSD-src-1f882f57d36621ba7af20f583018f019a47f9733.tar.gz |
Spoil even can happen for some time now even on providers opened exclusively
(on the media change event). Update GELI to handle that situation.
PR: 201185
Submitted by: Matthew D. Fuller
Diffstat (limited to 'sys/geom/eli')
-rw-r--r-- | sys/geom/eli/g_eli.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/geom/eli/g_eli.c b/sys/geom/eli/g_eli.c index 6eea018..a094720 100644 --- a/sys/geom/eli/g_eli.c +++ b/sys/geom/eli/g_eli.c @@ -730,10 +730,10 @@ g_eli_create(struct gctl_req *req, struct g_class *mp, struct g_provider *bpp, sc = malloc(sizeof(*sc), M_ELI, M_WAITOK | M_ZERO); gp->start = g_eli_start; /* - * Spoiling cannot happen actually, because we keep provider open for - * writing all the time or provider is read-only. + * Spoiling can happen even though we have the provider open + * exclusively, e.g. through media change events. */ - gp->spoiled = g_eli_orphan_spoil_assert; + gp->spoiled = g_eli_orphan; gp->orphan = g_eli_orphan; gp->dumpconf = g_eli_dumpconf; /* |