tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
re: 4K sector size (again) & cgd
> Whatever I try to do at this point, writing of the disklabel fails
> (which I sort of expect, considering the discrepancies in the disklabel
> outputs).
>
> cgd.c has:
>
> ------------------------------
> /*
> * XXX here we should probe the underlying device. If we
> * are accessing a partition of type RAW_PART, then
> * we should populate our initial geometry with the
> * geometry that we discover from the device.
> */
> pdg = &cs->sc_dksc.sc_geom;
> pdg->pdg_secsize = DEV_BSIZE;
> pdg->pdg_ntracks = 1;
> pdg->pdg_nsectors = 1024 * (1024 / pdg->pdg_secsize);
> pdg->pdg_ncylinders = cs->sc_dksc.sc_size / pdg->pdg_nsectors;
> ------------------------------
>
> .. which looks suspiciously ... suspicious. I'm assuming that fixing
> that will increase the chances of the cgd device working properly on
> this disk.
>
> Just so I don't waste a bunch of time poking in the wrong places; am
> I looking at - what is likely - the problem?
this seems pretty likely.
does everything work fine without using cgd? if so, then that's
more evidence for cgd being at fault.
.mrg.
Home |
Main Index |
Thread Index |
Old Index