Deleted Added
full compact
g_label_ufs.c (190423) g_label_ufs.c (199875)
1/*-
2 * Copyright (c) 2002, 2003 Gordon Tetlow
3 * Copyright (c) 2006 Pawel Jakub Dawidek <pjd@FreeBSD.org>
4 * All rights reserved.
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:

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

21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2002, 2003 Gordon Tetlow
3 * Copyright (c) 2006 Pawel Jakub Dawidek <pjd@FreeBSD.org>
4 * All rights reserved.
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:

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

21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
29__FBSDID("$FreeBSD: head/sys/geom/label/g_label_ufs.c 190423 2009-03-25 20:38:57Z ivoras $");
29__FBSDID("$FreeBSD: head/sys/geom/label/g_label_ufs.c 199875 2009-11-28 11:57:43Z trasz $");
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/kernel.h>
34#include <sys/malloc.h>
35
36#include <ufs/ufs/dinode.h>
37#include <ufs/ffs/fs.h>

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

132
133static void
134g_label_ufs_id_taste(struct g_consumer *cp, char *label, size_t size)
135{
136
137 g_label_ufs_taste_common(cp, label, size, G_LABEL_UFS_ID);
138}
139
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/kernel.h>
34#include <sys/malloc.h>
35
36#include <ufs/ufs/dinode.h>
37#include <ufs/ffs/fs.h>

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

132
133static void
134g_label_ufs_id_taste(struct g_consumer *cp, char *label, size_t size)
135{
136
137 g_label_ufs_taste_common(cp, label, size, G_LABEL_UFS_ID);
138}
139
140
141const struct g_label_desc g_label_ufs_volume = {
140struct g_label_desc g_label_ufs_volume = {
142 .ld_taste = g_label_ufs_volume_taste,
141 .ld_taste = g_label_ufs_volume_taste,
143 .ld_dir = G_LABEL_UFS_VOLUME_DIR
142 .ld_dir = G_LABEL_UFS_VOLUME_DIR,
143 .ld_enabled = 1
144};
145
144};
145
146const struct g_label_desc g_label_ufs_id = {
146struct g_label_desc g_label_ufs_id = {
147 .ld_taste = g_label_ufs_id_taste,
147 .ld_taste = g_label_ufs_id_taste,
148 .ld_dir = G_LABEL_UFS_ID_DIR
148 .ld_dir = G_LABEL_UFS_ID_DIR,
149 .ld_enabled = 1
149};
150};
151
152G_LABEL_INIT(ufsid, g_label_ufs_id, "Create device nodes for UFS file system IDs");
153G_LABEL_INIT(ufs, g_label_ufs_volume, "Create device nodes for UFS volume names");