g_union.c (4710aa248bcdd77811540ad5695270254edfff55) g_union.c (489ba2223676ec251ab1bfe2906d2a62959c8ce3)
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 2022 Marshall Kirk McKusick <mckusick@mckusick.com>
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

83static void g_union_revert(struct g_union_softc *sc);
84static void g_union_doio(struct g_union_wip *wip);
85static void g_union_ctl_commit(struct gctl_req *req, struct g_class *mp, bool);
86static void g_union_setmap(struct bio *bp, struct g_union_softc *sc);
87static bool g_union_getmap(struct bio *bp, struct g_union_softc *sc,
88 off_t *len2read);
89static void g_union_done(struct bio *bp);
90static void g_union_kerneldump(struct bio *bp, struct g_union_softc *sc);
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 2022 Marshall Kirk McKusick <mckusick@mckusick.com>
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

83static void g_union_revert(struct g_union_softc *sc);
84static void g_union_doio(struct g_union_wip *wip);
85static void g_union_ctl_commit(struct gctl_req *req, struct g_class *mp, bool);
86static void g_union_setmap(struct bio *bp, struct g_union_softc *sc);
87static bool g_union_getmap(struct bio *bp, struct g_union_softc *sc,
88 off_t *len2read);
89static void g_union_done(struct bio *bp);
90static void g_union_kerneldump(struct bio *bp, struct g_union_softc *sc);
91static int g_union_dumper(void *, void *, vm_offset_t, off_t, size_t);
91static int g_union_dumper(void *, void *, off_t, size_t);
92static int g_union_destroy(struct gctl_req *req, struct g_geom *gp, bool force);
93
94/*
95 * Operate on union-specific configuration commands.
96 */
97static void
98g_union_config(struct gctl_req *req, struct g_class *mp, const char *verb)
99{

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

1217 gkd->di.mediasize = gkd->length;
1218 g_io_deliver(bp, 0);
1219}
1220
1221/*
1222 * Handler for g_union_kerneldump().
1223 */
1224static int
92static int g_union_destroy(struct gctl_req *req, struct g_geom *gp, bool force);
93
94/*
95 * Operate on union-specific configuration commands.
96 */
97static void
98g_union_config(struct gctl_req *req, struct g_class *mp, const char *verb)
99{

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

1217 gkd->di.mediasize = gkd->length;
1218 g_io_deliver(bp, 0);
1219}
1220
1221/*
1222 * Handler for g_union_kerneldump().
1223 */
1224static int
1225g_union_dumper(void *priv, void *virtual, vm_offset_t physical, off_t offset,
1226 size_t length)
1225g_union_dumper(void *priv, void *virtual, off_t offset, size_t length)
1227{
1228
1229 return (0);
1230}
1231
1232/*
1233 * List union statistics.
1234 */

--- 162 unchanged lines hidden ---
1226{
1227
1228 return (0);
1229}
1230
1231/*
1232 * List union statistics.
1233 */

--- 162 unchanged lines hidden ---