Changeset View
Changeset View
Standalone View
Standalone View
cddl/contrib/opensolaris/cmd/zinject/translate.c
Show All 14 Lines | |||||
* If applicable, add the following below this CDDL HEADER, with the | * If applicable, add the following below this CDDL HEADER, with the | ||||
* fields enclosed by brackets "[]" replaced with your own identifying | * fields enclosed by brackets "[]" replaced with your own identifying | ||||
* information: Portions Copyright [yyyy] [name of copyright owner] | * information: Portions Copyright [yyyy] [name of copyright owner] | ||||
* | * | ||||
* CDDL HEADER END | * CDDL HEADER END | ||||
*/ | */ | ||||
/* | /* | ||||
* Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved. | * Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved. | ||||
* Copyright (c) 2012 by Delphix. All rights reserved. | * Copyright (c) 2012, 2020 by Delphix. All rights reserved. | ||||
imp: You'll want to make sure that the commit message when this goes in states you are pulling in… | |||||
Done Inline ActionsSince the Delphix code is nicely self contained, I did commit it and now we get much cleaner "base". tsoome: Since the Delphix code is nicely self contained, I did commit it and now we get much cleaner… | |||||
*/ | */ | ||||
#include <libzfs.h> | #include <libzfs.h> | ||||
#include <sys/zfs_context.h> | #include <sys/zfs_context.h> | ||||
#include <errno.h> | #include <errno.h> | ||||
#include <fcntl.h> | #include <fcntl.h> | ||||
▲ Show 20 Lines • Show All 447 Lines • ▼ Show 20 Lines | case TYPE_LABEL_NVLIST: | ||||
record->zi_start = offsetof(vdev_label_t, vl_vdev_phys); | record->zi_start = offsetof(vdev_label_t, vl_vdev_phys); | ||||
record->zi_end = record->zi_start + VDEV_PHYS_SIZE - 1; | record->zi_end = record->zi_start + VDEV_PHYS_SIZE - 1; | ||||
break; | break; | ||||
case TYPE_LABEL_PAD1: | case TYPE_LABEL_PAD1: | ||||
record->zi_start = offsetof(vdev_label_t, vl_pad1); | record->zi_start = offsetof(vdev_label_t, vl_pad1); | ||||
record->zi_end = record->zi_start + VDEV_PAD_SIZE - 1; | record->zi_end = record->zi_start + VDEV_PAD_SIZE - 1; | ||||
break; | break; | ||||
case TYPE_LABEL_PAD2: | case TYPE_LABEL_PAD2: | ||||
record->zi_start = offsetof(vdev_label_t, vl_pad2); | record->zi_start = offsetof(vdev_label_t, vl_be); | ||||
record->zi_end = record->zi_start + VDEV_PAD_SIZE - 1; | record->zi_end = record->zi_start + VDEV_PAD_SIZE - 1; | ||||
break; | break; | ||||
} | } | ||||
return (0); | return (0); | ||||
} | } |
You'll want to make sure that the commit message when this goes in states you are pulling in Delphix code so that people know that any copyright updates by them come from that...