Lines Matching refs:entry

652 	struct mnttab entry;
655 while (getmntent(hdl->libzfs_mnttab, &entry) == 0) {
658 if (strcmp(entry.mnt_fstype, MNTTYPE_ZFS) != 0)
661 mtn->mtn_mt.mnt_special = zfs_strdup(hdl, entry.mnt_special);
662 mtn->mtn_mt.mnt_mountp = zfs_strdup(hdl, entry.mnt_mountp);
663 mtn->mtn_mt.mnt_fstype = zfs_strdup(hdl, entry.mnt_fstype);
664 mtn->mtn_mt.mnt_mntopts = zfs_strdup(hdl, entry.mnt_mntopts);
694 * The mnt_mntopts field can be blank when a new entry is added to the
699 struct mnttab *entry)
705 ret = libzfs_mnttab_find(hdl, fsname, entry);
711 * subroutine to fixup a libzfs_mnttab entry, if there is a need
714 * the cache to remove an entry that can no longer be updated.
720 if (entry->mnt_mntopts != NULL)
745 entry->mnt_mntopts = zfs_strdup(hdl, found.mnt_mntopts);
751 * Find an entry in the libzfs_mnttab_cache. If the cache exists,
758 struct mnttab *entry)
771 if (getmntany(hdl->libzfs_mnttab, entry, &srch) == 0)
783 *entry = mtn->mtn_mt;
2753 * a mnttab entry, but doesn't have mount options or a mount point.
2759 struct mnttab entry;
2775 if (libzfs_mnttab_find_opts(hdl, fsname, &entry) != 0)
2778 ASSERT3P(entry.mnt_mntopts, !=, NULL);
2779 ASSERT3P(entry.mnt_mountp, !=, NULL);
2780 zhp->zfs_mntopts = zfs_strdup(hdl, entry.mnt_mntopts);
2781 zhp->zfs_mountp = zfs_strdup(hdl, entry.mnt_mountp);
2803 * the contents of the /etc/mnttab entry, searching for the appropriate options.
5943 zprop_list_t *entry;
5955 entry = *plp;
5956 if (entry->pl_all && nvlist_next_nvpair(userprops, NULL) != NULL) {
5995 entry = zfs_alloc(hdl, sizeof (zprop_list_t));
5996 entry->pl_user_prop = zfs_strdup(hdl, propname);
5997 entry->pl_prop = NULL;
5998 entry->pl_width = (showtype ==
6000 entry->pl_all = entry->pl_group = B_TRUE;
6001 *last = entry;
6011 for (entry = *plp; entry != NULL; entry = entry->pl_next) {
6017 entry->pl_source = ZPROP_SRC_NONE;
6019 pl_prop = zfs_prop_remap(zhp, 0, zprop_propnum(entry->pl_prop),
6021 if (pl_prop != zprop_propnum(entry->pl_prop)) {
6022 if (entry->pl_all) {
6029 ASSERT(entry->pl_alias == NULL);
6037 zprop_list_t *alias = entry->pl_alias;
6044 entry = alias;
6048 entry->pl_ntimes++;
6050 if (ZPROP_IS_SUBLIST(entry->pl_prop)) {
6051 ASSERT(!entry->pl_fixed);
6052 zfs_get_collapsed_sublist(zhp, entry->pl_prop, buf,
6055 entry->pl_source = sourcetype;
6056 if (strlen(buf) > entry->pl_width)
6057 entry->pl_width = strlen(buf);
6058 } else if (entry->pl_prop != NULL) {
6059 if (zfs_zprop_get(zhp, entry->pl_prop,
6062 entry->pl_source = sourcetype;
6063 if (entry->pl_fixed) {
6065 entry->pl_recvd_width =
6066 entry->pl_width;
6071 if (strlen(buf) > entry->pl_width)
6072 entry->pl_width = strlen(buf);
6075 entry->pl_prop->zpd_name, buf, sizeof (buf),
6077 if (strlen(buf) > entry->pl_recvd_width)
6078 entry->pl_recvd_width = strlen(buf);
6084 ASSERT(!entry->pl_fixed);
6085 if (nvlist_lookup_nvlist(userprops, entry->pl_user_prop,
6107 entry->pl_source = sourcetype;
6110 if (strlen(strval) > entry->pl_width)
6111 entry->pl_width = strlen(strval);
6115 entry->pl_user_prop,
6117 if (strlen(buf) > entry->pl_recvd_width)
6118 entry->pl_recvd_width = strlen(buf);
6138 * entry than the one passed in.
6140 * 0) The property was not aliased. "entryp" points to the same entry as the
6147 * If the alias resolves to a different entry, its pl_next field still points to
6148 * the next entry, so (*entryp)->pl_next is valid for iteration in either case
6152 zfs_proplist_resolve_alias(zfs_handle_t *zhp, zprop_list_t *entry,
6157 prop = zfs_prop_remap(zhp, 0, zprop_propnum(entry->pl_prop), NULL);
6158 if (prop != zprop_propnum(entry->pl_prop)) {
6159 zprop_list_t *alias = entry->pl_alias;
6161 assert(entry->pl_all);
6188 *entryp = entry;
6215 zfs_proplist_next(zprop_list_t *entry)
6218 entry = (entry->pl_alias == NULL ? entry->pl_next :
6219 entry->pl_alias);
6220 } while (entry != NULL && entry->pl_ntimes == 0);
6222 return (entry);
6230 zfs_proplist_width(zprop_list_t *entry, zfs_proplist_width_f func, void *arg)
6234 for (; entry != NULL; entry = entry->pl_alias) {
6237 if (entry->pl_ntimes == 0)
6240 width = func(entry, arg);