Lines Matching defs:dataset
62 zone_dataset_attach(struct ucred *cred, const char *dataset, int jailid)
73 zd = malloc(sizeof (*zd) + strlen(dataset) + 1, M_ZONES, M_WAITOK);
87 if (strcmp(dataset, zd2->zd_dataset) == 0) {
104 strcpy(zd->zd_dataset, dataset);
115 zone_dataset_detach(struct ucred *cred, const char *dataset, int jailid)
136 if (strcmp(dataset, zd->zd_dataset) == 0)
154 * Returns true if the named dataset is visible in the current zone.
155 * The 'write' parameter is set to 1 if the dataset is also writable.
158 zone_dataset_visible(const char *dataset, int *write)
166 if (dataset[0] == '\0')
181 * specify a dataset underneath an exported dataset. If found, return
186 if (strlen(dataset) >= len &&
187 bcmp(dataset, zd->zd_dataset, len) == 0 &&
188 (dataset[len] == '\0' || dataset[len] == '/' ||
189 dataset[len] == '@')) {
201 * Note that we also have to support forms such as 'pool/dataset/', with
205 len = strlen(dataset);
206 if (dataset[len - 1] == '/')
209 bcmp(dataset, zd->zd_dataset, len) == 0 &&