/illumos-gate/usr/src/uts/common/io/ |
H A D | devpool.c | 47 * snapshot of the current configuration. Only one process on the system 56 * the snapshot taken at the beginning of that transaction. 221 int snapshot = 0; local 302 * Return last snapshot if some 311 snapshot = 1; 345 if (snapshot == 0)
|
H A D | openprom.c | 65 #define IOC_IDLE 0 /* snapshot ioctl states */ 66 #define IOC_SNAP 1 /* snapshot in progress */ 67 #define IOC_DONE 2 /* snapshot done, but not copied out */ 76 int16_t ioc_state; /* snapshot ioctl state */ 77 char *snapshot; /* snapshot of all prom nodes */ member in struct:oprom_state 78 size_t size; /* size of snapshot */ 273 ASSERT(st->snapshot == NULL && st->size == 0); 308 if (st->snapshot) { 309 kmem_free(st->snapshot, s [all...] |
H A D | fssnap.c | 54 * This module implements the file system snapshot code, which provides a 58 * "fssnap" that represents the snapshot. Each snapshot is assigned a 60 * device with a high minor number is used to initiate snapshot creation and 63 * file system at the time the snapshot was created. 70 * When a snapshot is to be created, the user utility will send an ioctl to 73 * hold old data before it is overwritten, and other snapshot parameters. 77 * no changes occur while the snapshot is being created. It then calls 78 * fssnap_create() to create state for a new snapshot, from which an opaque 79 * handle is returned with the snapshot locke 139 static struct snapshot_id *snapshot = NULL; variable in typeref:struct:snapshot_id [all...] |
/illumos-gate/usr/src/lib/libzfs_jni/common/ |
H A D | libzfs_jni_util.c | 83 zjni_get_dataset_from_snapshot(const char *snapshot, char *dataset, argument 87 (void) strncpy(dataset, snapshot, len);
|
/illumos-gate/usr/src/lib/libbe/common/ |
H A D | be_list.c | 98 * Also data, such as dataset and snapshot properties, 588 * new snapshot. 749 /* build array of linked list snapshot struct ptrs */ 1265 * zhp - Handle to the zfs snapshot whose information we're 1267 * name - The name of the snapshot we're processing. 1270 * node - The node structure that this snapshot belongs to. 1281 be_snapshot_list_t *snapshot, 1289 if (zfshp == NULL || name == NULL || snapshot == NULL || node == NULL) { 1297 snapshot->be_snapshot_name = strdup(name); 1303 snapshot 1278 be_get_ss_data( zfs_handle_t *zfshp, char *name, be_snapshot_list_t *snapshot, be_node_list_t *node) argument [all...] |
H A D | libbe_priv.h | 90 char *obe_snap_name; /* Original BE snapshot name */ 119 time_t origin_creation; /* snapshot creation time of clone */ 120 const char *snapshot; /* snapshot of dataset being demoted */ member in struct:be_demote_data
|
/illumos-gate/usr/src/lib/libdladm/common/ |
H A D | libdlmgmt.c | 361 * Get the handle of a local snapshot of the link configuration. Note that 369 dlmgmt_door_getconfsnapshot_t snapshot; local 380 snapshot.ld_linkid = linkid; 381 snapshot.ld_cmd = DLMGMT_CMD_GETCONFSNAPSHOT; 386 if ((status = dladm_door_call(handle, &snapshot, sizeof (snapshot), 434 * If the specified dladm_conf_t is a read-only snapshot of the configuration, 435 * get a specific link propertie from that snapshot (nvl), otherwise, get
|
/illumos-gate/usr/src/cmd/dlmgmtd/ |
H A D | dlmgmt_door.c | 1052 * dlmgmt_getconfsnapshot() returns a read-only snapshot of all the 1063 dlmgmt_door_getconfsnapshot_t *snapshot = argp; local 1066 datalink_id_t linkid = snapshot->ld_linkid;
|
/illumos-gate/usr/src/cmd/fwflash/plugins/transport/common/ |
H A D | ses.c | 195 ses_snap_t *snapshot; local 245 snapshot = ses_snap_hold(ses_target); 247 if ((targetnode = ses_snap_primary_enclosure(snapshot)) == NULL) { 267 ses_snap_rele(snapshot); 299 ses_snap_t *snapshot; local 424 snapshot = ses_snap_hold(ses_target); 425 rootnodep = ses_root_node(snapshot); 434 ses_snap_rele(snapshot); 451 ses_snap_rele(snapshot); 461 nodep = ses_snap_primary_enclosure(snapshot); [all...] |
/illumos-gate/usr/src/cmd/stat/common/ |
H A D | statcommon.h | 184 /* time at which iodev snapshot was taken */ 212 /* The primary structure of a system snapshot. */ 213 struct snapshot { struct 263 int nr_active_cpus(struct snapshot *ss); 277 * Return a struct snapshot based on the snapshot_types parameter 281 struct snapshot *acquire_snapshot(kstat_ctl_t *, int, struct iodev_filter *); 283 /* free a snapshot */ 284 void free_snapshot(struct snapshot *ss); 296 int snapshot_walk(enum snapshot_types type, struct snapshot *old, 297 struct snapshot *ne [all...] |
/illumos-gate/usr/src/cmd/svc/svcprop/ |
H A D | svcprop.c | 111 static char *snapshot = "running"; /* Snapshot to use. */ variable 146 "[-C | -c | -s snapshot] [-z zone] " 345 * Iterate the properties of a service or an instance when no snapshot 357 * lookup. (implicit cflag) However, if a snapshot 375 * Return a snapshot for the supplied instance and snapshot name. 378 get_snapshot(const scf_instance_t *inst, const char *snapshot) argument 385 if (scf_instance_get_snapshot(inst, snapshot, snap) == -1) { 388 die(gettext("Invalid snapshot name.\n")); 396 die(gettext("No such snapshot [all...] |
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | dsl_prop.c | 74 int intsz, int numints, void *buf, char *setpoint, boolean_t snapshot) 100 if (dd != target || snapshot) { 496 * that the dataset for a snapshot has not 727 * It's a snapshot; nothing can inherit this 923 DSL_PROP_GET_SNAPSHOT = 0x2, /* snapshot dataset */ 73 dsl_prop_get_dd(dsl_dir_t *dd, const char *propname, int intsz, int numints, void *buf, char *setpoint, boolean_t snapshot) argument
|
/illumos-gate/usr/src/uts/common/io/ib/ibnex/ |
H A D | ibnex_ioctl.c | 176 * IBNEX_GET_SNAPSHOT Gets the "snapshot" back to user-land 177 * IBNEX_SNAPSHOT_SIZE What is "snapshot" size 199 char *snapshot = NULL; local 403 if (ibnex_get_snapshot(&snapshot, &snapshot_sz, 431 } else if (ddi_copyout(snapshot, ioc.buf, 439 kmem_free(snapshot, snapshot_sz); 526 IBTL_IBNEX_LIST_CLNTS_FLAG, &snapshot, &snapshot_sz, 550 } else if (ddi_copyout(snapshot, ioc.buf, 558 kmem_free(snapshot, snapshot_sz); 590 IBTL_IBNEX_UNCFG_CLNTS_FLAG, &snapshot, [all...] |
/illumos-gate/usr/src/cmd/zoneadm/ |
H A D | zfs.c | 71 time_t origin_creation; /* snapshot creation time of clone */ 72 const char *snapshot; /* snapshot of dataset being demoted */ member in struct:clone_data 182 * Run the brand's pre-snapshot hook before we take a ZFS snapshot of the zone. 203 * Run the brand's post-snapshot hook after we take a ZFS snapshot of the zone. 224 * This is a ZFS snapshot iterator call-back function which returns the 257 * Take a ZFS snapshot to be used for cloning the zone. 269 * zone snapshot [all...] |
H A D | zoneadm.c | 141 #define SHELP_CLONE "clone [-m method] [-s <ZFS snapshot>] "\ 281 "can be used to specify the name of a ZFS snapshot " 283 "snapshot will be used as the source\n\tinstead of " 284 "creating a new ZFS snapshot. All other arguments are " 3556 char *snapshot = NULL; local 3587 snapshot = optarg; 3798 if (snapshot != NULL) { 3799 err = clone_snapshot_zfs(snapshot, zonepath,
|
/illumos-gate/usr/src/lib/libscf/common/ |
H A D | scf_tmpl.c | 892 * Gets the specified snapshot. If "snapshot" isn't defined, use the 893 * running snapshot. If the snapshot isn't found, that may or may 903 * The handle argument is NULL, or snaphot is not a valid snapshot name 910 _get_snapshot(scf_instance_t *inst, const char *snapshot, argument 926 /* Use running snapshot by default. */ 927 if (snapshot == NULL) 930 err = scf_instance_get_snapshot(inst, snapshot, *snap); 1652 * The snaphot is not a valid snapshot nam 1936 scf_tmpl_get_by_pg_name(const char *fmri, const char *snapshot, const char *pg_name, const char *pg_type, scf_pg_tmpl_t *pg_tmpl, int flags) argument 2113 _get_next_iterator(scf_handle_t *h, scf_pg_tmpl_t *t, const char *snapshot, int exact) argument 2296 scf_tmpl_iter_pgs(scf_pg_tmpl_t *t, const char *fmri, const char *snapshot, const char *type, int flags) argument 6529 scf_tmpl_validate_fmri(scf_handle_t *h, const char *fmri, const char *snapshot, scf_tmpl_errors_t **errs, int flags) argument [all...] |
/illumos-gate/usr/src/uts/common/inet/ip/ |
H A D | sadb.c | 3694 time_t snapshot = gethrestime_sec(); local 3697 assoc->ipsa_lastuse = snapshot; 3698 assoc->ipsa_idleexpiretime = snapshot + assoc->ipsa_idletime; 3711 assoc->ipsa_usetime = snapshot;
|
/illumos-gate/usr/src/cmd/zfs/ |
H A D | zfs_main.c | 176 { "snapshot", zfs_do_snapshot, HELP_SNAPSHOT }, 220 "<snapshot> <filesystem|volume>\n")); 236 "[filesystem|volume|snapshot|bookmark] ...\n")); 239 "<filesystem|volume|snapshot> ...\n")); 246 "[filesystem|volume|snapshot] ...\n")); 254 "snapshot>\n" 255 "\treceive [-vnsFu] [-o origin=<snapshot>] [-d | -e] " 259 return (gettext("\trename [-f] <filesystem|volume|snapshot> " 260 "<filesystem|volume|snapshot>\n" 262 "\trename -r <snapshot> <snapsho 5661 char *snapshot = argv[i]; local [all...] |