summaryrefslogtreecommitdiffstats
path: root/sys/modules/geom
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2004-07-02 19:40:36 +0000
committerpjd <pjd@FreeBSD.org>2004-07-02 19:40:36 +0000
commit7f4ea6942f7133d30de3ff25c4a9601d2ab4200c (patch)
tree8e73f4b25ccaa53d48b0ffc0919724a8f6d36e90 /sys/modules/geom
parentcfd40890fc173c1f61ef0107cafdd32320d8b63b (diff)
downloadFreeBSD-src-7f4ea6942f7133d30de3ff25c4a9601d2ab4200c.zip
FreeBSD-src-7f4ea6942f7133d30de3ff25c4a9601d2ab4200c.tar.gz
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!
Diffstat (limited to 'sys/modules/geom')
-rw-r--r--sys/modules/geom/Makefile1
-rw-r--r--sys/modules/geom/geom_label/Makefile11
2 files changed, 12 insertions, 0 deletions
diff --git a/sys/modules/geom/Makefile b/sys/modules/geom/Makefile
index 039ae29..880c082 100644
--- a/sys/modules/geom/Makefile
+++ b/sys/modules/geom/Makefile
@@ -8,6 +8,7 @@ SUBDIR= geom_apple \
geom_fox \
geom_gate \
geom_gpt \
+ geom_label \
geom_mbr \
geom_nop \
geom_pc98 \
diff --git a/sys/modules/geom/geom_label/Makefile b/sys/modules/geom/geom_label/Makefile
new file mode 100644
index 0000000..839a48e
--- /dev/null
+++ b/sys/modules/geom/geom_label/Makefile
@@ -0,0 +1,11 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../geom/label
+
+KMOD= geom_label
+SRCS= g_label.c
+SRCS+= g_label_iso9660.c
+SRCS+= g_label_msdosfs.c
+SRCS+= g_label_ufs.c
+
+.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud