Lines Matching refs:mntpt

3849 	char mntpt[PATH_MAX];
3874 (void) strlcpy(mntpt, root, sizeof (mntpt));
3876 cp = mntpt + strlen(mntpt) - 1;
3882 if (strcmp(mnt.mnt_mountp, mntpt) == 0) {
3891 mntpt);
4221 char *mntpt = NULL;
4282 mntpt = mount_top_dataset(pool, &mnted);
4283 if (mntpt == NULL) {
4290 CKSUM, mntpt, GRUB_MENU);
4297 (void) umount_top_dataset(pool, mnted, mntpt);
5600 find_primary_common(char *mntpt, char *fstype)
5613 mntpt, GRUBSIGN_DIR);
5691 find_backup_common(char *mntpt, char *fstype)
5707 mntpt, GRUBSIGN_BACKUP);
5943 char *mntpt;
6047 mntpt = strtok(flist.head->line, " \t\n");
6048 INJECT_ERROR1("Z_MOUNT_TOP_NONLEG_GET_MNTPT_STRTOK", mntpt = "foo");
6049 if (*mntpt != '/') {
6051 pool, mntpt);
6054 zmntpt = s_strdup(mntpt);
6071 umount_top_dataset(char *pool, zfs_mnted_t mnted, char *mntpt)
6083 "to umount\n", fcn, pool, mntpt ? mntpt : "NULL"));
6084 free(mntpt);
6093 free(mntpt);
6096 if (mntpt)
6097 (void) rmdir(mntpt);
6098 free(mntpt);
6103 free(mntpt);
6208 char *mntpt;
6219 mntpt = mount_top_dataset(pool, &mnted);
6220 INJECT_ERROR1("ZFS_FIND_EXIST_MOUNT_TOP", mntpt = NULL);
6221 if (mntpt == NULL) {
6228 sign = find_primary_common(mntpt, "zfs");
6230 sign = find_backup_common(mntpt, "zfs");
6237 (void) umount_top_dataset(pool, mnted, mntpt);
6338 BAM_DPRINTF(("%s: caching mount: special=%s, mntpt=%s, "
6374 search_hash(mhash_t *mhp, char *special, char **mntpt)
6380 assert(mntpt);
6382 *mntpt = NULL;
6403 *mntpt = mcp->mc_mntpt;
6409 check_add_ufs_sign_to_list(FILE *tfp, char *mntpt)
6419 sign = find_existing_sign(mntpt, NULL, "ufs");
6423 fcn, mntpt));
6452 fcn, mntpt));
6466 char *mntpt;
6473 ret = search_hash(mhp, slice, &mntpt);
6476 if (check_add_ufs_sign_to_list(tfp, mntpt) == -1)
7195 set_backup_common(char *mntpt, char *sign)
7208 mntpt, GRUBSIGN_BACKUP);
7304 char *mntpt;
7318 mntpt = mount_top_dataset(pool, &mnted);
7319 INJECT_ERROR1("SET_BACKUP_MOUNT_DATASET", mntpt = NULL);
7320 if (mntpt == NULL) {
7326 ret = set_backup_common(mntpt, sign);
7328 (void) umount_top_dataset(pool, mnted, mntpt);
7372 set_primary_common(char *mntpt, char *sign)
7383 mntpt, GRUBSIGN_DIR, sign);
7395 mntpt, GRUBSIGN_DIR);
7451 char *mntpt;
7475 mntpt = mount_top_dataset(pool, &mnted);
7476 INJECT_ERROR1("SET_PRIMARY_ZFS_MOUNT_DATASET", mntpt = NULL);
7477 if (mntpt == NULL) {
7483 ret = set_primary_common(mntpt, sign);
7485 (void) umount_top_dataset(pool, mnted, mntpt);