128,8 → 128,7 |
|
/* Don't munge open partitions. */ |
for (i = 0; i < dl->d_npartitions; i++) { |
if (!useable[i]) |
continue; |
if(!useable[i]) continue; |
|
ppp = &dl->d_partitions[i]; |
o = (off_t)ppp->p_offset * dl->d_secsize; |
144,8 → 143,7 |
|
/* Look good, go for it... */ |
for (u = 0; u < gsp->nslice; u++) { |
if (!useable[u]) |
continue; |
if(!useable[u]) continue; |
|
ppp = &dl->d_partitions[u]; |
o = (off_t)ppp->p_offset * dl->d_secsize; |
152,7 → 150,9 |
if (o == 0) |
o = rawoffset; |
g_slice_config(gp, u, G_SLICE_CONFIG_SET, |
o - rawoffset, (off_t)ppp->p_size * dl->d_secsize, dl->d_secsize, |
o - rawoffset, |
(off_t)ppp->p_size * dl->d_secsize, |
dl->d_secsize, |
"%s%c", gp->name, 'a' + u); |
} |
|
451,7 → 451,7 |
.taste = g_nbsd_taste, |
.ctlreq = g_nbsd_config, |
.dumpconf = g_nbsd_dumpconf, |
.ioctl = g_nbsd_ioctl |
.ioctl = g_nbsd_ioctl, |
}; |
|
DECLARE_GEOM_CLASS(g_nbsd_class, g_nbsd); |