head	1.8;
access;
symbols
	RELENG_8_4:1.7.0.2
	RELENG_9_1_0_RELEASE:1.4.4.1.4.2
	RELENG_9_1:1.4.4.1.0.4
	RELENG_9_1_BP:1.4.4.1
	RELENG_8_3_0_RELEASE:1.4.2.1.8.1
	RELENG_8_3:1.4.2.1.0.8
	RELENG_8_3_BP:1.4.2.1
	RELENG_9_0_0_RELEASE:1.4.4.1.2.1
	RELENG_9_0:1.4.4.1.0.2
	RELENG_9_0_BP:1.4.4.1
	RELENG_9:1.4.0.4
	RELENG_9_BP:1.4
	RELENG_7_4_0_RELEASE:1.3.12.1
	RELENG_8_2_0_RELEASE:1.4.2.1.6.1
	RELENG_7_4:1.3.0.12
	RELENG_7_4_BP:1.3
	RELENG_8_2:1.4.2.1.0.6
	RELENG_8_2_BP:1.4.2.1
	RELENG_8_1_0_RELEASE:1.4.2.1.4.1
	RELENG_8_1:1.4.2.1.0.4
	RELENG_8_1_BP:1.4.2.1
	RELENG_7_3_0_RELEASE:1.3.10.1
	RELENG_7_3:1.3.0.10
	RELENG_7_3_BP:1.3
	RELENG_8_0_0_RELEASE:1.4.2.1.2.1
	RELENG_8_0:1.4.2.1.0.2
	RELENG_8_0_BP:1.4.2.1
	RELENG_8:1.4.0.2
	RELENG_8_BP:1.4
	RELENG_7_2_0_RELEASE:1.3.8.1
	RELENG_7_2:1.3.0.8
	RELENG_7_2_BP:1.3
	RELENG_7_1_0_RELEASE:1.3.6.1
	RELENG_6_4_0_RELEASE:1.1.8.2.8.1
	RELENG_7_1:1.3.0.6
	RELENG_7_1_BP:1.3
	RELENG_6_4:1.1.8.2.0.8
	RELENG_6_4_BP:1.1.8.2
	RELENG_7_0_0_RELEASE:1.3
	RELENG_6_3_0_RELEASE:1.1.8.2
	RELENG_7_0:1.3.0.4
	RELENG_7_0_BP:1.3
	RELENG_6_3:1.1.8.2.0.6
	RELENG_6_3_BP:1.1.8.2
	RELENG_7:1.3.0.2
	RELENG_7_BP:1.3
	RELENG_6_2_0_RELEASE:1.1.8.2
	RELENG_6_2:1.1.8.2.0.4
	RELENG_6_2_BP:1.1.8.2
	RELENG_5_5_0_RELEASE:1.1
	RELENG_5_5:1.1.0.10
	RELENG_5_5_BP:1.1
	RELENG_6_1_0_RELEASE:1.1.8.2
	RELENG_6_1:1.1.8.2.0.2
	RELENG_6_1_BP:1.1.8.2
	RELENG_6_0_0_RELEASE:1.1.8.1
	RELENG_6_0:1.1.8.1.0.2
	RELENG_6_0_BP:1.1.8.1
	RELENG_6:1.1.0.8
	RELENG_6_BP:1.1
	RELENG_5_4_0_RELEASE:1.1
	RELENG_5_4:1.1.0.6
	RELENG_5_4_BP:1.1
	RELENG_5_3_0_RELEASE:1.1
	RELENG_5_3:1.1.0.4
	RELENG_5_3_BP:1.1
	RELENG_5:1.1.0.2
	RELENG_5_BP:1.1;
locks; strict;
comment	@# @;


1.8
date	2013.04.18.00.31.49;	author svnexp;	state Exp;
branches;
next	1.7;

1.7
date	2012.11.17.01.52.55;	author svnexp;	state Exp;
branches
	1.7.2.1;
next	1.6;

1.6
date	2012.10.18.22.18.11;	author attilio;	state Exp;
branches;
next	1.5;

1.5
date	2012.10.17.11.30.00;	author attilio;	state Exp;
branches;
next	1.4;

1.4
date	2009.07.05.14.03.41;	author ivoras;	state Exp;
branches
	1.4.2.1
	1.4.4.1;
next	1.3;

1.3
date	2005.08.26.11.35.10;	author takawata;	state Exp;
branches
	1.3.2.1
	1.3.6.1
	1.3.8.1
	1.3.10.1
	1.3.12.1;
next	1.2;

1.2
date	2005.08.12.00.27.45;	author pjd;	state Exp;
branches;
next	1.1;

1.1
date	2004.07.02.19.40.34;	author pjd;	state Exp;
branches
	1.1.8.1;
next	;

1.7.2.1
date	2012.11.17.01.52.55;	author svnexp;	state dead;
branches;
next	1.7.2.2;

1.7.2.2
date	2013.03.28.13.05.20;	author svnexp;	state Exp;
branches;
next	;

1.4.2.1
date	2009.08.03.08.13.06;	author kensmith;	state Exp;
branches
	1.4.2.1.2.1
	1.4.2.1.4.1
	1.4.2.1.6.1
	1.4.2.1.8.1;
next	1.4.2.2;

1.4.2.2
date	2012.11.17.10.36.56;	author svnexp;	state Exp;
branches;
next	;

1.4.2.1.2.1
date	2009.10.25.01.10.29;	author kensmith;	state Exp;
branches;
next	;

1.4.2.1.4.1
date	2010.06.14.02.09.06;	author kensmith;	state Exp;
branches;
next	;

1.4.2.1.6.1
date	2010.12.21.17.09.25;	author kensmith;	state Exp;
branches;
next	;

1.4.2.1.8.1
date	2012.03.03.06.15.13;	author kensmith;	state Exp;
branches;
next	1.4.2.1.8.2;

1.4.2.1.8.2
date	2012.11.17.08.25.32;	author svnexp;	state Exp;
branches;
next	;

1.4.4.1
date	2011.09.23.00.51.37;	author kensmith;	state Exp;
branches
	1.4.4.1.2.1
	1.4.4.1.4.1;
next	1.4.4.2;

1.4.4.2
date	2012.11.17.11.37.17;	author svnexp;	state Exp;
branches;
next	;

1.4.4.1.2.1
date	2011.11.11.04.20.22;	author kensmith;	state Exp;
branches;
next	1.4.4.1.2.2;

1.4.4.1.2.2
date	2012.11.17.08.37.13;	author svnexp;	state Exp;
branches;
next	;

1.4.4.1.4.1
date	2012.08.05.23.54.33;	author kensmith;	state Exp;
branches;
next	1.4.4.1.4.2;

1.4.4.1.4.2
date	2012.11.17.08.48.04;	author svnexp;	state Exp;
branches;
next	;

1.3.2.1
date	2012.11.17.08.06.48;	author svnexp;	state Exp;
branches;
next	;

1.3.6.1
date	2008.11.25.02.59.29;	author kensmith;	state Exp;
branches;
next	;

1.3.8.1
date	2009.04.15.03.14.26;	author kensmith;	state Exp;
branches;
next	;

1.3.10.1
date	2010.02.10.00.26.20;	author kensmith;	state Exp;
branches;
next	;

1.3.12.1
date	2010.12.21.17.10.29;	author kensmith;	state Exp;
branches;
next	1.3.12.2;

1.3.12.2
date	2012.11.17.08.17.26;	author svnexp;	state Exp;
branches;
next	;

1.1.8.1
date	2005.08.16.08.20.48;	author pjd;	state Exp;
branches;
next	1.1.8.2;

1.1.8.2
date	2005.12.29.06.22.38;	author sobomax;	state Exp;
branches
	1.1.8.2.8.1;
next	1.1.8.3;

1.1.8.3
date	2012.11.17.07.44.18;	author svnexp;	state Exp;
branches;
next	;

1.1.8.2.8.1
date	2008.10.02.02.57.24;	author kensmith;	state Exp;
branches;
next	;


desc
@@


1.8
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/249581
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# $FreeBSD: head/sys/modules/geom/geom_label/Makefile 249581 2013-04-17 09:19:29Z ivoras $

.PATH: ${.CURDIR}/../../../geom/label

KMOD=	geom_label
SRCS=	g_label.c
SRCS+=	g_label_disk_ident.c
SRCS+=	g_label_ext2fs.c
SRCS+=	g_label_gpt.c
SRCS+=	g_label_iso9660.c
SRCS+=	g_label_msdosfs.c
SRCS+=	g_label_ntfs.c
SRCS+=	g_label_reiserfs.c
SRCS+=	g_label_ufs.c

.include <bsd.kmod.mk>
@


1.7
log
@Switching exporter and resync
@
text
@d1 1
a1 1
# $FreeBSD: head/sys/modules/geom/geom_label/Makefile 241706 2012-10-18 22:18:11Z attilio $
d7 1
@


1.7.2.1
log
@file Makefile was added on branch RELENG_8_4 on 2013-03-28 13:05:20 +0000
@
text
@d1 15
@


1.7.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 15
# $FreeBSD: releng/8.4/sys/modules/geom/geom_label/Makefile 195362 2009-07-05 14:03:41Z ivoras $

.PATH: ${.CURDIR}/../../../geom/label

KMOD=	geom_label
SRCS=	g_label.c
SRCS+=	g_label_ext2fs.c
SRCS+=	g_label_gpt.c
SRCS+=	g_label_iso9660.c
SRCS+=	g_label_msdosfs.c
SRCS+=	g_label_ntfs.c
SRCS+=	g_label_reiserfs.c
SRCS+=	g_label_ufs.c

.include <bsd.kmod.mk>
@


1.6
log
@SVN rev 241706 on 2012-10-18 22:18:11Z by attilio

It seems that it is preferable to keep support for glabel also for
filesystems that we don't support natively.
Revert part of r241636 to do so.

This patch is not targeted for MFC.

Requested by:	gleb, jhb
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.5
log
@SVN rev 241636 on 2012-10-17 11:30:00Z by attilio

Disconnect non-MPSAFE NTFS from the build in preparation for dropping
GIANT from VFS. This code is particulary broken and fragile and other
in-kernel implementations around, found in other operating systems,
don't really seem clean and solid enough to be imported at all.
If someone wants to reconsider in-kernel NTFS implementation for
inclusion again, a fair effort for completely fixing and cleaning it
up is expected.

In the while NTFS regular users can use FUSE interface and ntfs-3g
port to work with their NTFS partitions.

This is not targeted for MFC.
@
text
@d11 1
@


1.4
log
@SVN rev 195362 on 2009-07-05 14:03:41Z by ivoras

Add missing reference to GPT support.

Submitted by:	Paul B. Mahol onemda at gmail.com
Approved by:	re (kib)
@
text
@a10 1
SRCS+=	g_label_ntfs.c
@


1.4.4.1
log
@SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.4.4.2
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242902
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242902 | dteske | 2012-11-11 23:29:45 +0000 (Sun, 11 Nov 2012) | 10 lines
## SVN ##
## SVN ## Fix a regression introduced by SVN r211417 that saw the breakage of a feature
## SVN ## documented in usr.sbin/sysinstall/help/shortcuts.hlp (reproduced below):
## SVN ##
## SVN ## If /usr/sbin/sysinstall is linked to another filename, say
## SVN ## `/usr/local/bin/configPackages', then the basename will be used
## SVN ## as an implicit command name.
## SVN ##
## SVN ## Reviewed by:	adrian (co-mentor)
## SVN ## Approved by:	adrian (co-mentor)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: stable/9/sys/modules/geom/geom_label/Makefile 195362 2009-07-05 14:03:41Z ivoras $
@


1.4.4.1.4.1
log
@SVN rev 239080 on 2012-08-05 23:54:33Z by kensmith

Copy stable/9 to releng/9.1 as part of the 9.1-RELEASE release process.

Approved by:	re (implicit)
@
text
@@


1.4.4.1.4.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/9.1/sys/modules/geom/geom_label/Makefile 195362 2009-07-05 14:03:41Z ivoras $
@


1.4.4.1.2.1
log
@SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)
@
text
@@


1.4.4.1.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/9.0/sys/modules/geom/geom_label/Makefile 195362 2009-07-05 14:03:41Z ivoras $
@


1.4.2.1
log
@SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith

Copy head to stable/8 as part of 8.0 Release cycle.

Approved by:	re (Implicit)
@
text
@@


1.4.2.2
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242909
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242909 | dim | 2012-11-12 07:47:19 +0000 (Mon, 12 Nov 2012) | 20 lines
## SVN ##
## SVN ## MFC r242625:
## SVN ##
## SVN ## Remove duplicate const specifiers in many drivers (I hope I got all of
## SVN ## them, please let me know if not).  Most of these are of the form:
## SVN ##
## SVN ## static const struct bzzt_type {
## SVN ##       [...list of members...]
## SVN ## } const bzzt_devs[] = {
## SVN ##       [...list of initializers...]
## SVN ## };
## SVN ##
## SVN ## The second const is unnecessary, as arrays cannot be modified anyway,
## SVN ## and if the elements are const, the whole thing is const automatically
## SVN ## (e.g. it is placed in .rodata).
## SVN ##
## SVN ## I have verified this does not change the binary output of a full kernel
## SVN ## build (except for build timestamps embedded in the object files).
## SVN ##
## SVN ## Reviewed by:	yongari, marius
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: stable/8/sys/modules/geom/geom_label/Makefile 195362 2009-07-05 14:03:41Z ivoras $
@


1.4.2.1.8.1
log
@SVN rev 232438 on 2012-03-03 06:15:13Z by kensmith

Copy stable/8 to releng/8.3 as part of 8.3-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.4.2.1.8.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/8.3/sys/modules/geom/geom_label/Makefile 195362 2009-07-05 14:03:41Z ivoras $
@


1.4.2.1.6.1
log
@SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith

Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.

Approved by:	re (implicit)
@
text
@@


1.4.2.1.4.1
log
@SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith

Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.

Approved by:	re (implicit)
@
text
@@


1.4.2.1.2.1
log
@SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith

Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure.

Approved by:	re (implicit)
@
text
@@


1.3
log
@Add NTFS labeling function.

Reviewed by:pjd
@
text
@d8 1
@


1.3.2.1
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/7/sys/modules/geom/geom_label/Makefile 149492 2005-08-26 11:35:10Z takawata $
@


1.3.12.1
log
@SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)
@
text
@@


1.3.12.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/7.4/sys/modules/geom/geom_label/Makefile 149492 2005-08-26 11:35:10Z takawata $
@


1.3.10.1
log
@SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)
@
text
@@


1.3.8.1
log
@SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)
@
text
@@


1.3.6.1
log
@SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)
@
text
@@


1.2
log
@Add code for Ext2FS and ReiserFS labels recognition.

Submitted by:	Stanislav Sedov <stas@@310.ru>
PR:		kern/84638
MFC after:	1 week
@
text
@d10 1
@


1.1
log
@Introduce GEOM_LABEL class.
This class is used for detecting volume labels on file systems:
UFS, MSDOSFS (FAT12, FAT16, FAT32) and ISO9660.
It also provide native labelization (there is no need for file system).

g_label_ufs.c is based on geom_vol_ffs from Gordon Tetlow.
g_label_msdos.c and g_label_iso9660.c are probably hacks, I just found
where volume labels are stored and I use those offsets here,
but with this class it should be easy to do it as it should be done by
someone who know how.
Implementing volume labels detection for other file systems also should
be trivial.

New providers are created in those directories:
/dev/ufs/ (UFS1, UFS2)
/dev/msdosfs/ (FAT12, FAT16, FAT32)
/dev/iso9660/ (ISO9660)
/dev/label/ (native labels, configured with glabel(8))

Manual page cleanups and some comments inside were submitted by
Simon L. Nielsen, who was, as always, very helpful. Thanks!
@
text
@d7 1
d10 1
@


1.1.8.1
log
@MFC:
- Add code for Ext2FS and ReiserFS labels recognition.
- Avoid creating directories in devfs by changing all '/' in labels to '_'.

Submitted by:	Stanislav Sedov <stas@@310.ru>
PR:		kern/84638
Approved by:	re (kensmith)
@
text
@a6 1
SRCS+=	g_label_ext2fs.c
a8 1
SRCS+=	g_label_reiserfs.c
@


1.1.8.2
log
@MFC: NTFS label recognition module for geom_label(4).
@
text
@a9 1
SRCS+=	g_label_ntfs.c
@


1.1.8.3
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/6/sys/modules/geom/geom_label/Makefile 153829 2005-12-29 06:22:38Z sobomax $
@


1.1.8.2.8.1
log
@SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)
@
text
@@


