ctl_backend_block.c (289136) | ctl_backend_block.c (289702) |
---|---|
1/*- 2 * Copyright (c) 2003 Silicon Graphics International Corp. 3 * Copyright (c) 2009-2011 Spectra Logic Corporation 4 * Copyright (c) 2012 The FreeBSD Foundation 5 * Copyright (c) 2014-2015 Alexander Motin <mav@FreeBSD.org> 6 * All rights reserved. 7 * 8 * Portions of this software were developed by Edward Tomasz Napierala --- 27 unchanged lines hidden (view full) --- 36 * $Id: //depot/users/kenm/FreeBSD-test2/sys/cam/ctl/ctl_backend_block.c#5 $ 37 */ 38/* 39 * CAM Target Layer driver backend for block devices. 40 * 41 * Author: Ken Merry <ken@FreeBSD.org> 42 */ 43#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2003 Silicon Graphics International Corp. 3 * Copyright (c) 2009-2011 Spectra Logic Corporation 4 * Copyright (c) 2012 The FreeBSD Foundation 5 * Copyright (c) 2014-2015 Alexander Motin <mav@FreeBSD.org> 6 * All rights reserved. 7 * 8 * Portions of this software were developed by Edward Tomasz Napierala --- 27 unchanged lines hidden (view full) --- 36 * $Id: //depot/users/kenm/FreeBSD-test2/sys/cam/ctl/ctl_backend_block.c#5 $ 37 */ 38/* 39 * CAM Target Layer driver backend for block devices. 40 * 41 * Author: Ken Merry <ken@FreeBSD.org> 42 */ 43#include <sys/cdefs.h> |
44__FBSDID("$FreeBSD: head/sys/cam/ctl/ctl_backend_block.c 289136 2015-10-11 08:28:49Z mav $"); | 44__FBSDID("$FreeBSD: head/sys/cam/ctl/ctl_backend_block.c 289702 2015-10-21 15:31:26Z mav $"); |
45 46#include <sys/param.h> 47#include <sys/systm.h> 48#include <sys/kernel.h> 49#include <sys/types.h> 50#include <sys/kthread.h> 51#include <sys/bio.h> 52#include <sys/fcntl.h> --- 2052 unchanged lines hidden (view full) --- 2105 if (be_lun->backend.file.cred != NULL) { 2106 crfree(be_lun->backend.file.cred); 2107 be_lun->backend.file.cred = NULL; 2108 } 2109 break; 2110 case CTL_BE_BLOCK_NONE: 2111 break; 2112 default: | 45 46#include <sys/param.h> 47#include <sys/systm.h> 48#include <sys/kernel.h> 49#include <sys/types.h> 50#include <sys/kthread.h> 51#include <sys/bio.h> 52#include <sys/fcntl.h> --- 2052 unchanged lines hidden (view full) --- 2105 if (be_lun->backend.file.cred != NULL) { 2106 crfree(be_lun->backend.file.cred); 2107 be_lun->backend.file.cred = NULL; 2108 } 2109 break; 2110 case CTL_BE_BLOCK_NONE: 2111 break; 2112 default: |
2113 panic("Unexpected backend type."); | 2113 panic("Unexpected backend type %d", be_lun->dev_type); |
2114 break; 2115 } 2116 be_lun->dev_type = CTL_BE_BLOCK_NONE; 2117 } 2118 return (0); 2119} 2120 2121static int --- 759 unchanged lines hidden --- | 2114 break; 2115 } 2116 be_lun->dev_type = CTL_BE_BLOCK_NONE; 2117 } 2118 return (0); 2119} 2120 2121static int --- 759 unchanged lines hidden --- |