31 May 2012 13:08
kern/46494 (cgd on 4K sector disk)
Jan Danielsson <jan.m.danielsson <at> gmail.com>
2012-05-31 11:08:44 GMT
2012-05-31 11:08:44 GMT
Hello,
I tried reusing the secsize from getdisksize() in place of DEV_BSIZE.
After correcting for a resulting divide-by-zero, I get further, but only
by a fraction.
The disk in question (model: WD7500AARX; "750GB") has a GPT with one
partition which spans as much as possible of the disk:
# gpt show sd0
start size index contents
0 1 PMBR
1 1 Pri GPT header
2 4 Pri GPT table
6 183143635 1 GPT part - NetBSD Cryptographic Disk
183143641 4 Sec GPT table
183143645 1 Sec GPT header
# dkctl sd0 listwedges
/dev/rsd0d: 1 wedge:
dk0: My Test, 183143635 blocks at 6, type: cgd
cgd3 is configured on top of /dev/dk0.
At this point I've been trying to take all kinds of random actions on
cgd3. For instance, creating a disklabel, creating a GPT, and using dd.
What I can do now, with the attached patch (which I couldn't before),
is to create (as in 'write') a disklabel in cgd3.
(Continue reading)
RSS Feed