spa_config.c (302408) | spa_config.c (331397) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 9 unchanged lines hidden (view full) --- 18 * 19 * CDDL HEADER END 20 */ 21 22/* 23 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 24 * Copyright 2011 Nexenta Systems, Inc. All rights reserved. 25 * Copyright (c) 2011, 2015 by Delphix. All rights reserved. | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 9 unchanged lines hidden (view full) --- 18 * 19 * CDDL HEADER END 20 */ 21 22/* 23 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 24 * Copyright 2011 Nexenta Systems, Inc. All rights reserved. 25 * Copyright (c) 2011, 2015 by Delphix. All rights reserved. |
26 * Copyright 2017 Joyent, Inc. |
|
26 */ 27 28#include <sys/zfs_context.h> 29#include <sys/spa.h> 30#include <sys/fm/fs/zfs.h> 31#include <sys/spa_impl.h> 32#include <sys/nvpair.h> 33#include <sys/uio.h> --- 282 unchanged lines hidden (view full) --- 316 if (tdp->scd_path != NULL) 317 spa_strfree(tdp->scd_path); 318 kmem_free(tdp, sizeof (spa_config_dirent_t)); 319 } 320 321 spa_config_generation++; 322 323 if (postsysevent) | 27 */ 28 29#include <sys/zfs_context.h> 30#include <sys/spa.h> 31#include <sys/fm/fs/zfs.h> 32#include <sys/spa_impl.h> 33#include <sys/nvpair.h> 34#include <sys/uio.h> --- 282 unchanged lines hidden (view full) --- 317 if (tdp->scd_path != NULL) 318 spa_strfree(tdp->scd_path); 319 kmem_free(tdp, sizeof (spa_config_dirent_t)); 320 } 321 322 spa_config_generation++; 323 324 if (postsysevent) |
324 spa_event_notify(target, NULL, ESC_ZFS_CONFIG_SYNC); | 325 spa_event_notify(target, NULL, NULL, ESC_ZFS_CONFIG_SYNC); |
325} 326 327/* 328 * Sigh. Inside a local zone, we don't have access to /etc/zfs/zpool.cache, 329 * and we don't want to allow the local zone to see all the pools anyway. 330 * So we have to invent the ZFS_IOC_CONFIG ioctl to grab the configuration 331 * information for all pool visible within the zone. 332 */ --- 230 unchanged lines hidden --- | 326} 327 328/* 329 * Sigh. Inside a local zone, we don't have access to /etc/zfs/zpool.cache, 330 * and we don't want to allow the local zone to see all the pools anyway. 331 * So we have to invent the ZFS_IOC_CONFIG ioctl to grab the configuration 332 * information for all pool visible within the zone. 333 */ --- 230 unchanged lines hidden --- |