Lines Matching defs:dataset
59 zone_dataset_attach(struct ucred *cred, const char *dataset, int jailid)
70 zd = malloc(sizeof (*zd) + strlen(dataset) + 1, M_ZONES, M_WAITOK);
84 if (strcmp(dataset, zd2->zd_dataset) == 0) {
101 strcpy(zd->zd_dataset, dataset);
112 zone_dataset_detach(struct ucred *cred, const char *dataset, int jailid)
133 if (strcmp(dataset, zd->zd_dataset) == 0)
151 * Returns true if the named dataset is visible in the current zone.
152 * The 'write' parameter is set to 1 if the dataset is also writable.
155 zone_dataset_visible(const char *dataset, int *write)
163 if (dataset[0] == '\0')
178 * specify a dataset underneath an exported dataset. If found, return
183 if (strlen(dataset) >= len &&
184 memcmp(dataset, zd->zd_dataset, len) == 0 &&
185 (dataset[len] == '\0' || dataset[len] == '/' ||
186 dataset[len] == '@')) {
198 * Note that we also have to support forms such as 'pool/dataset/', with
202 len = strlen(dataset);
203 if (dataset[len - 1] == '/')
206 memcmp(dataset, zd->zd_dataset, len) == 0 &&