Lines Matching refs:mount
697 * A path identifies its mount point by its st_dev field in stat. To
698 * find the mount point, work backward up the path until the st_dev
729 /* special case of mount point being the path */
857 legacy_mount_t *mount;
870 * when cleaning so we use that to force a reload of the mount
886 prevmount = mount = NULL;
888 mount = calloc(1, sizeof (legacy_mount_t));
889 if (mount == NULL) {
893 mount->lm_mntpnt = strdup(entry.mnt_mountp);
894 if (mount->lm_mntpnt == NULL) {
895 free(mount);
899 mount->lm_mntopts = strdup(entry.mnt_mntopts);
900 if (mount->lm_mntopts == NULL) {
901 free(mount->lm_mntpnt);
902 free(mount);
907 legacy_hdl->legacy_mounts = mount;
909 prevmount->lm_next = mount;
911 prevmount = mount;
916 for (mount = legacy_hdl->legacy_mounts; mount != NULL;
917 mount = mount->lm_next) {
918 if (strcmp(path, mount->lm_mntpnt) == 0) {
920 (void) strlcpy(mntpnt, mount->lm_mntpnt,
924 (void) strlcpy(mntopts, mount->lm_mntopts,