Lines Matching refs:NULL

73 	if (impl_handle->zfs_libhandle != NULL) {
90 if (impl_handle->zfs_libhandle != NULL) {
91 if (impl_handle->zfs_list != NULL) {
103 impl_handle->zfs_list = NULL;
108 impl_handle->zfs_libhandle = NULL;
159 if (handles == NULL) {
193 if (impl_handle->zfs_list != NULL) {
222 sizeof (mounta), NULL, NULL, 0, B_FALSE) == 0);
224 sizeof (mountb), NULL, NULL, 0, B_FALSE) == 0);
240 if ((fp = fopen(MNTTAB, "r")) == NULL) {
246 if (entry.mnt_fstype == NULL ||
277 char *dataset = NULL;
286 sizeof (mountpoint), NULL, NULL, 0, B_FALSE) != 0) {
300 sizeof (mountpoint), NULL, 0) == 0) {
310 sizeof (canmount), NULL, NULL, 0, B_FALSE) != 0 ||
325 if (dataset != NULL)
340 zfs_handle_t *handle = NULL;
345 if (libhandle != NULL) {
347 if (handle != NULL) {
349 sizeof (shareopts), NULL, NULL, 0,
359 return (NULL);
374 zfs_handle_t *handle = NULL;
379 if (dataset != NULL) {
381 if (libhandle != NULL) {
384 if (handle != NULL) {
386 shareopts, sizeof (shareopts), NULL, NULL,
425 if (group == NULL) {
429 if (group != NULL)
432 if (group != NULL) {
433 if (proto != NULL) {
435 if (optionset == NULL)
439 if (err != NULL)
460 sa_group_t group = NULL;
468 if (zfs != NULL) {
469 for (group = sa_get_sub_group(zfs); group != NULL;
472 if (name != NULL && strcmp(name, groupname) == 0) {
477 if (name != NULL)
481 if (group == NULL) {
486 if (group == NULL) {
488 return (NULL);
495 if (options != NULL) {
499 if (sa_get_optionset(group, proto) == NULL)
507 if (sa_get_optionset(zfs, proto) == NULL)
522 * NULL, then construct a name based on the dataset value.
560 if (group != NULL) {
566 if (share == NULL)
575 if (share != NULL && doshopt == SA_PROP_SHARE_ONLY) {
578 if (options != NULL) {
582 set_node_attr(share, "dataset", NULL);
585 if (sa_get_optionset(group, proto) == NULL)
589 if (share != NULL && features & SA_FEATURE_RESOURCE) {
596 resource = sa_get_share_resource(share, NULL);
597 if (resource == NULL) {
625 if (share == NULL)
634 if (shareopts != NULL) {
645 if (options != NULL) {
652 set_node_attr(share, "changed", NULL);
655 if (share != NULL && features & SA_FEATURE_RESOURCE) {
661 resource = sa_get_share_resource(share, NULL);
662 if (resource == NULL) {
707 if (group == NULL) {
767 if (zfs_libhandle == NULL)
770 zfsgroup = find_or_create_group(handle, groupname, NULL, &err);
772 if (zfsgroup == NULL)
788 mountpoint, sizeof (mountpoint), NULL, NULL, 0,
796 if ((dataset = (char *)zfs_get_name(zlist[i])) == NULL)
804 if (!zfs_is_mounted(zlist[i], NULL))
836 if (share != NULL &&
839 share = NULL;
931 if (command != NULL) {
932 char *opts = NULL;
933 char *dataset = NULL;
939 if (opts != NULL && strlen(opts) == 0) {
946 assert(impl_handle != NULL);
947 if (impl_handle != NULL)
952 if (dataset != NULL) {
955 opts != NULL ? opts : "off", dataset);
957 if (pfile != NULL) {
963 if (opts != NULL)
965 if (dataset != NULL)
981 char *newopt = NULL;
986 if (newopt == NULL)
989 for (resource = sa_get_share_resource(share, NULL);
990 resource != NULL;
996 if (name == NULL) {
998 return (NULL);
1002 if (newopt != NULL)
1008 if (propstr == NULL) {
1010 return (NULL);
1014 if (newopt != NULL)
1038 if (sa_get_optionset(group, "smb") == NULL)
1042 if (command != NULL) {
1043 char *opts = NULL;
1044 char *dataset = NULL;
1051 share = sa_get_share(group, NULL);
1053 if (opts != NULL && strlen(opts) == 0) {
1063 assert(impl_handle != NULL);
1064 if (impl_handle != NULL)
1069 if (dataset != NULL) {
1072 opts != NULL ? opts : "off", dataset);
1074 if (pfile != NULL) {
1080 if (opts != NULL)
1082 if (dataset != NULL)
1111 if (parent != NULL) {
1113 if (command == NULL)
1117 for (protopt = sa_get_optionset(parent, NULL); protopt != NULL;
1122 char *dataset = NULL;
1123 char *zfsopts = NULL;
1128 if (path != NULL) {
1133 if (impl_handle != NULL)
1146 if (proto != NULL && dataset != NULL) {
1152 if (optstring != NULL && zfsopts != NULL) {
1157 if (optstring != NULL &&
1172 if (pfile != NULL)
1186 if (optstring != NULL)
1188 if (zfsopts != NULL)
1191 if (proto != NULL)
1193 if (dataset != NULL)
1214 if (zfs != NULL) {
1234 if (fstype != NULL && strcmp(fstype, "zfs") == 0)
1236 if (fstype != NULL)
1249 if (path != NULL) {
1279 if ((group = sa_get_parent_group(share)) == NULL) {
1282 if ((sahandle = sa_find_group_handle(group)) == NULL) {
1291 while ((dataset = get_zfs_dataset(sahandle, pathp, B_TRUE)) == NULL) {
1326 if (libhandle != NULL) {
1401 if (libzfs == NULL)
1412 NULL, NULL, 0, B_FALSE) != 0) {
1436 sizeof (canmount), NULL, NULL, 0, B_FALSE) != 0 ||
1446 if (dp != NULL) {
1447 if (datasetp != NULL)
1449 if (mountpointp != NULL)
1473 cur = nvlist_next_nvpair(nvl, NULL);
1474 while (cur != NULL) {
1477 if ((err != 0) || (name == NULL) || (val == NULL))
1504 sizeof (shareopts), NULL, NULL, 0, B_FALSE) != 0)
1507 if (strstr(shareopts, "=") == NULL)
1510 for (token = strtok_r(shareopts, ",", &last); token != NULL;
1511 token = strtok_r(NULL, ",", &last)) {
1513 if (value == NULL)
1518 if (strstr(sharesmb_val, cur_val) == NULL) {
1550 if ((handle == NULL) || (path == NULL))
1553 if ((dataset = get_zfs_dataset(handle, path, B_FALSE)) == NULL)
1556 if ((z_lib = libzfs_init()) == NULL) {
1562 if (z_fs == NULL) {
1584 if ((lastcomma != NULL) && (lastcomma[1] == '\0'))