Access counts.
Pawel Jakub Dawidek
pjd at FreeBSD.org
Fri Sep 17 02:29:25 PDT 2004
On Fri, Sep 17, 2004 at 11:01:49AM +0200, Poul-Henning Kamp wrote:
+> >Now, let's go back to George's problem. Gmirror detects da0s1 as a part
+> >of the mirror, it creates consumer, etc. Geom gives da0s1a for tasting.
+> >Gmirror opens it for reading, but da0s1 is opened r1w0e1.
+> >In the same time, gmirror's working thread wants to update metadata,
+> >but it cannot do this, because it cannot open da0s1 for writing,
+> >because it has exclusive bit already. In such situation gmirror
+> >disconnects this component.
+>
+> Gmirror does something wrong.
+>
+> You can upgrade your open from r1w0e1 to r1w1e1 if you want to.
You misunderstud me. We have something like this here:
taste thread gmirror thread
------------ --------------
g_access(da0s1a, 1, 0, 0)
GEOM:g_access(da0s1, 1, 0, 1)
g_access(da0s1, 0, 1, 1) -> EPERM
This is not the same consumer in taste thread and gmirror thread.
--
Pawel Jakub Dawidek http://www.FreeBSD.org
pjd at FreeBSD.org http://garage.freebsd.pl
FreeBSD committer Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-geom/attachments/20040917/ca8deabe/attachment.bin
More information about the freebsd-geom
mailing list