equal
deleted
inserted
replaced
17 * information: Portions Copyright [yyyy] [name of copyright owner] |
17 * information: Portions Copyright [yyyy] [name of copyright owner] |
18 * |
18 * |
19 * CDDL HEADER END |
19 * CDDL HEADER END |
20 */ |
20 */ |
21 /* |
21 /* |
22 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. |
22 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. |
23 * Use is subject to license terms. |
|
24 */ |
23 */ |
25 |
|
26 #pragma ident "%Z%%M% %I% %E% SMI" |
|
27 |
24 |
28 #include <sys/zfs_context.h> |
25 #include <sys/zfs_context.h> |
29 #include <sys/uberblock_impl.h> |
26 #include <sys/uberblock_impl.h> |
30 #include <sys/vdev_impl.h> |
27 #include <sys/vdev_impl.h> |
31 |
28 |
56 */ |
53 */ |
57 ub->ub_magic = UBERBLOCK_MAGIC; |
54 ub->ub_magic = UBERBLOCK_MAGIC; |
58 ub->ub_txg = txg; |
55 ub->ub_txg = txg; |
59 ub->ub_guid_sum = rvd->vdev_guid_sum; |
56 ub->ub_guid_sum = rvd->vdev_guid_sum; |
60 ub->ub_timestamp = gethrestime_sec(); |
57 ub->ub_timestamp = gethrestime_sec(); |
|
58 ub->ub_software_version = SPA_VERSION; |
61 |
59 |
62 return (ub->ub_rootbp.blk_birth == txg); |
60 return (ub->ub_rootbp.blk_birth == txg); |
63 } |
61 } |