Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Ensure each symbol used in FSTYPE_DEFN in <sys/diskl...



details:   https://anonhg.NetBSD.org/src/rev/c6e9a6475a43
branches:  trunk
changeset: 331898:c6e9a6475a43
user:      apb <apb%NetBSD.org@localhost>
date:      Sat Aug 30 09:23:29 2014 +0000

description:
Ensure each symbol used in FSTYPE_DEFN in <sys/disklabel.h>
has a corresponding DKW_PTYPE_* definition, by adding some aliases.

XXX: Compatibility between the symbols in FSTYPE_DEFN and the symbols
in DKW_PTYPE_* could be addressed by renaming some of them, instead of
by adding aliases here, but that's a job for the future.

diffstat:

 sys/sys/disk.h |  13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r 12ff93ac1d2f -r c6e9a6475a43 sys/sys/disk.h
--- a/sys/sys/disk.h    Sat Aug 30 07:55:44 2014 +0000
+++ b/sys/sys/disk.h    Sat Aug 30 09:23:29 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: disk.h,v 1.60 2014/04/03 15:24:20 christos Exp $       */
+/*     $NetBSD: disk.h,v 1.61 2014/08/30 09:23:29 apb Exp $    */
 
 /*-
  * Copyright (c) 1996, 1997, 2004 The NetBSD Foundation, Inc.
@@ -248,6 +248,17 @@
 #define        DKW_PTYPE_MINIXFS3      "minixfs3"
 
 /*
+ * Ensure each symbol used in FSTYPE_DEFN in <sys/disklabel.h>
+ * has a corresponding DKW_PTYPE_* definition.
+ */
+#define        DKW_PTYPE_MSDOS         DKW_PTYPE_FAT
+#define        DKW_PTYPE_BSDFFS        DKW_PTYPE_FFS
+#define        DKW_PTYPE_BSDLFS        DKW_PTYPE_LFS
+#define        DKW_PTYPE_ADOS          DKW_PTYPE_AMIGADOS
+#define        DKW_PTYPE_EX2FS         DKW_PTYPE_EXT2FS
+#define        DKW_PTYPE_RAID          DKW_PTYPE_RAIDFRAME
+
+/*
  * Disk geometry dictionary.
  *
  * NOTE: Not all geometry information is relevant for every kind of disk.



Home | Main Index | Thread Index | Old Index