Deleted Added
full compact
geom_pc98.c (123215) geom_pc98.c (125755)
1/*-
2 * Copyright (c) 2002 Poul-Henning Kamp
3 * Copyright (c) 2002 Networks Associates Technology, Inc.
4 * All rights reserved.
5 *
6 * This software was developed for the FreeBSD Project by Poul-Henning Kamp
7 * and NAI Labs, the Security Research Division of Network Associates, Inc.
8 * under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the

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

26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 */
32
33#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2002 Poul-Henning Kamp
3 * Copyright (c) 2002 Networks Associates Technology, Inc.
4 * All rights reserved.
5 *
6 * This software was developed for the FreeBSD Project by Poul-Henning Kamp
7 * and NAI Labs, the Security Research Division of Network Associates, Inc.
8 * under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the

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

26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 */
32
33#include <sys/cdefs.h>
34__FBSDID("$FreeBSD: head/sys/geom/geom_pc98.c 123215 2003-12-07 05:04:49Z scottl $");
34__FBSDID("$FreeBSD: head/sys/geom/geom_pc98.c 125755 2004-02-12 22:42:11Z phk $");
35
36#include <sys/param.h>
37#include <sys/endian.h>
38#include <sys/systm.h>
39#include <sys/kernel.h>
40#include <sys/malloc.h>
41#include <sys/bio.h>
42#include <sys/lock.h>

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

268 ms->sectorsize = sectorsize;
269 g_topology_lock();
270 g_pc98_modify(gp, ms, buf);
271 g_topology_unlock();
272 g_free(buf);
273 break;
274 } while (0);
275 g_topology_lock();
35
36#include <sys/param.h>
37#include <sys/endian.h>
38#include <sys/systm.h>
39#include <sys/kernel.h>
40#include <sys/malloc.h>
41#include <sys/bio.h>
42#include <sys/lock.h>

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

268 ms->sectorsize = sectorsize;
269 g_topology_lock();
270 g_pc98_modify(gp, ms, buf);
271 g_topology_unlock();
272 g_free(buf);
273 break;
274 } while (0);
275 g_topology_lock();
276 g_access_rel(cp, -1, 0, 0);
276 g_access(cp, -1, 0, 0);
277 if (LIST_EMPTY(&gp->provider)) {
278 g_slice_spoiled(cp);
279 return (NULL);
280 }
281 return (gp);
282}
283
284static struct g_class g_pc98_class = {
285 .name = PC98_CLASS_NAME,
286 .taste = g_pc98_taste,
287};
288
289DECLARE_GEOM_CLASS(g_pc98_class, g_pc98);
277 if (LIST_EMPTY(&gp->provider)) {
278 g_slice_spoiled(cp);
279 return (NULL);
280 }
281 return (gp);
282}
283
284static struct g_class g_pc98_class = {
285 .name = PC98_CLASS_NAME,
286 .taste = g_pc98_taste,
287};
288
289DECLARE_GEOM_CLASS(g_pc98_class, g_pc98);