FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Device-mapper Development

LinkBack Thread Tools
Old 12-04-2007, 03:53 PM
Ondrej Palkovsky
Default dm-raid1 - error handling?

I have been browsing through source code of dm-raid1.c (kernel
and this seems to me weird.
Function write_callback in dm-raid1.c - what is it supposed to do?
First, the if (error) block seems
like just one big NOP, second it looks like any error slips undetected.
Am I correct or is there some logic I am not aware of?


.. declarations etc...
if (error) {
* only error the io if all mirrors failed.
* FIXME: bogus
uptodate = 0;
for (i = 0; i < ms->nr_mirrors; i++)
if (!test_bit(i, &error)) {
uptodate = 1;
bio_endio(bio, bio->bi_size, 0);
} - end of function

dm-devel mailing list

Thread Tools

All times are GMT. The time now is 09:20 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org