linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Curious code in autostart_array
@ 2006-06-23  4:05 Pete Zaitcev
  2006-06-23  4:11 ` H. Peter Anvin
  2006-06-23  4:46 ` Neil Brown
  0 siblings, 2 replies; 4+ messages in thread
From: Pete Zaitcev @ 2006-06-23  4:05 UTC (permalink / raw)
  To: linux-raid; +Cc: mingo, dledford, zaitcev

Hi, guys:

My copy of 2.6.17-rc5 has the following code in autostart_array():
		mdp_disk_t *desc = sb->disks + i;
		dev_t dev = MKDEV(desc->major, desc->minor);

		if (!dev)
			continue;
		if (dev == startdev)
			continue;
		if (MAJOR(dev) != desc->major || MINOR(dev) != desc->minor)
			continue;

Under what conditions do you think the last if() statement can fire?
What is its purpose? This looks like an attempt to detect bit clipping.
But what exactly?

Cheers,
-- Pete

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-06-23  5:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-23  4:05 Curious code in autostart_array Pete Zaitcev
2006-06-23  4:11 ` H. Peter Anvin
2006-06-23  4:46 ` Neil Brown
2006-06-23  5:25   ` Pete Zaitcev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).