+ dv = devid2kname(makedev(disks[d*2].major, disks[d*2].minor)); + dv_rep = devid2kname(makedev(disks[d*2+1].major, disks[d*2+1].minor));
devid2kname() returns static memory. If both drive and replacement are available then dv value will be overwritten. Not sure if it is possible. Mariusz