Print this page

        

@@ -553,14 +553,10 @@
 
         if ((req = dlmgmt_db_req_alloc(op, entryname, linkp->ll_linkid,
             linkp->ll_zoneid, flags, &err)) == NULL)
                 return (err);
 
-        /* If transient op and onloan, use the global zone cache file. */
-        if (flags == DLMGMT_ACTIVE && linkp->ll_onloan)
-                req->ls_zoneid = GLOBAL_ZONEID;
-
         /*
          * If the return error is EINPROGRESS, this request is handled
          * asynchronously; return success.
          */
         err = dlmgmt_process_db_req(req);

@@ -725,15 +721,15 @@
 
         curr = buf;
         len = strlen(buf);
         attr_name[0] = '\0';
         for (i = 0; i < len; i++) {
-                rename = B_FALSE;
                 char            c = buf[i];
                 boolean_t       match = (c == '=' ||
                     (c == ',' && !found_type) || c == ';');
 
+                rename = B_FALSE;
                 /*
                  * Move to the next character if there is no match and
                  * if we have not reached the last character.
                  */
                 if (!match && i != len - 1)

@@ -1497,16 +1493,14 @@
                 }
         } else {
                 boot = B_TRUE;
         }
 
-        if (zone_file_exists(zoneroot, DLMGMT_PERSISTENT_DB_PATH)) {
                 req->ls_flags = DLMGMT_PERSIST;
                 err = dlmgmt_process_db_req(req);
                 if (err != 0 && err != ENOENT)
                         goto done;
-        }
         err = 0;
         if (rewrite_needed) {
                 /*
                  * First update links in memory, then dump the entire db to
                  * disk.

@@ -1560,11 +1554,10 @@
                                 linkp->ll_tomb = B_TRUE;
                         } else {
                                 (void) dlmgmt_destroy_common(linkp,
                                     DLMGMT_ACTIVE | DLMGMT_PERSIST);
                         }
-
                 }
                 linkp = next_linkp;
         }
 
 again: