Lines Matching refs:mfs
1121 struct mapfs *mfs = me->map_fs; /* assumes it exists */ in convert_mapent_to_automount() local
1125 if (mfs->mfs_host) { in convert_mapent_to_automount()
1126 free(mfs->mfs_host); in convert_mapent_to_automount()
1127 mfs->mfs_host = NULL; in convert_mapent_to_automount()
1130 mfs = me->map_fs->mfs_next; in convert_mapent_to_automount()
1131 if (mfs->mfs_host) in convert_mapent_to_automount()
1132 free(mfs->mfs_host); in convert_mapent_to_automount()
1133 if (mfs->mfs_dir) in convert_mapent_to_automount()
1134 free(mfs->mfs_dir); in convert_mapent_to_automount()
1135 me->map_fs->mfs_next = mfs->mfs_next; /* nulls eventually */ in convert_mapent_to_automount()
1136 free((void*)mfs); in convert_mapent_to_automount()
1295 struct mapfs *mfs, **mfsp; in parse_nfs() local
1434 mfs = (struct mapfs *)malloc(sizeof (*mfs)); in parse_nfs()
1435 if (mfs == NULL) { in parse_nfs()
1440 (void) memset(mfs, 0, sizeof (*mfs)); in parse_nfs()
1441 *mfsp = mfs; in parse_nfs()
1442 mfsp = &mfs->mfs_next; in parse_nfs()
1462 mfs->mfs_port = atoi(sport+1); in parse_nfs()
1464 if (mfs->mfs_port > USHRT_MAX) { in parse_nfs()
1469 mfs->mfs_port); in parse_nfs()
1480 mfs->mfs_flags |= MFS_URL; in parse_nfs()
1482 mfs->mfs_host = strdup(host); in parse_nfs()
1483 mfs->mfs_dir = strdup(path); in parse_nfs()
1485 mfs->mfs_host = strdup(hostname); in parse_nfs()
1486 mfs->mfs_dir = strdup(dirname); in parse_nfs()
1489 mfs->mfs_penalty = penalty; in parse_nfs()
1490 if (mfs->mfs_host == NULL || mfs->mfs_dir == NULL) { in parse_nfs()
1527 struct mapfs *mfs; in parse_special() local
1536 mfs = malloc(sizeof (struct mapfs)); in parse_special()
1537 if (mfs == NULL) in parse_special()
1539 (void) memset(mfs, 0, sizeof (*mfs)); in parse_special()
1556 mfs->mfs_dir = strdup(&devname[devname[0] == ':']); in parse_special()
1557 if (mfs->mfs_dir == NULL) in parse_special()
1559 me->map_fs = mfs; in parse_special()
1657 struct mapfs *mfs; in free_mapent() local
1662 mfs = me->map_fs; in free_mapent()
1663 if (mfs->mfs_host) in free_mapent()
1664 free(mfs->mfs_host); in free_mapent()
1665 if (mfs->mfs_dir) in free_mapent()
1666 free(mfs->mfs_dir); in free_mapent()
1667 if (mfs->mfs_args) in free_mapent()
1668 free(mfs->mfs_args); in free_mapent()
1669 if (mfs->mfs_nconf) in free_mapent()
1670 freenetconfigent(mfs->mfs_nconf); in free_mapent()
1671 me->map_fs = mfs->mfs_next; in free_mapent()
1672 free(mfs); in free_mapent()
1704 struct mapfs *mfs; in trace_mapents() local
1715 for (mfs = me->map_fs; mfs; mfs = mfs->mfs_next) in trace_mapents()
1717 mfs->mfs_host ? mfs->mfs_host: "", in trace_mapents()
1718 mfs->mfs_dir ? mfs->mfs_dir : ""); in trace_mapents()
1782 struct mapfs *mfs; in do_mapent_hosts() local
1831 mfs = (struct mapfs *)malloc(sizeof (*mfs)); in do_mapent_hosts()
1832 if (mfs == NULL) in do_mapent_hosts()
1834 (void) memset((char *)mfs, 0, sizeof (*mfs)); in do_mapent_hosts()
1835 ms->map_fs = mfs; in do_mapent_hosts()
1836 mfs->mfs_host = strdup(host); in do_mapent_hosts()
1837 if (mfs->mfs_host == NULL) in do_mapent_hosts()
1839 mfs->mfs_dir = strdup("/"); in do_mapent_hosts()
1840 if (mfs->mfs_dir == NULL) in do_mapent_hosts()
2000 mfs = (struct mapfs *)malloc(sizeof (*mfs)); in do_mapent_hosts()
2001 if (mfs == NULL) in do_mapent_hosts()
2003 (void) memset((char *)mfs, 0, sizeof (*mfs)); in do_mapent_hosts()
2004 me->map_fs = mfs; in do_mapent_hosts()
2005 mfs->mfs_host = strdup(host); in do_mapent_hosts()
2006 if (mfs->mfs_host == NULL) in do_mapent_hosts()
2008 mfs->mfs_dir = strdup(ex->ex_dir); in do_mapent_hosts()
2009 if (mfs->mfs_dir == NULL) in do_mapent_hosts()