Lines Matching refs:mntpt
4018 char mntpt[PATH_MAX]; in is_ramdisk() local
4043 (void) strlcpy(mntpt, root, sizeof (mntpt)); in is_ramdisk()
4045 cp = mntpt + strlen(mntpt) - 1; in is_ramdisk()
4051 if (strcmp(mnt.mnt_mountp, mntpt) == 0) { in is_ramdisk()
4060 mntpt); in is_ramdisk()
4372 char *mntpt = NULL; in synchronize_BE_menu() local
4433 mntpt = mount_top_dataset(pool, &mnted); in synchronize_BE_menu()
4434 if (mntpt == NULL) { in synchronize_BE_menu()
4441 CKSUM, mntpt, GRUB_MENU); in synchronize_BE_menu()
4448 (void) umount_top_dataset(pool, mnted, mntpt); in synchronize_BE_menu()
5751 find_primary_common(char *mntpt, char *fstype) argument
5764 mntpt, GRUBSIGN_DIR);
5842 find_backup_common(char *mntpt, char *fstype) argument
5858 mntpt, GRUBSIGN_BACKUP);
6094 char *mntpt; local
6198 mntpt = strtok(flist.head->line, " \t\n");
6199 INJECT_ERROR1("Z_MOUNT_TOP_NONLEG_GET_MNTPT_STRTOK", mntpt = "foo");
6200 if (*mntpt != '/') {
6202 pool, mntpt);
6205 zmntpt = s_strdup(mntpt);
6222 umount_top_dataset(char *pool, zfs_mnted_t mnted, char *mntpt) argument
6234 "to umount\n", fcn, pool, mntpt ? mntpt : "NULL"));
6235 free(mntpt);
6244 free(mntpt);
6247 if (mntpt)
6248 (void) rmdir(mntpt);
6249 free(mntpt);
6254 free(mntpt);
6359 char *mntpt; local
6370 mntpt = mount_top_dataset(pool, &mnted);
6371 INJECT_ERROR1("ZFS_FIND_EXIST_MOUNT_TOP", mntpt = NULL);
6372 if (mntpt == NULL) {
6379 sign = find_primary_common(mntpt, "zfs");
6381 sign = find_backup_common(mntpt, "zfs");
6388 (void) umount_top_dataset(pool, mnted, mntpt);
6525 search_hash(mhash_t *mhp, char *special, char **mntpt) argument
6531 assert(mntpt);
6533 *mntpt = NULL;
6554 *mntpt = mcp->mc_mntpt;
6560 check_add_ufs_sign_to_list(FILE *tfp, char *mntpt) argument
6570 sign = find_existing_sign(mntpt, NULL, "ufs");
6574 fcn, mntpt));
6603 fcn, mntpt));
6617 char *mntpt; local
6624 ret = search_hash(mhp, slice, &mntpt);
6627 if (check_add_ufs_sign_to_list(tfp, mntpt) == -1)
7346 set_backup_common(char *mntpt, char *sign) argument
7359 mntpt, GRUBSIGN_BACKUP);
7455 char *mntpt; local
7469 mntpt = mount_top_dataset(pool, &mnted);
7470 INJECT_ERROR1("SET_BACKUP_MOUNT_DATASET", mntpt = NULL);
7471 if (mntpt == NULL) {
7477 ret = set_backup_common(mntpt, sign);
7479 (void) umount_top_dataset(pool, mnted, mntpt);
7523 set_primary_common(char *mntpt, char *sign) argument
7534 mntpt, GRUBSIGN_DIR, sign);
7546 mntpt, GRUBSIGN_DIR);
7602 char *mntpt; local
7626 mntpt = mount_top_dataset(pool, &mnted);
7627 INJECT_ERROR1("SET_PRIMARY_ZFS_MOUNT_DATASET", mntpt = NULL);
7628 if (mntpt == NULL) {
7634 ret = set_primary_common(mntpt, sign);
7636 (void) umount_top_dataset(pool, mnted, mntpt);