None of the other formats close the passed in fd at load, and this
becomes a problem when trying to support --update where we need O_EXCL
protection across the entire operation.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
serialcpy(dl->serial, serial);
dl->index = -2;
dl->e = NULL;
- } else if (keep_fd) {
- close(dl->fd);
+ } else if (keep_fd)
dl->fd = fd;
- }
/* look up this disk's index in the current anchor */
for (i = 0; i < super->anchor->num_disks; i++) {