RE: Re: update for shared path checker context

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday, November 20, 2006 7:03 PM, Christophe Varoqui wrote:
> To: goggin, edward
> Cc: dm-devel@xxxxxxxxxx
> Subject:  Re: update for shared path checker context
> 
> Le vendredi 17 novembre 2006 à 11:21 -0500, Edward Goggin a écrit :
> > Christophe,
> > 
> > I made the following changes.
> > 
> > modified the path checker interface so that each path checker
> > type could specify the size of their shared path context area
> > 
> > discovery.c:get_state() now returns without setting path state
> > if the path's mpp pointer is not set (IFF PP_DAEMON) else it
> > becomes tricky to update the path checker's ptr to the shared
> > context area after the path checker has been already initialized.
> > 
> > structs.c:free_multipath() now frees shared context area if it was
> > allocated.
> > 
> Wouldn't a void** mpcontext in struct multipath instead of a 
> void* keep
> us from resorting to those ->size_scxt fonctions ?

Yes, much better idea!

> 
> - mpcontext allocation is deported insode the checker, so only the
> checker needing the facility have to care.

OK.

> - mpcontext freeing in free_multipath is ok, I guess

Given your approach, should free mpcontext in the path checker
free functions ...

> 
> Something like the attached patch, for example.
> (extreme hack to readsector0 to showcase the facility)

I'll try this out with the clariion inactive snapshot stuff
and let you know.

> 
> Regards,
> cvaroqui
> 
> 

--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel

[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux