NetBSD-Bugs archive

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

Re: bin/49510: gpt(8) fails w/o drvctl and breaks sysinst



On Dec 29,  6:52pm, Robert Elz wrote:
}
}     Date:        Mon, 29 Dec 2014 02:43:43 -0800
}     From:        John Nemeth <jnemeth%cue.bc.ca@localhost>
}     Message-ID:  <201412291043.sBTAhhOA007511%server.CornerstoneService.ca@localhost>
} 
}   | Finding the last block of the disk would leave
}   | you in the same place as gpt(8).
} 
} If
} 	lseek(disk_fd, (off_t)-BLOCKSZE, SEEK_END);
} 
} doesn't work to do that, then it (the drivers etc) should be fixed
} so that it does.

     That leaves you with the issue of how to find the BLOCKSIZE.
Which is currently done using the same methods used to find the
size of the disk (i.e. both pieces of information come from the
same place).

}-- End of excerpt from Robert Elz


Home | Main Index | Thread Index | Old Index