g_shsec.c (163869) | g_shsec.c (197898) |
---|---|
1/*- 2 * Copyright (c) 2005 Pawel Jakub Dawidek <pjd@FreeBSD.org> 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 --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2005 Pawel Jakub Dawidek <pjd@FreeBSD.org> 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 --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/geom/shsec/g_shsec.c 163869 2006-11-01 12:30:51Z pjd $"); | 28__FBSDID("$FreeBSD: head/sys/geom/shsec/g_shsec.c 197898 2009-10-09 09:42:22Z pjd $"); |
29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/kernel.h> 33#include <sys/module.h> 34#include <sys/lock.h> 35#include <sys/mutex.h> 36#include <sys/bio.h> --- 596 unchanged lines hidden (view full) --- 633 struct g_shsec_softc *sc; 634 struct g_consumer *cp; 635 struct g_geom *gp; 636 int error; 637 638 g_trace(G_T_TOPOLOGY, "%s(%s, %s)", __func__, mp->name, pp->name); 639 g_topology_assert(); 640 | 29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/kernel.h> 33#include <sys/module.h> 34#include <sys/lock.h> 35#include <sys/mutex.h> 36#include <sys/bio.h> --- 596 unchanged lines hidden (view full) --- 633 struct g_shsec_softc *sc; 634 struct g_consumer *cp; 635 struct g_geom *gp; 636 int error; 637 638 g_trace(G_T_TOPOLOGY, "%s(%s, %s)", __func__, mp->name, pp->name); 639 g_topology_assert(); 640 |
641 /* Skip providers that are already open for writing. */ 642 if (pp->acw > 0) 643 return (NULL); 644 |
|
641 G_SHSEC_DEBUG(3, "Tasting %s.", pp->name); 642 643 gp = g_new_geomf(mp, "shsec:taste"); 644 gp->start = g_shsec_start; 645 gp->access = g_shsec_access; 646 gp->orphan = g_shsec_orphan; 647 cp = g_new_consumer(gp); 648 g_attach(cp, pp); --- 184 unchanged lines hidden --- | 645 G_SHSEC_DEBUG(3, "Tasting %s.", pp->name); 646 647 gp = g_new_geomf(mp, "shsec:taste"); 648 gp->start = g_shsec_start; 649 gp->access = g_shsec_access; 650 gp->orphan = g_shsec_orphan; 651 cp = g_new_consumer(gp); 652 g_attach(cp, pp); --- 184 unchanged lines hidden --- |