search for: check_feature

Displaying 1 result from an estimated 1 matches for "check_feature".

2013 Oct 26
2
[PATCH] 1. changes for vdiskadm on illumos based platform
...stack += blksz; } - if ((errnum = dmu_read(mdn, blkid, (char *)dnbuf, stack))) + if (errnum = dmu_read(mdn, blkid, (char *)dnbuf, stack)) return (errnum); grub_memmove(buf, &dnbuf[idx], DNODE_SIZE); @@ -766,6 +837,24 @@ is_top_dataset_file(char *str) return (0); } +static int +check_feature(zap_attribute_t *za, void *arg, char *stack) +{ + const char **names = arg; + int i; + + if (za->za_first_integer == 0) + return (0); + + for (i = 0; names[i] != NULL; i++) { + if (grub_strcmp(za->za_name, names[i]) == 0) { + return (0); + } + } + grub_printf("missing feature for re...