Deleted Added
full compact
g_label_reiserfs.c (173677) g_label_reiserfs.c (199875)
1/*-
2 * Copyright (c) 2005 Stanislav Sedov
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 Stanislav Sedov
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/label/g_label_reiserfs.c 173677 2007-11-16 19:43:26Z maxim $");
28__FBSDID("$FreeBSD: head/sys/geom/label/g_label_reiserfs.c 199875 2009-11-28 11:57:43Z trasz $");
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/kernel.h>
33#include <sys/malloc.h>
34
35#include <geom/geom.h>
36#include <geom/label/g_label.h>

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

106 /* Terminate label */
107 fs->s_volume_name[sizeof(fs->s_volume_name) - 1] = '\0';
108 strlcpy(label, fs->s_volume_name, size);
109
110exit_free:
111 g_free(fs);
112}
113
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/kernel.h>
33#include <sys/malloc.h>
34
35#include <geom/geom.h>
36#include <geom/label/g_label.h>

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

106 /* Terminate label */
107 fs->s_volume_name[sizeof(fs->s_volume_name) - 1] = '\0';
108 strlcpy(label, fs->s_volume_name, size);
109
110exit_free:
111 g_free(fs);
112}
113
114const struct g_label_desc g_label_reiserfs = {
114struct g_label_desc g_label_reiserfs = {
115 .ld_taste = g_label_reiserfs_taste,
115 .ld_taste = g_label_reiserfs_taste,
116 .ld_dir = "reiserfs"
116 .ld_dir = "reiserfs",
117 .ld_enabled = 1
117};
118};
119
120G_LABEL_INIT(reiserfs, g_label_reiserfs, "Create device nodes for REISERFS volumes");