Deleted Added
sdiff udiff text old ( 224177 ) new ( 228103 )
full compact
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

--- 7 unchanged lines hidden (view full) ---

16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21/*
22 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
23 * Copyright (c) 2011 by Delphix. All rights reserved.
24 */
25
26#include <sys/zfs_context.h>
27#include <sys/spa_impl.h>
28#include <sys/zio.h>
29#include <sys/zio_checksum.h>
30#include <sys/zio_compress.h>
31#include <sys/dmu.h>

--- 1271 unchanged lines hidden (view full) ---

1303}
1304
1305uint64_t
1306spa_guid(spa_t *spa)
1307{
1308 /*
1309 * If we fail to parse the config during spa_load(), we can go through
1310 * the error path (which posts an ereport) and end up here with no root
1311 * vdev. We stash the original pool guid in 'spa_load_guid' to handle
1312 * this case.
1313 */
1314 if (spa->spa_root_vdev != NULL)
1315 return (spa->spa_root_vdev->vdev_guid);
1316 else
1317 return (spa->spa_load_guid);
1318}
1319
1320uint64_t
1321spa_last_synced_txg(spa_t *spa)
1322{
1323 return (spa->spa_ubsync.ub_txg);
1324}
1325
1326uint64_t
1327spa_first_txg(spa_t *spa)
1328{

--- 355 unchanged lines hidden ---