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
This commit is contained in:
Pawel Jakub Dawidek 2015-07-10 19:27:19 +00:00
parent 4af7aed7c6
commit 4273d41299
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=285363

View File

@ -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;
/*