Lines Matching defs:mntpt

3846 	char mntpt[PATH_MAX];
3871 (void) strlcpy(mntpt, root, sizeof (mntpt));
3873 cp = mntpt + strlen(mntpt) - 1;
3879 if (strcmp(mnt.mnt_mountp, mntpt) == 0) {
3888 mntpt);
4194 char *mntpt = NULL;
4255 mntpt = mount_top_dataset(pool, &mnted);
4256 if (mntpt == NULL) {
4263 CKSUM, mntpt, GRUB_MENU);
4270 (void) umount_top_dataset(pool, mnted, mntpt);
5573 find_primary_common(char *mntpt, char *fstype)
5586 mntpt, GRUBSIGN_DIR);
5664 find_backup_common(char *mntpt, char *fstype)
5680 mntpt, GRUBSIGN_BACKUP);
5916 char *mntpt;
6020 mntpt = strtok(flist.head->line, " \t\n");
6021 INJECT_ERROR1("Z_MOUNT_TOP_NONLEG_GET_MNTPT_STRTOK", mntpt = "foo");
6022 if (*mntpt != '/') {
6024 pool, mntpt);
6027 zmntpt = s_strdup(mntpt);
6044 umount_top_dataset(char *pool, zfs_mnted_t mnted, char *mntpt)
6056 "to umount\n", fcn, pool, mntpt ? mntpt : "NULL"));
6057 free(mntpt);
6066 free(mntpt);
6069 if (mntpt)
6070 (void) rmdir(mntpt);
6071 free(mntpt);
6076 free(mntpt);
6181 char *mntpt;
6192 mntpt = mount_top_dataset(pool, &mnted);
6193 INJECT_ERROR1("ZFS_FIND_EXIST_MOUNT_TOP", mntpt = NULL);
6194 if (mntpt == NULL) {
6201 sign = find_primary_common(mntpt, "zfs");
6203 sign = find_backup_common(mntpt, "zfs");
6210 (void) umount_top_dataset(pool, mnted, mntpt);
6311 BAM_DPRINTF(("%s: caching mount: special=%s, mntpt=%s, "
6347 search_hash(mhash_t *mhp, char *special, char **mntpt)
6353 assert(mntpt);
6355 *mntpt = NULL;
6376 *mntpt = mcp->mc_mntpt;
6382 check_add_ufs_sign_to_list(FILE *tfp, char *mntpt)
6392 sign = find_existing_sign(mntpt, NULL, "ufs");
6396 fcn, mntpt));
6425 fcn, mntpt));
6439 char *mntpt;
6446 ret = search_hash(mhp, slice, &mntpt);
6449 if (check_add_ufs_sign_to_list(tfp, mntpt) == -1)
7168 set_backup_common(char *mntpt, char *sign)
7181 mntpt, GRUBSIGN_BACKUP);
7277 char *mntpt;
7291 mntpt = mount_top_dataset(pool, &mnted);
7292 INJECT_ERROR1("SET_BACKUP_MOUNT_DATASET", mntpt = NULL);
7293 if (mntpt == NULL) {
7299 ret = set_backup_common(mntpt, sign);
7301 (void) umount_top_dataset(pool, mnted, mntpt);
7345 set_primary_common(char *mntpt, char *sign)
7356 mntpt, GRUBSIGN_DIR, sign);
7368 mntpt, GRUBSIGN_DIR);
7424 char *mntpt;
7448 mntpt = mount_top_dataset(pool, &mnted);
7449 INJECT_ERROR1("SET_PRIMARY_ZFS_MOUNT_DATASET", mntpt = NULL);
7450 if (mntpt == NULL) {
7456 ret = set_primary_common(mntpt, sign);
7458 (void) umount_top_dataset(pool, mnted, mntpt);