Lines Matching defs:bc
691 struct bioc_volops bc;
724 memset(&bc, 0, sizeof(bc));
727 bc.bc_cookie = bd.bd_cookie = bi.bi_cookie = bl.bl_cookie;
728 bc.bc_opcode = BIOC_VCREATE_VOLUME;
730 bc.bc_volid = (unsigned int)strtoul(argv[1], &endptr, 10);
739 bc.bc_stripe = (unsigned int)strtoul(stripe, &endptr, 10);
743 bc.bc_level = (unsigned int)strtoul(raid_level, &endptr, 10);
763 bc.bc_devmask |= (1 << i);
798 switch (bc.bc_level) {
804 bc.bc_size = (uint64_t)volsize;
806 bc.bc_size = disksize * user_disks;
816 bc.bc_level = BIOC_SVOL_RAID10;
822 bc.bc_size = (uint64_t)volsize;
824 bc.bc_size = ((disksize * user_disks) / 2);
837 bc.bc_size = (uint64_t)volsize;
839 bc.bc_size = (disksize * (user_disks - 1));
852 bc.bc_size = (uint64_t)volsize;
854 bc.bc_size =
862 bc.bc_channel = location.channel;
863 bc.bc_target = location.target;
864 bc.bc_lun = location.lun;
866 if (ioctl(fd, BIOCVOLOPS, &bc) == -1)
869 humanize_number(size, 5, bc.bc_size, "", HN_AUTOSCALE,
872 if (bc.bc_level == BIOC_SVOL_RAID10)
875 snprintf(levelstr, sizeof(levelstr), "%u", bc.bc_level);
878 "SCSI location: %u:%u.%u\n", bc.bc_volid, size, bc.bc_stripe,
879 levelstr, bc.bc_channel, bc.bc_target, bc.bc_lun);
899 struct bioc_volops bc;
907 memset(&bc, 0, sizeof(bc));
908 bc.bc_cookie = bl.bl_cookie;
909 bc.bc_opcode = BIOC_VREMOVE_VOLUME;
911 bc.bc_volid = (unsigned int)strtoul(argv[1], &endptr, 10);
919 bc.bc_channel = location.channel;
920 bc.bc_target = location.target;
921 bc.bc_lun = location.lun;
923 if (ioctl(fd, BIOCVOLOPS, &bc) == -1)
927 bc.bc_volid, bc.bc_channel, bc.bc_target, bc.bc_lun);