Check how md, hd, sd driver handle the BLKGETSIZE or BLKGETSIZE64 ioctl call. You will get that number. :) ming On Wed, 2004-01-21 at 12:59, Bin Ren wrote: > Hi, > > I'm reading the source codes of md and raid1. Could anyone tell me > where to find out the total number of sectors of a particular disk in a > raid set? > > Thanks, > -- Bin > > - > To unsubscribe from this list: send the line "unsubscribe linux-raid" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html - To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html