Re: Improving dm-mirror as a final year project

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

 





On Wed, Jan 26, 2011 at 3:04 PM, Malahal Naineni <malahal@xxxxxxxxxx> wrote:
nishant mungse [nishantmungse@xxxxxxxxx] wrote:
>
> Â Âhello all,
> Â ÂThere is one doubt regarding the dm-raid1. As far as i know, in dm-raid1
> Â Âthe data is written parallellyï on all the mirrors of mirrorset and if any
> Â Âof the mirror fails to write the data then dm-mirror adds this mirror to
> Â Âfail list by increasing the error count in "fail mirror" function in
> Â Âdm-raid1.
> Â ÂActually my doubt is where this error count is decremented? i.e after
> Â Âkcpyd or before and where exactly this error count is decremented?

There is no actual 'fail list' of mirror legs. The error_count is never
decremented. The 'error_count' is only used to tell if the mirror leg
has encountered errors. The only way to clear that counter is
re-loading the table!

See the comment:

   Â/*
    * error_count is used for nothing more than a
    * simple way to tell if a device has encountered
    * errors.
    */
   Âatomic_inc(&m->error_count);

Hope that helps,
Malahal.

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

Hi Malahal

Thanks for reply. I am not able to understand what this "INIT_WORK(&ms->kmirrord_work, do_mirror)" function does. It is written in mirror_ctr of dm-raid1. What i think is whenever a bio comes dm_mirror will be called if that is case then why this is written in mirror_ctr. Please answer this.

Regards,
Nishant.



--
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