mfi_drive.c (223345) | mfi_drive.c (233713) |
---|---|
1/*- 2 * Copyright (c) 2008, 2009 Yahoo!, Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * | 1/*- 2 * Copyright (c) 2008, 2009 Yahoo!, Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * |
29 * $FreeBSD: head/usr.sbin/mfiutil/mfi_drive.c 223345 2011-06-20 21:28:50Z bz $ | 29 * $FreeBSD: head/usr.sbin/mfiutil/mfi_drive.c 233713 2012-03-30 23:39:39Z ambrisko $ |
30 */ 31 32#include <sys/types.h> 33#include <sys/errno.h> 34#include <ctype.h> 35#include <err.h> 36#include <libutil.h> 37#include <limits.h> --- 106 unchanged lines hidden (view full) --- 144 return ("FAILED"); 145 case MFI_PD_STATE_REBUILD: 146 return ("REBUILD"); 147 case MFI_PD_STATE_ONLINE: 148 return ("ONLINE"); 149 case MFI_PD_STATE_COPYBACK: 150 return ("COPYBACK"); 151 case MFI_PD_STATE_SYSTEM: | 30 */ 31 32#include <sys/types.h> 33#include <sys/errno.h> 34#include <ctype.h> 35#include <err.h> 36#include <libutil.h> 37#include <limits.h> --- 106 unchanged lines hidden (view full) --- 144 return ("FAILED"); 145 case MFI_PD_STATE_REBUILD: 146 return ("REBUILD"); 147 case MFI_PD_STATE_ONLINE: 148 return ("ONLINE"); 149 case MFI_PD_STATE_COPYBACK: 150 return ("COPYBACK"); 151 case MFI_PD_STATE_SYSTEM: |
152 return ("SYSTEM"); | 152 return ("JBOD"); |
153 default: 154 sprintf(buf, "PSTATE 0x%04x", state); 155 return (buf); 156 } 157} 158 159int 160mfi_lookup_drive(int fd, char *drive, uint16_t *device_id) --- 595 unchanged lines hidden --- | 153 default: 154 sprintf(buf, "PSTATE 0x%04x", state); 155 return (buf); 156 } 157} 158 159int 160mfi_lookup_drive(int fd, char *drive, uint16_t *device_id) --- 595 unchanged lines hidden --- |