Home | History | Annotate | Download | only in bioctl

Lines Matching defs:bv

63 	struct bioc_vol *bv;
235 bio_show_volumes(struct biotmp *bt, struct bioc_vol *bv)
243 memset(bv, 0, sizeof(*bv));
244 bv->bv_cookie = bl.bl_cookie;
245 bv->bv_volid = bt->volid;
246 bv->bv_percent = -1;
247 bv->bv_seconds = 0;
249 if (ioctl(bt->fd, BIOCVOL, bv) == -1)
254 if (bv->bv_percent != -1)
256 " %3.2f%% done", bv->bv_percent / 10.0);
257 if (bv->bv_seconds)
259 " %u seconds", bv->bv_seconds);
261 switch (bv->bv_status) {
292 snprintf(bt->volname, sizeof(bt->volname), "%u", bv->bv_volid);
293 if (bv->bv_vendor[0])
294 snprintf(tmp, sizeof(tmp), "%s %s", bv->bv_dev, bv->bv_vendor);
296 snprintf(tmp, sizeof(tmp), "%s", bv->bv_dev);
298 switch (bv->bv_level) {
314 snprintf(rtype, sizeof(rtype), "RAID %u", bv->bv_level);
315 if (bv->bv_level == 1 || bv->bv_stripe_size == 0)
325 snprintf(stripe, sizeof(stripe), "%uK", bv->bv_stripe_size);
327 humanize_number(size, 5, (int64_t)bv->bv_size, "", HN_AUTOSCALE,
334 bt->bv = bv;
336 return bv->bv_nodisk;
397 "%u:%u", bt->bv->bv_volid, bd.bd_diskid);
433 struct bioc_vol bv;
494 ndisks = bio_show_volumes(biot, &bv);
938 struct bioc_vol bv;
976 memset(&bv, 0, sizeof(bv));
977 bv.bv_cookie = bl.bl_cookie;
978 bv.bv_volid = v;
979 rv = ioctl(fd, BIOCVOL, &bv);
983 for (d = 0; d < bv.bv_nodisk; d++) {