LABEL_SIZE
ect->dl = LABEL_SIZE - 44;
blksize = LABEL_SIZE - 44;
return LABEL_SIZE;
char label[LABEL_SIZE];
snprintf(label, LABEL_SIZE, "controller");
snprintf(label, LABEL_SIZE, "enclosure");
snprintf(label, LABEL_SIZE, "external");
snprintf(label, LABEL_SIZE, "%s",
snprintf(label, LABEL_SIZE, "RAID-%s",
snprintf(label, LABEL_SIZE, "rom");
snprintf(label, LABEL_SIZE, "tape");
snprintf(label, LABEL_SIZE, "changer");
snprintf(label, LABEL_SIZE, "UNKNOWN");
if ((hdr->in_offset + hdr->in_length) > LABEL_SIZE)
len = min(hdr->in_length, LABEL_SIZE - hdr->in_offset);
if ((hdr->in_offset + hdr->in_length) > LABEL_SIZE)
len = min(hdr->in_length, LABEL_SIZE - hdr->in_offset);
res = ndtest_alloc_resource(p, LABEL_SIZE, NULL);
d->config_size = LABEL_SIZE;
if (!ndtest_alloc_resource(p, LABEL_SIZE,
if (!ndtest_alloc_resource(p, LABEL_SIZE,
t->label[i] = test_alloc(t, LABEL_SIZE, &t->label_dma[i]);
t->dcr[i] = test_alloc(t, LABEL_SIZE, &t->dcr_dma[i]);
t->label[i] = test_alloc(t, LABEL_SIZE, &t->label_dma[i]);
nd_cmd->config_size = LABEL_SIZE;
if (offset >= LABEL_SIZE)
len = min(nd_cmd->in_length, LABEL_SIZE - offset);
if (offset >= LABEL_SIZE)
len = min(nd_cmd->in_length, LABEL_SIZE - offset);