vdev_missing.c (249195) | vdev_missing.c (254591) |
---|---|
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 --- 31 unchanged lines hidden (view full) --- 40#include <sys/spa.h> 41#include <sys/vdev_impl.h> 42#include <sys/fs/zfs.h> 43#include <sys/zio.h> 44 45/* ARGSUSED */ 46static int 47vdev_missing_open(vdev_t *vd, uint64_t *psize, uint64_t *max_psize, | 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 --- 31 unchanged lines hidden (view full) --- 40#include <sys/spa.h> 41#include <sys/vdev_impl.h> 42#include <sys/fs/zfs.h> 43#include <sys/zio.h> 44 45/* ARGSUSED */ 46static int 47vdev_missing_open(vdev_t *vd, uint64_t *psize, uint64_t *max_psize, |
48 uint64_t *ashift) | 48 uint64_t *logical_ashift, uint64_t *physical_ashift) |
49{ 50 /* 51 * Really this should just fail. But then the root vdev will be in the 52 * faulted state with VDEV_AUX_NO_REPLICAS, when what we really want is 53 * VDEV_AUX_BAD_GUID_SUM. So we pretend to succeed, knowing that we 54 * will fail the GUID sum check before ever trying to open the pool. 55 */ 56 *psize = 0; 57 *max_psize = 0; | 49{ 50 /* 51 * Really this should just fail. But then the root vdev will be in the 52 * faulted state with VDEV_AUX_NO_REPLICAS, when what we really want is 53 * VDEV_AUX_BAD_GUID_SUM. So we pretend to succeed, knowing that we 54 * will fail the GUID sum check before ever trying to open the pool. 55 */ 56 *psize = 0; 57 *max_psize = 0; |
58 *ashift = 0; | 58 *logical_ashift = 0; 59 *physical_ashift = 0; |
59 return (0); 60} 61 62/* ARGSUSED */ 63static void 64vdev_missing_close(vdev_t *vd) 65{ 66} --- 40 unchanged lines hidden --- | 60 return (0); 61} 62 63/* ARGSUSED */ 64static void 65vdev_missing_close(vdev_t *vd) 66{ 67} --- 40 unchanged lines hidden --- |