Lines Matching defs:pool
292 * For pool names, we have the same set of valid characters as described in
293 * dataset names, with the additional restriction that the pool name must begin
294 * with a letter. The pool names 'raidz' and 'mirror' are also reserved names
298 pool_namecheck(const char *pool, namecheck_err_t *why, char *what)
305 if (strlen(pool) >= ZFS_MAX_DATASET_NAME_LEN) {
311 c = pool;
323 if (!(*pool >= 'a' && *pool <= 'z') &&
324 !(*pool >= 'A' && *pool <= 'Z')) {
330 if (strcmp(pool, "mirror") == 0 || strcmp(pool, "raidz") == 0) {
336 if (pool[0] == 'c' && (pool[1] >= '0' && pool[1] <= '9')) {